Add Site
This commit is contained in:
parent
8ac208e011
commit
6c912a1021
@ -54,7 +54,7 @@ func NewServiceManagerImpl(cfg *config.Config, repo *repository.RepoManagerImpl)
|
||||
OSSSvc: oss.NewOSSService(repo.OSS),
|
||||
PartnerSvc: partner.NewPartnerService(
|
||||
repo.Partner, users.NewUserService(repo.User, repo.Branch), repo.Trx, repo.Wallet, repo.User),
|
||||
SiteSvc: site.NewSiteService(repo.Site),
|
||||
SiteSvc: site.NewSiteService(repo.Site, repo.User),
|
||||
LicenseSvc: service.NewLicenseService(repo.License),
|
||||
Transaction: transaction.New(repo.Transaction, repo.Wallet, repo.Trx),
|
||||
Balance: balance.NewBalanceService(repo.Wallet, repo.Trx, repo.Crypto, &cfg.Withdraw, repo.Transaction),
|
||||
|
||||
@ -7,19 +7,18 @@ import (
|
||||
"furtuna-be/internal/constants/role"
|
||||
"furtuna-be/internal/entity"
|
||||
"furtuna-be/internal/repository"
|
||||
"furtuna-be/internal/repository/users"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
type SiteService struct {
|
||||
repo repository.SiteRepository
|
||||
user users.UserRepository
|
||||
user repository.User
|
||||
}
|
||||
|
||||
func NewSiteService(repo repository.SiteRepository) *SiteService {
|
||||
func NewSiteService(repo repository.SiteRepository, user repository.User) *SiteService {
|
||||
return &SiteService{
|
||||
repo: repo,
|
||||
user: user,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user