- 饿百与京东拉门店数据基本OK
This commit is contained in:
38
business/model/net_spider.go
Normal file
38
business/model/net_spider.go
Normal file
@@ -0,0 +1,38 @@
|
||||
package model
|
||||
|
||||
type PageShop struct {
|
||||
ModelIDCULD
|
||||
|
||||
Name string `orm:"size(255)" json:"name"`
|
||||
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
||||
VendorStoreID string `orm:"column(vendor_store_id);size(48)" json:"vendorStoreID"`
|
||||
OrgCode string `orm:"size(255)" json:"orgCode"`
|
||||
VendorStatus string `orm:"size(48)" json:"vendorStatus"`
|
||||
Status int `json:"status"` // 取值同Store.Status
|
||||
|
||||
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"`
|
||||
|
||||
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"` // 经营范围
|
||||
}
|
||||
|
||||
func (*PageShop) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"VendorStoreID", "VendorID"},
|
||||
}
|
||||
}
|
||||
|
||||
func (*PageShop) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"Tel1"},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user