1
This commit is contained in:
parent
de0b80daa5
commit
7e2d0eedad
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user