You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
2.8 KiB
102 lines
2.8 KiB
4 months ago
|
package game
|
||
|
|
||
|
import (
|
||
|
"github.com/gogf/gf/v2/frame/g"
|
||
|
"tyj_admin/internal/model/entity"
|
||
|
)
|
||
|
|
||
|
type RandomGenerateCodeReq struct {
|
||
|
g.Meta `path:"/cdKey/randomGenerateCode" tags:"cdKey" method:"get" summary:"生成兑换码"`
|
||
|
Name string `p:"name" `
|
||
|
Num int `p:"num" `
|
||
|
KeyType int `p:"keyType"`
|
||
|
Channel string `p:"channel"`
|
||
|
Pass string `p:"pass"`
|
||
|
StartTime string `p:"startTime"`
|
||
|
StopTime string `p:"stopTime"`
|
||
|
Times int `p:"times"`
|
||
|
Awards []Award `p:"awards"`
|
||
|
}
|
||
|
|
||
|
type RandomGenerateCodeRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
Filename string `json:"filename"`
|
||
|
}
|
||
|
|
||
|
type GetGiftExchangeListReq struct {
|
||
|
g.Meta `path:"/cdKey/giftExchangeList" tags:"cdKey" method:"get" summary:"获取兑换表"`
|
||
|
KeyType int `p:"keyType"`
|
||
|
Channel string `p:"channel"`
|
||
|
Name string `p:"name" `
|
||
|
Pass string `p:"pass"`
|
||
|
StartTime string `p:"startTime"`
|
||
|
StopTime string `p:"stopTime"`
|
||
|
States int `p:"states"`
|
||
|
PageNum int `p:"pageNum"`
|
||
|
PageSize int `p:"pageSize"`
|
||
|
}
|
||
|
|
||
|
type GetGiftExchangeListRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
List []entity.GameGiftExchange `json:"list"`
|
||
|
Total int `json:"total"`
|
||
|
}
|
||
|
|
||
|
type UpdateGiftExchangeReq struct {
|
||
|
g.Meta `path:"/cdKey/updateGiftExchange" tags:"cdKey" method:"get" summary:"修改兑换表"`
|
||
|
Id int32 `p:"configId" v:"required#id不能为空"`
|
||
|
Channel string `p:"channel"`
|
||
|
StartTime string `p:"startTime"`
|
||
|
StopTime string `p:"stopTime"`
|
||
|
Times int32 `p:"times"`
|
||
|
}
|
||
|
|
||
|
type UpdateGiftExchangeRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
}
|
||
|
|
||
|
type Award struct {
|
||
|
ItemId int `json:"itemId"`
|
||
|
Num int `json:"num"`
|
||
|
}
|
||
|
|
||
|
type GetGenerateCodeReq struct {
|
||
|
g.Meta `path:"/exchangeCodeVerification" tags:"cdKey" method:"get" summary:"兑换码核销"`
|
||
|
Code string `p:"code"`
|
||
|
Account int64 `p:"unitId" `
|
||
|
Time int64 `p:"time" description:"时间值" `
|
||
|
//State int32 `p:"state" description:"状态:1-查询;2-兑换" `
|
||
|
Token string `p:"token" description:"校验码" `
|
||
|
}
|
||
|
|
||
|
type GetGenerateCodeRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
Code int32 `json:"code"`
|
||
|
//Msg string `json:"msg"`
|
||
|
Rewards string `json:"rewards"`
|
||
|
}
|
||
|
|
||
|
type GetGiftExchangeReq struct {
|
||
|
g.Meta `path:"/cdKey/giftExchangeExists" tags:"cdKey" method:"get" summary:"查询文件"`
|
||
|
Id int `p:"id"`
|
||
|
File string `p:"file"`
|
||
|
}
|
||
|
|
||
|
type GetGiftExchangeRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
State int `json:"state"`
|
||
|
}
|
||
|
|
||
|
type AddGenerateCodeReq struct {
|
||
|
g.Meta `path:"/addGenerateCode" tags:"cdKey" method:"get" summary:"添加兑换码"`
|
||
|
Id int64 `p:"id" `
|
||
|
Account int64 `p:"account" `
|
||
|
Time int64 `p:"time" description:"时间值" `
|
||
|
Token string `p:"token" description:"校验码" `
|
||
|
}
|
||
|
|
||
|
type AddGenerateCodeRes struct {
|
||
|
g.Meta `mime:"application/json"`
|
||
|
Code string `json:"code"`
|
||
|
}
|