This commit is contained in:
richboo111
2022-10-09 16:38:07 +08:00
parent 2be43be1c4
commit 7eb18b640f
3 changed files with 70 additions and 13 deletions

View File

@@ -1016,17 +1016,19 @@ func (*BrandCategoryMap) TableUnique() [][]string {
}
}
// 抖店 创建运费模板映射关系
// 抖店 运费模板、仓库以及电子围栏绑定
type FreightTemplate struct {
ModelIDCULD
StoreID int64 `orm:"column(store_id)" json:"storeID"` //京西本地门店ID
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
TemplateID int64 `orm:"column(template_id)" json:"templateID"` //运费模板ID 1对1
TemplateDetail string `orm:"column(template_detail)" json:"templateDetail"` //json转化的模板信息
WarehouseID string `orm:"column(warehouse_id)" json:"warehouseID"` //创建门店时绑定的仓库id 1对1
FenceID string `orm:"column(fence_id)" json:"fenceID"` //电子围栏id 1对1
}
func (*FreightTemplate) TableUnique() [][]string {
return [][]string{
[]string{"StoreID", "TemplateID", "VendorStoreID"},
[]string{"StoreID", "VendorStoreID"},
}
}