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"` }