You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
734 B
22 lines
734 B
package manage
|
|
|
|
import (
|
|
"recook/internal/v2/model/recook/goods"
|
|
"time"
|
|
)
|
|
|
|
type RecookThirdPartySupplyCategory struct {
|
|
Id uint `gorm:"column:id"`
|
|
FirstCategoryName string // 一级分类名称
|
|
SecondCategoryName string // 二级分类名称
|
|
ThirdCategoryName string // 三级分类名称
|
|
CategoryId uint // 匹配分类id
|
|
Category goods.RecookGoodsCategoryModel `gorm:"foreignKey:CategoryId"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
func (r *RecookThirdPartySupplyCategory) TableName() string {
|
|
return "recook_third_party_supply_category"
|
|
}
|