Rework top level services injection of business level services

Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Émile Ré
2025-12-11 18:35:46 +01:00
parent 69f876484e
commit ec13bd8108
7 changed files with 11 additions and 21 deletions

View File

@@ -27,6 +27,7 @@ type TenantService struct {
baseURL string
encryptionKey cipher.EncryptionKey
tokenSecret string
SlackMessages *SlackMessageService
}
func NewService(
@@ -56,6 +57,7 @@ func (s *Service) WithTenant(tenantID gid.TenantID) *TenantService {
encryptionKey: s.encryptionKey,
tokenSecret: s.tokenSecret,
}
tenantService.SlackMessages = &SlackMessageService{svc: tenantService}
return tenantService
}