From 7e2d0eedad8d92fa37eaac2cfb7b9f6ad8f2234f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 16 Jul 2024 14:41:31 +0800 Subject: [PATCH] 1 --- server/marketserver/api/v1/ingame/ingame.go | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/server/marketserver/api/v1/ingame/ingame.go b/server/marketserver/api/v1/ingame/ingame.go index cccd0f38..fc815a09 100644 --- a/server/marketserver/api/v1/ingame/ingame.go +++ b/server/marketserver/api/v1/ingame/ingame.go @@ -11,12 +11,21 @@ type InGameApi struct { func (this *InGameApi) HeroList(c *gin.Context) { reqJson := struct { - NetId interface{} `json:"net_id"` - ContractAddress string `json:"contract_address"` - To string `json:"to"` - Tokens struct { - TokenId string `json:"token_id"` - } `json:"tokens"` + PageSize interface{} `json:"page_size"` + Cursor interface{} `json:"cursor"` + Search struct { + Name string `json:"name"` + } `json:"search"` + 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 { f5.RspErr(c, 401, "params parse error")