feat(quality-owner): 增加优质号主自助取消与权益校验
This commit is contained in:
@@ -24,6 +24,13 @@ func (s *Service) Activate(ctx context.Context, userID uint64) (*StatusDTO, erro
|
||||
return s.repo.Activate(ctx, userID)
|
||||
}
|
||||
|
||||
func (s *Service) Cancel(ctx context.Context, userID uint64, meta AuditMeta) (*StatusDTO, error) {
|
||||
if s == nil || s.repo == nil {
|
||||
return nil, ErrDependencyUnavailable
|
||||
}
|
||||
return s.repo.Cancel(ctx, userID, meta)
|
||||
}
|
||||
|
||||
func (s *Service) AdminSet(ctx context.Context, adminID uint64, userID uint64, req AdminSetRequest, meta AuditMeta) (*StatusDTO, error) {
|
||||
if s == nil || s.repo == nil {
|
||||
return nil, ErrDependencyUnavailable
|
||||
|
||||
Reference in New Issue
Block a user