city_response.go 1.8 KB

1234567891011121314
  1. package response
  2. type CityResponse struct {
  3. Id int64 `excel:"name= " xorm:"pk autoincr notnull comment('')" json:"id" binding:"required"` //
  4. Level int `excel:"name=省市级别 " xorm:"int(11) notnull default(0) comment('省市级别')" json:"level" binding:"required"` //省市级别
  5. ParentId int64 `excel:"name=父级id " xorm:"bigint(11) notnull default(0) comment('父级id')" json:"parentId" binding:"required"` //父级id
  6. CityId int64 `excel:"name=城市id " xorm:"bigint(11) notnull default(0) comment('城市id')" json:"cityId" binding:"required"` //城市id
  7. AreaCode string `excel:"name=区号 " xorm:"varchar(30) notnull comment('区号')" json:"areaCode" binding:"required"` //区号
  8. Name string `excel:"name=名称 " xorm:"varchar(100) notnull comment('名称')" json:"name" binding:"required"` //名称
  9. MergerName string `excel:"name=合并名称 " xorm:"varchar(255) notnull comment('合并名称')" json:"mergerName" binding:"required"` //合并名称
  10. Lng string `excel:"name=经度 " xorm:"varchar(50) notnull comment('经度')" json:"lng" binding:"required"` //经度
  11. Lat string `excel:"name=纬度 " xorm:"varchar(50) notnull comment('纬度')" json:"lat" binding:"required"` //纬度
  12. IsShow int `excel:"name=是否展示 ,format=1=是,2=否" xorm:"tinyint(1) notnull default(1) comment('是否展示')" json:"isShow" binding:"required,oneof=1 2 "` //是否展示
  13. }