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.

20 lines
1015 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package models
import (
"time"
)
type TBaseMenu struct {
MenuId int64 `xorm:"not null pk autoincr comment('菜单编号') INT(11)"`
MenuName string `xorm:"not null comment('菜单名称') VARCHAR(32)"`
ParentId int64 `xorm:"not null comment('父节点ID') INT(11)"`
SortId int64 `xorm:"not null comment('排序号') INT(11)"`
Url string `xorm:"not null comment('链接地址') VARCHAR(255)"`
Memo string `xorm:"not null comment('描述信息') VARCHAR(255)"`
CreateTime time.Time `xorm:"not null comment('创建时间') DATETIME"`
LevelId int64 `xorm:"not null comment('级别') INT(11)"`
ForSchool int64 `xorm:"not null default 1 comment('如果是4号管理员的话那么单位是学校时是否可见') INT(11)"`
ForBureau int64 `xorm:"not null default 1 comment('如果是4号管理员的话那么单位是非学校时是否可见') INT(11)"`
UpdateTs time.Time `xorm:"default 'current_timestamp()' TIMESTAMP"`
}