This commit is contained in:
苏尹岚
2021-01-26 14:18:19 +08:00
parent 799bcb0aa3
commit 52846991ba
4 changed files with 218 additions and 1 deletions

View File

@@ -330,6 +330,8 @@ func (*SkuVendorCategoryMap) TableIndex() [][]string {
type VendorCategoryMap struct {
ModelIDCULD
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
VendorOrgCode string `json:"vendorOrgCode"`
CategoryID int `orm:"column(category_id)" json:"categoryID"` // 这个是指对应的sku_category
VendorCategoryName string `orm:"size(255)" json:"vendorCategoryName"` // 平台类别单独的名字
@@ -340,6 +342,6 @@ type VendorCategoryMap struct {
func (*VendorCategoryMap) TableUnique() [][]string {
return [][]string{
[]string{"VendorOrgCode", "CategoryID", "DeletedAt"},
[]string{"VendorID", "VendorOrgCode", "CategoryID", "DeletedAt"},
}
}