This commit is contained in:
aozhiwei 2024-07-16 14:41:31 +08:00
parent de0b80daa5
commit 7e2d0eedad

View File

@ -11,12 +11,21 @@ type InGameApi struct {
func (this *InGameApi) HeroList(c *gin.Context) { func (this *InGameApi) HeroList(c *gin.Context) {
reqJson := struct { reqJson := struct {
NetId interface{} `json:"net_id"` PageSize interface{} `json:"page_size"`
ContractAddress string `json:"contract_address"` Cursor interface{} `json:"cursor"`
To string `json:"to"` Search struct {
Tokens struct { Name string `json:"name"`
TokenId string `json:"token_id"` } `json:"search"`
} `json:"tokens"` Filter struct {
ItemIds []interface{} `json:"item_ids"`
HeroRanks []interface{} `json:"hero_ranks"`
} `json:"filter"`
Sort struct {
Fields [] struct {
Name string `json:"name"`
Type interface{} `json:"type"`
} `json:"fields"`
} `json:"sort"`
}{} }{}
if err := c.ShouldBindJSON(&reqJson); err != nil { if err := c.ShouldBindJSON(&reqJson); err != nil {
f5.RspErr(c, 401, "params parse error") f5.RspErr(c, 401, "params parse error")