This commit is contained in:
@@ -47,7 +47,6 @@ type Service struct {
|
||||
shopRoleStore *postgres.ShopRoleStore
|
||||
shopStore ShopStoreInterface
|
||||
enterpriseStore middleware.EnterpriseStoreInterface
|
||||
auditService AuditServiceInterface
|
||||
wecomMembers WeComMemberFinder
|
||||
tokenManager *pkgAuth.TokenManager
|
||||
}
|
||||
@@ -70,10 +69,6 @@ func (s *Service) SetTokenManager(tokenManager *pkgAuth.TokenManager) {
|
||||
s.tokenManager = tokenManager
|
||||
}
|
||||
|
||||
type AuditServiceInterface interface {
|
||||
LogOperation(ctx context.Context, log *model.AccountOperationLog)
|
||||
}
|
||||
|
||||
// WeComMemberFinder 定义账号绑定时校验应用可见成员的边界。
|
||||
type WeComMemberFinder interface {
|
||||
GetVisible(ctx context.Context, applicationID uint, userID string) (*model.WeComMember, error)
|
||||
@@ -87,7 +82,6 @@ func New(
|
||||
shopRoleStore *postgres.ShopRoleStore,
|
||||
shopStore ShopStoreInterface,
|
||||
enterpriseStore middleware.EnterpriseStoreInterface,
|
||||
auditService AuditServiceInterface,
|
||||
) *Service {
|
||||
return &Service{
|
||||
accountStore: accountStore,
|
||||
@@ -96,7 +90,6 @@ func New(
|
||||
shopRoleStore: shopRoleStore,
|
||||
shopStore: shopStore,
|
||||
enterpriseStore: enterpriseStore,
|
||||
auditService: auditService,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user