diff --git a/internal/api/activity/rewards_app.go b/internal/api/activity/rewards_app.go index 0297a16..612d5d5 100755 --- a/internal/api/activity/rewards_app.go +++ b/internal/api/activity/rewards_app.go @@ -12,19 +12,20 @@ import ( ) type rewardItem struct { - ID int64 `json:"id"` - ProductID int64 `json:"product_id"` - Name string `json:"name"` - Weight int32 `json:"weight"` - Quantity int64 `json:"quantity"` - OriginalQty int64 `json:"original_qty"` - Level int32 `json:"level"` - PrizeLevel int32 `json:"prize_level"` // 兼容部分前端逻辑 - Sort int32 `json:"sort"` - IsBoss int32 `json:"is_boss"` - ProductImage string `json:"product_image"` - MinScore int64 `json:"min_score"` - DropQuantity int32 `json:"drop_quantity"` + ID int64 `json:"id"` + ProductID int64 `json:"product_id"` + Name string `json:"name"` + Weight int32 `json:"weight"` + Quantity int64 `json:"quantity"` + OriginalQty int64 `json:"original_qty"` + Level int32 `json:"level"` + PrizeLevel int32 `json:"prize_level"` // 兼容部分前端逻辑 + Sort int32 `json:"sort"` + IsBoss int32 `json:"is_boss"` + ProductImage string `json:"product_image"` + MinScore int64 `json:"min_score"` + DropQuantity int32 `json:"drop_quantity"` + PriceSnapshotCents int64 `json:"price_snapshot_cents"` // 参考价(分) } type listRewardsResponse struct { @@ -131,8 +132,9 @@ func (h *handler) ListIssueRewards() core.HandlerFunc { IsBoss: v.IsBoss, ProductImage: imageMap[v.ProductID], MinScore: v.MinScore, - DropQuantity: v.DropQuantity, - } + DropQuantity: v.DropQuantity, + PriceSnapshotCents: v.PriceSnapshotCents, + } } ctx.Payload(res) }