fix: list arg
This commit is contained in:
@@ -7,10 +7,3 @@ import "game7.api"
|
||||
import "kgen.api"
|
||||
import "stakepoint.api"
|
||||
import "transfercastile.api"
|
||||
|
||||
info (
|
||||
desc: "nova api"
|
||||
author: "jager"
|
||||
email: "lhj168os@gmail.com"
|
||||
)
|
||||
|
||||
|
||||
@@ -26,8 +26,8 @@ type TransferCastileToGameReq {
|
||||
|
||||
type TransferCastileToGameListReq {
|
||||
RoleID int64 `json:"role_id,optional"` // 角色id
|
||||
Page int `form:"page,range=[1:],optional,default=1"` // 页码
|
||||
Size int `form:"size,range=[10:100],optional,default=10"` // 每页数量
|
||||
Page int `json:"page,range=[1:],optional,default=1"` // 页码
|
||||
Size int `json:"size,range=[10:100],optional,default=10"` // 每页数量
|
||||
}
|
||||
|
||||
type TransferCastileToGameResp {
|
||||
@@ -44,8 +44,8 @@ type TransferCastileToGameListResp {
|
||||
}
|
||||
|
||||
type UserCastileBalanceResp {
|
||||
TotalCastile int `json:total_castile` //总数
|
||||
TransferAmount int `json:transfer_amount` //已转回游戏内的数量
|
||||
TotalBalance int `json:total_balance` //castile当前余额
|
||||
TotalCastile int `json:"total_castile"` //总数
|
||||
TransferAmount int `json:"transfer_amount"` //已转回游戏内的数量
|
||||
TotalBalance int `json:"total_balance"` //castile当前余额
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "",
|
||||
"description": "nova api",
|
||||
"version": ""
|
||||
},
|
||||
"schemes": [
|
||||
@@ -895,6 +894,28 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/gapi/transfercastile/v1/getBalance": {
|
||||
"post": {
|
||||
"summary": "查询castile代币余额",
|
||||
"operationId": "GetCastileBalance",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/UserCastileBalanceResp"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"transfercastile"
|
||||
],
|
||||
"security": [
|
||||
{
|
||||
"apiKey": []
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"/gapi/transfercastile/v1/list": {
|
||||
"post": {
|
||||
"summary": "获取提取castile到游戏的记录",
|
||||
@@ -920,9 +941,6 @@
|
||||
"tags": [
|
||||
"transfercastile"
|
||||
],
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
],
|
||||
"security": [
|
||||
{
|
||||
"apiKey": []
|
||||
@@ -2068,6 +2086,32 @@
|
||||
"email"
|
||||
]
|
||||
},
|
||||
"UserCastileBalanceResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"total_castile": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"description": "总数"
|
||||
},
|
||||
"transfer_amount": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"description": "已转回游戏内的数量"
|
||||
},
|
||||
"total_balance": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"description": "castile当前余额"
|
||||
}
|
||||
},
|
||||
"title": "UserCastileBalanceResp",
|
||||
"required": [
|
||||
"total_castile",
|
||||
"transfer_amount",
|
||||
"total_balance"
|
||||
]
|
||||
},
|
||||
"UserNft": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user