| 12345678910111213141516171819202122232425262728293031323334 | package modeltype City struct {	Id         int64  `excel:"name=   " xorm:"pk autoincr    notnull    comment('')" json:"id"  binding:"required"`                                                //	Level      int    `excel:"name=省市级别   " xorm:"int(11)    notnull  default(0)  comment('省市级别')" json:"level"  binding:"required"`                               //省市级别	ParentId   int64  `excel:"name=父级id   " xorm:"bigint(11)    notnull  default(0)  comment('父级id')" json:"parentId"  binding:"required"`                         //父级id	CityId     int64  `excel:"name=城市id   " xorm:"bigint(11)    notnull  default(0)  comment('城市id')" json:"cityId"  binding:"required"`                           //城市id	AreaCode   string `excel:"name=区号   " xorm:"varchar(30)    notnull    comment('区号')" json:"areaCode"  binding:"required"`                                      //区号	Name       string `excel:"name=名称   " xorm:"varchar(100)    notnull    comment('名称')" json:"name"  binding:"required"`                                         //名称	MergerName string `excel:"name=合并名称   " xorm:"varchar(255)    notnull    comment('合并名称')" json:"mergerName"  binding:"required"`                               //合并名称	Lng        string `excel:"name=经度   " xorm:"varchar(50)    notnull    comment('经度')" json:"lng"  binding:"required"`                                           //经度	Lat        string `excel:"name=纬度   " xorm:"varchar(50)    notnull    comment('纬度')" json:"lat"  binding:"required"`                                           //纬度	IsShow     int    `excel:"name=是否展示   ,format=1=是,2=否" xorm:"tinyint(1)    notnull  default(1)  comment('是否展示')" json:"isShow"  binding:"required,oneof=1 2 "` //是否展示}func (this City) TableName() string {	return "sys_city"}func (this *City) Key() int64 {	return this.Id}func (this *City) Model() interface{} {	return this}func (this *City) BeforeUpdate() {}func (this *City) BeforeInsert() {}
 |