authority.go 315 B

12345678910111213
  1. package service
  2. import "context"
  3. // AddAuthority .
  4. func (s *Service) AddAuthority(c context.Context, mids []int64) (int64, error) {
  5. return s.dao.AddAuthority(c, mids)
  6. }
  7. // RemoveAuthority .
  8. func (s *Service) RemoveAuthority(c context.Context, mids []int64) (int64, error) {
  9. return s.dao.RmAuthority(c, mids)
  10. }