feat: persist product claimed counts
This commit is contained in:
@@ -26,6 +26,7 @@ type Product struct {
|
||||
CoverUrl any // 封面URL
|
||||
DetailHtml any // 商品详情
|
||||
IsRecommended any // 是否推荐
|
||||
ClaimedCount any // 已领取展示数
|
||||
PublishStatus any // 发布状态
|
||||
StartAt *gtime.Time // 展示开始时间
|
||||
EndAt *gtime.Time // 展示结束时间
|
||||
|
||||
@@ -24,6 +24,7 @@ type Product struct {
|
||||
CoverUrl string `json:"coverUrl" orm:"cover_url" description:"封面URL"`
|
||||
DetailHtml string `json:"detailHtml" orm:"detail_html" description:"商品详情"`
|
||||
IsRecommended int `json:"isRecommended" orm:"is_recommended" description:"是否推荐"`
|
||||
ClaimedCount uint `json:"claimedCount" orm:"claimed_count" description:"已领取展示数"`
|
||||
PublishStatus int `json:"publishStatus" orm:"publish_status" description:"发布状态"`
|
||||
StartAt *gtime.Time `json:"startAt" orm:"start_at" description:"展示开始时间"`
|
||||
EndAt *gtime.Time `json:"endAt" orm:"end_at" description:"展示结束时间"`
|
||||
|
||||
@@ -36,6 +36,7 @@ type ProductUpdateFields struct {
|
||||
type ProductInsertFields struct {
|
||||
ProductUpdateFields
|
||||
ProductNo string
|
||||
ClaimedCount uint
|
||||
PublishStatus int
|
||||
CreatedBy uint64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user