- 调整lng,lat和shop_score的数据格式为numeric
This commit is contained in:
@@ -13,16 +13,16 @@ type PageShop struct {
|
||||
CityCode int `orm:"default(0)" json:"cityCode"` // todo ?
|
||||
DistrictCode int `orm:"default(0)" json:"districtCode"` // todo ?
|
||||
Address string `orm:"size(255)" json:"address"`
|
||||
Lng float64 `json:"lng"`
|
||||
Lat float64 `json:"lat"`
|
||||
Lng float64 `orm:"digits(10);decimals(6)" json:"lng"`
|
||||
Lat float64 `orm:"digits(10);decimals(6)" json:"lat"`
|
||||
|
||||
Tel1 string `orm:"size(32);index" json:"tel1"`
|
||||
Tel2 string `orm:"size(32);index" json:"tel2"`
|
||||
|
||||
ShopScore float32 `json:"shopScore"` // 店铺评分
|
||||
RecentOrderNum int `orm:"size(48)" json:"recentOrderNum"` // 月订单量
|
||||
SkuCount int `orm:"size(48)" json:"skuCount"` // 商品总量
|
||||
BusinessType string `orm:"size(48)" json:"businessType"` // 经营范围
|
||||
ShopScore float64 `orm:"digits(3);decimals(1)" json:"shopScore"` // 店铺评分
|
||||
RecentOrderNum int `orm:"size(48)" json:"recentOrderNum"` // 月订单量
|
||||
SkuCount int `orm:"size(48)" json:"skuCount"` // 商品总量
|
||||
BusinessType string `orm:"size(48)" json:"businessType"` // 经营范围
|
||||
}
|
||||
|
||||
func (*PageShop) TableUnique() [][]string {
|
||||
|
||||
Reference in New Issue
Block a user