go-common/app/interface/main/account/service/vip/privilege.go
2019-04-22 18:49:16 +08:00

20 lines
516 B
Go

package vip
import (
"context"
"go-common/app/service/main/vip/model"
)
// PrivilegebySid privilege by sid.
func (s *Service) PrivilegebySid(c context.Context, arg *model.ArgPrivilegeBySid) (res *model.PrivilegesResp, err error) {
res, err = s.vipRPC.PrivilegeBySid(c, arg)
return
}
// PrivilegebyType privilege by type.
func (s *Service) PrivilegebyType(c context.Context, arg *model.ArgPrivilegeDetail) (res []*model.PrivilegeDetailResp, err error) {
res, err = s.vipRPC.PrivilegeByType(c, arg)
return
}