fusenapi/model/gmodel/fs_product_recommend_gen.go

23 lines
816 B
Go
Raw Normal View History

2023-07-20 06:56:28 +00:00
package gmodel
import (
"gorm.io/gorm"
)
// fs_product_recommend 推荐商品表
type FsProductRecommend struct {
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
2023-07-21 02:33:43 +00:00
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品ID
2023-07-20 06:56:28 +00:00
Status *int64 `gorm:"default:1;" json:"status"` // 状态 1正常 0不正常
2023-07-20 09:35:13 +00:00
Category *int64 `gorm:"default:1;" json:"category"` // 推荐类别1:详情推荐 2:列表页推荐
2023-07-20 06:56:28 +00:00
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
}
type FsProductRecommendModel struct {
db *gorm.DB
name string
}
func NewFsProductRecommendModel(db *gorm.DB) *FsProductRecommendModel {
return &FsProductRecommendModel{db: db, name: "fs_product_recommend"}
}