Documentation ¶
Index ¶
Constants ¶
View Source
const CasbinDomain = "kysion.com"
View Source
const CasbinSuperAdmin = "5302581852373061"
View Source
const CasbinSuperRole = "Super.Admin"
Variables ¶
View Source
var ( Global = global{ DefaultRegisterType: 0, NotAllowLoginUserTypeArr: garray.NewSortedIntArray(), LogLevelToDatabaseArr: garray.NewSortedIntArray(), ApiPreFix: "", } // PermissionTree 权限信息定义 PermissionTree = []*permission.SysPermissionTree{ { SysPermission: &sys_entity.SysPermission{ Id: 5947106208184773, Name: "用户管理", Identifier: "User", Type: 1, IsShow: 1, }, Children: []*permission.SysPermissionTree{ sys_enum.User.PermissionType.ViewDetail, sys_enum.User.PermissionType.List, sys_enum.User.PermissionType.ResetPassword, sys_enum.User.PermissionType.SetState, sys_enum.User.PermissionType.ChangePassword, sys_enum.User.PermissionType.Create, sys_enum.User.PermissionType.SetUsername, sys_enum.User.PermissionType.SetUserRole, sys_enum.User.PermissionType.SetPermission, }, }, { SysPermission: &sys_entity.SysPermission{ Id: 5948649344204869, Name: "组织架构", Identifier: "Organization", Type: 1, IsShow: 0, }, Children: []*permission.SysPermissionTree{ sys_enum.Organization.PermissionType.ViewDetail, sys_enum.Organization.PermissionType.List, sys_enum.Organization.PermissionType.Update, sys_enum.Organization.PermissionType.Delete, sys_enum.Organization.PermissionType.Create, }, }, { SysPermission: &sys_entity.SysPermission{ Id: 5948684761759818, Name: "角色管理", Identifier: "Role", Type: 1, IsShow: 1, }, Children: []*permission.SysPermissionTree{ sys_enum.Role.PermissionType.ViewDetail, sys_enum.Role.PermissionType.List, sys_enum.Role.PermissionType.Update, sys_enum.Role.PermissionType.Delete, sys_enum.Role.PermissionType.Create, sys_enum.Role.PermissionType.SetMember, sys_enum.Role.PermissionType.SetPermission, }, }, { SysPermission: &sys_entity.SysPermission{ Id: 5950408166668741, Name: "权限管理", Identifier: "Permission", Type: 1, IsShow: 1, }, Children: []*permission.SysPermissionTree{ sys_enum.Permissions.PermissionType.ViewDetail, sys_enum.Permissions.PermissionType.List, sys_enum.Permissions.PermissionType.Update, sys_enum.Permissions.PermissionType.Delete, sys_enum.Permissions.PermissionType.Create, }, }, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.