| 123456789101112131415 |
- package viewmodel
- type RoleInfo struct {
- RoleId int64 `json:"roleId" xorm:"'role_id' pk comment('主键ID')"`
- RoleName string `json:"roleName" xorm:"'role_name' comment('角色名称')"`
- RoleDesc string `json:"roleDesc" xorm:"'role_desc' comment('描述')"`
- RoleTypeId int64 `json:"roleTypeId" xorm:"'role_type_id' comment('角色类型')"`
- SortNo int64 `json:"sortNo" xorm:"'sort_no' default 0 comment('排序')"`
- Status int64 `json:"status" xorm:"'status' default 0 comment('状态, 默认 0 正常,1 锁定')"`
- IsFixed int64 `json:"isFixed" xorm:"'is_fixed' comment('锁定,默认为0不锁定')"`
- }
- func (m *RoleInfo) TableName() string {
- return "s_role"
- }
|