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.
22 lines
1.4 KiB
22 lines
1.4 KiB
package models
|
|
|
|
type BotAuthRule struct {
|
|
Condition string `xorm:"default '' comment('条件') VARCHAR(255)"`
|
|
Createtime int64 `xorm:"comment('创建时间') BIGINT"`
|
|
Extend string `xorm:"default '' comment('扩展属性') VARCHAR(255)"`
|
|
Icon string `xorm:"default '' comment('图标') VARCHAR(50)"`
|
|
Id int `xorm:"not null pk autoincr INT"`
|
|
Ismenu int `xorm:"not null default 0 comment('是否为菜单') TINYINT"`
|
|
Menutype string `xorm:"comment('菜单类型') ENUM('addtabs','ajax','blank','dialog')"`
|
|
Name string `xorm:"default '' comment('规则名称') unique VARCHAR(100)"`
|
|
Pid int `xorm:"not null default 0 comment('父ID') index INT"`
|
|
Pinyin string `xorm:"default '' comment('拼音') VARCHAR(100)"`
|
|
Py string `xorm:"default '' comment('拼音首字母') VARCHAR(30)"`
|
|
Remark string `xorm:"default '' comment('备注') VARCHAR(255)"`
|
|
Status string `xorm:"default '' comment('状态') VARCHAR(30)"`
|
|
Title string `xorm:"default '' comment('规则名称') VARCHAR(50)"`
|
|
Type string `xorm:"not null default 'file' comment('menu为菜单,file为权限节点') ENUM('file','menu')"`
|
|
Updatetime int64 `xorm:"comment('更新时间') BIGINT"`
|
|
Url string `xorm:"default '' comment('规则URL') VARCHAR(255)"`
|
|
Weigh int `xorm:"not null default 0 comment('权重') index INT"`
|
|
}
|
|
|