沈阳玫苑物业管理后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
431 B

  1. package supports
  2. // 前端请求的结构体
  3. type (
  4. RoleDefine struct {
  5. // 角色的标识等于casbin的sub,但角色需要加role_前缀
  6. Sub string `json:"sub"`
  7. // 对应casbin model的定义
  8. Obj string `json:"obj"`
  9. Act string `json:"act"`
  10. Suf string `json:"suf"`
  11. RoleName string `json:"roleName"`
  12. }
  13. // 用户所属角色组
  14. GroupDefine struct {
  15. Uid int64 `json:"uid"`
  16. Sub []string `json:"sub"`
  17. }
  18. )