平台物料分类

This commit is contained in:
suyl
2021-04-27 10:54:33 +08:00
parent 14f3c29c04
commit 7279c48a10
5 changed files with 56 additions and 0 deletions

17
business/model/matter.go Normal file
View File

@@ -0,0 +1,17 @@
package model
type VendorMatterCategory struct {
ModelIDCULD
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
CategoryID int `orm:"column(category_id)" json:"categoryID"`
CategoryName string `json:"categoryName"`
ParentID int `orm:"column(parent_id)" json:"parentID"`
Level int `json:"level"`
}
func (v *VendorMatterCategory) TableUnique() [][]string {
return [][]string{
[]string{"VendorID", "CategoryID"},
}
}