package models import ( "time" ) type TBaseAppVisiable struct { Id int64 `xorm:"not null pk autoincr comment('主键') INT(11)"` Appid string `xorm:"not null comment('集成系统ID') index CHAR(32)"` CityId string `xorm:"not null default ''-1'' comment('哪个城市可见') CHAR(36)"` AreaId string `xorm:"not null default ''-1'' comment('哪个地区可见') CHAR(36)"` BureauId string `xorm:"not null default ''-1'' comment('哪个单位可见') CHAR(36)"` LevelId int64 `xorm:"not null comment('哪一级的,1,2,3') INT(11)"` UpdateTs time.Time `xorm:"not null default 'current_timestamp()' comment('时间戳') TIMESTAMP"` }