25 lines
1.5 KiB
Go
25 lines
1.5 KiB
Go
package entity
|
||
|
||
// Permission 权限实体
|
||
type Permission struct {
|
||
Id int `json:"id" orm:"id,primary"` // 权限ID
|
||
ParentId int `json:"parent_id" orm:"parent_id"` // 父级权限ID
|
||
Name string `json:"name" orm:"name"` // 权限名称
|
||
Slug string `json:"slug" orm:"slug"` // 权限标识
|
||
Type int `json:"type" orm:"type"` // 权限类型:1-菜单,2-按钮,3-接口
|
||
Path string `json:"path" orm:"path"` // 路由路径
|
||
Component string `json:"component" orm:"component"` // 组件路径
|
||
Icon string `json:"icon" orm:"icon"` // 图标
|
||
Method string `json:"method" orm:"method"` // 请求方法
|
||
ApiPath string `json:"api_path" orm:"api_path"` // API路径
|
||
Description string `json:"description" orm:"description"` // 权限描述
|
||
IsHidden int `json:"is_hidden" orm:"is_hidden"` // 是否隐藏:0-否,1-是
|
||
IsCache int `json:"is_cache" orm:"is_cache"` // 是否缓存:0-否,1-是
|
||
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"` // 删除时间
|
||
}
|