Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Change = roleMemberChange{ Add: enum.New[ChangeEnum](1, "增加成员"), Remove: enum.New[ChangeEnum](2, "移除成员"), }
View Source
var PermissionType = permissionType{ ViewDetail: permission.New(5948684761759813, "ViewDetail", "查看角色", "查看某个角色"), ViewMember: permission.New(5948684761759823, "ViewMember", "查看角色成员", "查看某个角色下的用户"), List: permission.New(5948684761759814, "List", "角色列表", "查看所有角色"), Update: permission.New(5948684761759815, "Update", "更新角色信息", "更新某个角色信息"), Delete: permission.New(5948684761759816, "Delete", "删除角色", "删除某个角色"), Create: permission.New(5948684761759817, "Create", "创建角色", "创建一个新角色"), SetMember: permission.New(5950451522795973, "SetMember", "设置角色成员", "增加或移除角色成员"), SetPermission: permission.New(5950452043151813, "SetPermission", "设置角色权限", "设置某个角色的权限"), }
View Source
var Role = role{ PermissionType: PermissionType, Change: Change, }
Functions ¶
This section is empty.
Types ¶
type ChangeEnum ¶ added in v0.6.7
type PermissionTypeEnum ¶
type PermissionTypeEnum = base_permission.IPermission
Click to show internal directories.
Click to hide internal directories.