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.

14 lines
1.1 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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)"`
}