沈阳玫苑物业管理后端
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

package supports
// 前端请求的结构体
type (
RoleDefine struct {
// 角色的标识等于casbin的sub,但角色需要加role_前缀
Sub string `json:"sub"`
// 对应casbin model的定义
Obj string `json:"obj"`
Act string `json:"act"`
Suf string `json:"suf"`
RoleName string `json:"roleName"`
}
// 用户所属角色组
GroupDefine struct {
Uid int64 `json:"uid"`
Sub []string `json:"sub"`
}
)