privilege.go 516 B

12345678910111213141516171819
  1. package vip
  2. import (
  3. "context"
  4. "go-common/app/service/main/vip/model"
  5. )
  6. // PrivilegebySid privilege by sid.
  7. func (s *Service) PrivilegebySid(c context.Context, arg *model.ArgPrivilegeBySid) (res *model.PrivilegesResp, err error) {
  8. res, err = s.vipRPC.PrivilegeBySid(c, arg)
  9. return
  10. }
  11. // PrivilegebyType privilege by type.
  12. func (s *Service) PrivilegebyType(c context.Context, arg *model.ArgPrivilegeDetail) (res []*model.PrivilegeDetailResp, err error) {
  13. res, err = s.vipRPC.PrivilegeByType(c, arg)
  14. return
  15. }