You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
1.2 KiB
21 lines
1.2 KiB
2 months ago
|
package models
|
||
|
|
||
|
type BotAuthMenu struct {
|
||
|
Component string `xorm:"comment('组件路径') VARCHAR(255)"`
|
||
|
CreateTime int64 `xorm:"comment('创建时间') BIGINT"`
|
||
|
Icon string `xorm:"default '' comment('图标') VARCHAR(50)"`
|
||
|
Id int `xorm:"not null pk autoincr INT"`
|
||
|
Name string `xorm:"default '' comment('规则名称') unique VARCHAR(100)"`
|
||
|
Path string `xorm:"default '' comment('规则URL') VARCHAR(255)"`
|
||
|
Permission string `xorm:"comment('权限标识') VARCHAR(255)"`
|
||
|
Pid int `xorm:"not null default 0 comment('父ID') index INT"`
|
||
|
Redirect string `xorm:"comment('访问目录菜单时的跳转地址') VARCHAR(255)"`
|
||
|
Remark string `xorm:"default '' comment('备注') VARCHAR(255)"`
|
||
|
Show int `xorm:"comment('是否显示:1,显示,2,隐藏') TINYINT"`
|
||
|
Sort int `xorm:"not null default 0 comment('排序') index INT"`
|
||
|
Status int `xorm:"default 1 comment('状态:1正常,2禁用') TINYINT"`
|
||
|
Title string `xorm:"default '' comment('规则名称') VARCHAR(50)"`
|
||
|
Type string `xorm:"not null default 'file' comment('catelog为目录,menu为菜单,file为权限节点') ENUM('catelog','file','menu')"`
|
||
|
UpdateTime int64 `xorm:"comment('更新时间') BIGINT"`
|
||
|
}
|