Files
36Wisdom/biz/model/dto/redemption.go
T
2026-08-14 16:11:10 +08:00

50 lines
1.4 KiB
Go

package dto
import "github.com/gogf/gf/v2/frame/g"
// ---------- 后台管理 ----------
type AdminRedemptionItem struct {
Id int64 `json:"id"`
ChildId int64 `json:"child_id"`
ChildNickname string `json:"child_nickname"`
PrizeId int64 `json:"prize_id"`
PrizeName string `json:"prize_name"`
PointsCost int `json:"points_cost"`
Status int `json:"status"`
Code string `json:"code"`
CreatedAt string `json:"created_at"`
}
type AdminRedemptionListReq struct {
g.Meta `path:"/redemption/list" method:"get" summary:"兑换记录列表"`
Status int `json:"status"`
PrizeId int64 `json:"prize_id"`
}
type AdminRedemptionListRes struct {
List []*AdminRedemptionItem `json:"list"`
}
type AdminRedemptionShipReq struct {
g.Meta `path:"/redemption/ship" method:"post" summary:"兑换发货"`
Id int64 `v:"required|min:1" json:"id"`
Code string `json:"code"`
}
type AdminRedemptionShipRes struct{}
type AdminRedemptionReceiveReq struct {
g.Meta `path:"/redemption/receive" method:"post" summary:"确认领取"`
Id int64 `v:"required|min:1" json:"id"`
}
type AdminRedemptionReceiveRes struct{}
type AdminRedemptionCancelReq struct {
g.Meta `path:"/redemption/cancel" method:"post" summary:"取消兑换(退积分)"`
Id int64 `v:"required|min:1" json:"id"`
}
type AdminRedemptionCancelRes struct{}