aa
This commit is contained in:
@@ -33,3 +33,49 @@ func (*PageShop) TableUnique() [][]string {
|
||||
[]string{"VendorStoreID", "VendorID"},
|
||||
}
|
||||
}
|
||||
|
||||
//各平台商品数据
|
||||
type PageSku struct {
|
||||
ModelIDCUL
|
||||
|
||||
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
||||
VendorStoreID string `orm:"column(vendor_store_id)" json:"vendorStoreID"`
|
||||
VendorSkuID string `orm:"column(vendor_sku_id)" json:"vendorSkuID"`
|
||||
VendorSkuName string `json:"vendorSkuName"`
|
||||
MonthSaled int `json:"monthSaled"`
|
||||
ActPrice int `json:"actPrice"`
|
||||
SalePrice int `json:"salePrice"`
|
||||
Unit string `json:"unit"`
|
||||
}
|
||||
|
||||
func (*PageSku) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"VendorID", "VendorStoreID", "VendorSkuID"},
|
||||
}
|
||||
}
|
||||
|
||||
func (*PageSku) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"MonthSaled", "SalePrice"},
|
||||
}
|
||||
}
|
||||
|
||||
//各平台门店数据
|
||||
type PageStore struct {
|
||||
ModelIDCUL
|
||||
|
||||
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
||||
VendorStoreID string `orm:"column(vendor_store_id)" json:"vendorStoreID"`
|
||||
VendorStoreName string `json:"vendorStoreName"`
|
||||
Address string `json:"address"`
|
||||
CityName string `json:"cityName"`
|
||||
OrgCode string `json:"orgCode`
|
||||
Lng string `json:"lng"`
|
||||
Lat string `json:"lat"`
|
||||
}
|
||||
|
||||
func (*PageStore) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"VendorID", "VendorStoreID"},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -350,29 +350,3 @@ func (*VendorCategoryMap) TableUnique() [][]string {
|
||||
[]string{"VendorID", "VendorOrgCode", "CategoryID", "DeletedAt"},
|
||||
}
|
||||
}
|
||||
|
||||
//各平台商品数据
|
||||
type PageSku struct {
|
||||
ModelIDCUL
|
||||
|
||||
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
||||
VendorStoreID string `orm:"column(vendor_store_id)" json:"vendorStoreID"`
|
||||
VendorSkuID string `orm:"column(vendor_sku_id)" json:"vendorSkuID"`
|
||||
VendorSkuName string `json:"vendorSkuName"`
|
||||
MonthSaled int `json:"monthSaled"`
|
||||
ActPrice int `json:"actPrice"`
|
||||
SalePrice int `json:"salePrice"`
|
||||
Unit string `json:"unit"`
|
||||
}
|
||||
|
||||
func (*PageSku) TableUnique() [][]string {
|
||||
return [][]string{
|
||||
[]string{"VendorID", "VendorStoreID", "VendorSkuID"},
|
||||
}
|
||||
}
|
||||
|
||||
func (*PageSku) TableIndex() [][]string {
|
||||
return [][]string{
|
||||
[]string{"MonthSaled", "SalePrice"},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user