init...
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package entity
|
||||
|
||||
import "time"
|
||||
|
||||
type SysRole struct {
|
||||
RoleId int64 `excel:"name=角色序号" xorm:"pk autoincr" json:"roleId"` // 角色id
|
||||
RoleName string `excel:"name=角色名称" xorm:"varchar(64)" json:"roleName"` // 角色名称
|
||||
RoleKey string `excel:"name=角色权限" xorm:"varchar(64)" json:"roleKey"` // 角色权限标识
|
||||
RoleSort int `excel:"name=角色排序" xorm:"int" json:"roleSort"` // 角色顺序
|
||||
DataScope string `excel:"-" json:"dataScope"` // 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)
|
||||
MenuCheckStrictly bool `excel:"-" json:"menuCheckStrictly"` // 菜单树选择项是否关联显示
|
||||
DeptCheckStrictly bool `excel:"-" json:"deptCheckStrictly"` // 部门树选择项是否关联显示
|
||||
Status string `excel:"name=角色状态,format=0=正常,1=停用" xorm:"char(1)" json:"status"` // 角色状态 0正常1停用
|
||||
DelFlag string `excel:"" xorm:"char(1)" json:"delFlag"` // 删除标记0正常1删除
|
||||
CreateTime time.Time `excel:"" xorm:"created" json:"createTime"` // 创建时间
|
||||
CreateBy string `excel:"" json:"createBy"` // 创建人
|
||||
UpdateTime time.Time `excel:"" json:"updateTime"` // 更新时间
|
||||
UpdateBy string `excel:"" json:"updateBy"` // 更新人
|
||||
Remark string `excel:"" json:"remark"` // 备注
|
||||
MenuIds []int64 `xorm:"-" json:"menuIds"` // 菜单组
|
||||
DeptIds []int64 `xorm:"-" json:"deptIds"` // 部门组
|
||||
}
|
||||
|
||||
func (r SysRole) TableName() string {
|
||||
return "sys_role"
|
||||
}
|
||||
Reference in New Issue
Block a user