平台物料分类
This commit is contained in:
17
business/model/matter.go
Normal file
17
business/model/matter.go
Normal 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"},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user