| 123456789101112131415161718192021222324 |
- package datamodel
- import "time"
- type Role 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不锁定')"`
- CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
- CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
- UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
- UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
- DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
- DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
- DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
- }
- func (m *Role) TableName() string {
- return "s_role"
- }
|