28 lines
583 B
Go
28 lines
583 B
Go
package dto
|
|
|
|
type PrizeItem struct {
|
|
Id int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Description string `json:"description"`
|
|
Icon string `json:"icon"`
|
|
PType int `json:"p_type"`
|
|
PointsCost int `json:"points_cost"`
|
|
Stock int `json:"stock"`
|
|
Status int `json:"status"`
|
|
SortOrder int `json:"sort_order"`
|
|
}
|
|
|
|
type PrizeGetReq struct {
|
|
Id int64 `v:"required" json:"id"`
|
|
}
|
|
|
|
type PrizeGetRes struct {
|
|
Prize PrizeItem `json:"prize"`
|
|
}
|
|
|
|
type PrizeListReq struct{}
|
|
|
|
type PrizeListRes struct {
|
|
List []PrizeItem `json:"list"`
|
|
}
|