package models type TBaseRole struct { RoleId string `xorm:"not null pk comment('角色ID') CHAR(36)"` RoleName string `xorm:"not null default '''' comment('角色名称') VARCHAR(100)"` RoleCode string `xorm:"not null default '''' comment('角色编码') VARCHAR(100)"` RoleLevel int32 `xorm:"not null default -1 comment('角色级别 1:超级管理员 2:省级教育局 3:市级教育局 4:区(县)级教育局 5:省级教辅单位 6:市级教辅单位 7:区(县)级教辅单位 8:校级 9:大学区') INT(11)"` BusinessCode string `xorm:"not null default '''' comment('业务系统编码,对应表t_base_business') index CHAR(6)"` IdentityId int32 `xorm:"not null default 1 comment('身份ID,对应表t_sys_identity') INT(11)"` BUse int32 `xorm:"not null default 1 comment('是否启用 0:未启用 1:启用') TINYINT(1)"` ManageLevel int32 `xorm:"not null default 1 comment('管理级别 1:只管理本级 2:可以管理下一级') INT(11)"` SortId int32 `xorm:"not null default 1 comment('排序号') INT(11)"` }