19 lines
407 B
Go
19 lines
407 B
Go
package dto
|
|
|
|
type RedemptionItem struct {
|
|
Id int64 `json:"id"`
|
|
UserId int64 `json:"user_id"`
|
|
PrizeId int64 `json:"prize_id"`
|
|
PointsCost int `json:"points_cost"`
|
|
Status int `json:"status"`
|
|
Code string `json:"code"`
|
|
}
|
|
|
|
type RedemptionListReq struct {
|
|
UserId int64 `v:"required" json:"user_id"`
|
|
}
|
|
|
|
type RedemptionListRes struct {
|
|
List []RedemptionItem `json:"list"`
|
|
}
|