拉取门店

This commit is contained in:
renyutian
2019-04-30 18:25:43 +08:00
parent 54854f05b5
commit 2e31cab7b6
4 changed files with 255 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
package model
type StoreInfo struct {
ID int64 `orm:"column(id)" json:"id"`
VendorID int `orm:"column(vendor_id)" json:"vendorID"` // 平台
VendorStoreID string `orm:"column(vendor_store_id);size(48)" json:"vendorStoreID"` // 店铺ID
CityName string `orm:"size(48)" json:"cityName"` // 店铺所在城市
StoreName string `orm:"size(48)" json:"storeName"` // 店铺名称
Address string `orm:"size(255)" json:"address"` // 店铺地址
ShopScore float64 `json:"shopScore"` // 店铺评分
Tel string `orm:"size(48)" json:"tel"` // 店铺电话
RecentOrderNum string `orm:"size(48)" json:"recentOrderNum"` // 月订单量
SkuCount string `orm:"size(48)" json:"skuCount"` // 商品总量
BusinessType string `orm:"size(48)" json:"businessType"` // 经营范围
}
func (o *StoreInfo) TableUnique() [][]string {
return [][]string{
[]string{"VendorStoreID", "VendorID"},
}
}