This commit is contained in:
richboo111
2022-09-30 17:09:56 +08:00
parent e7f1101b9c
commit 13b7bd1c62
10 changed files with 698 additions and 103 deletions

View File

@@ -14,12 +14,13 @@ const (
VendorIDMTWM = 1
VendorIDELM = 2
VendorIDEBAI = 3
VendorIDYB = 4 //银豹
VendorIDJDShop = 5 //京东商城
VendorIDDouDian = 6 //抖店
VendorIDJX = 9 // 这是一个假的京西VendorID
VendorIDGD = 10
VendorIDYB = 4 //银豹
VendorIDJDShop = 5 //京东商城
VendorIDWSC = 11 // 微盟微商城
VendorIDPurchaseEnd = 11
VendorIDJX = 9 // 这是一个假的京西VendorID
VendorGoMei = 12 // 国美
VendorIDTT = 13 // 抖音平台小程序

View File

@@ -304,10 +304,6 @@ var (
type Store struct {
ModelIDCULD
RowID int64 `json:"rowID"` //标识这条数据(抖店用)
//StoreCode string `json:"storeCode"` //门店编码(抖店用)
//OpenTime map[int64]string `json:"openTime"` //营业时间(抖店用)
OriginalName string `orm:"-" json:"originalName"`
Name string `orm:"size(255)" json:"name"`
CityCode int `orm:"default(0);null" json:"cityCode"` // todo ?
@@ -1001,3 +997,18 @@ func (*BrandCategoryMap) TableUnique() [][]string {
[]string{"BrandID", "CategoryID", "DeletedAt"},
}
}
// 抖店 创建运费模板映射关系
type FreightTemplate struct {
ModelIDCULD
StoreID int64 `orm:"column(store_id)" json:"storeID"` //京西本地门店ID
VendorStoreID int64 `orm:"column(vendor_store_id)" json:"vendorStoreID"` //抖店平台门店ID
TemplateID int64 `orm:"column(template_id)" json:"templateID"` //运费模板ID
TemplateDetail string `orm:"column(template_detail)" json:"templateDetail"` //json转化的模板信息
}
func (*FreightTemplate) TableUnique() [][]string {
return [][]string{
[]string{"StoreID", "TemplateID", "VendorStoreID"},
}
}