feat:完善产品详情

This commit is contained in:
henry
2021-12-08 17:46:47 +08:00
parent 10a7e9cacd
commit adc698840c
11 changed files with 223 additions and 6 deletions

View File

@ -0,0 +1,18 @@
package model
// TechnologyProductCollect 产品收藏数据模型
type TechnologyProductCollect struct {
Model
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
ProductID uint64 `gorm:"column:product_id;type:int(11);default:0;comment:产品ID" json:"-"`
ModelDeleted
ModelAt
}
func (m *TechnologyProductCollect) TableName() string {
return "technology_product_collect"
}
func NewTechnologyProductCollect() *TechnologyProductCollect {
return &TechnologyProductCollect{}
}