Files
jx-callback/business/model/store_page.go
2019-04-30 18:25:43 +08:00

22 lines
1.2 KiB
Go

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"},
}
}