17 lines
911 B
Go
17 lines
911 B
Go
package entity
|
||
|
||
// Role 角色实体
|
||
type Role struct {
|
||
Id int `json:"id" orm:"id,primary"` // 角色ID
|
||
Name string `json:"name" orm:"name"` // 角色名称
|
||
Slug string `json:"slug" orm:"slug"` // 角色标识
|
||
Description string `json:"description" orm:"description"` // 角色描述
|
||
Level int `json:"level" orm:"level"` // 角色等级
|
||
IsSystem int `json:"is_system" orm:"is_system"` // 是否系统角色:0-否,1-是
|
||
Sort int `json:"sort" orm:"sort"` // 排序
|
||
Status int `json:"status" orm:"status"` // 状态:1-启用,0-禁用
|
||
CreatedAt string `json:"created_at" orm:"created_at"` // 创建时间
|
||
UpdatedAt string `json:"updated_at" orm:"updated_at"` // 更新时间
|
||
DeletedAt string `json:"deleted_at" orm:"deleted_at"` // 删除时间
|
||
}
|