增加提取castile到游戏的逻辑。

This commit is contained in:
yuming88
2025-04-28 19:26:17 +08:00
parent e50137a90e
commit d40cdda6ae
11 changed files with 205 additions and 73 deletions

View File

@@ -17,26 +17,22 @@ service novatask {
type TransferCastileToGameReq {
RoleID int64 `json:"role_id"` // 角色id
Amount int64 `json:"amount"` // 数量
}
type TransferCastileToGameResp {
TransferToGameLog
Amount int64 `json:"amount,range=[1:]"` // 数量
}
type TransferCastileToGameListReq {
RoleID int64 `json:"role_id,optional"` // 角色id
}
type TransferToGameLog {
Id int `json:"id"` // id
RoleID int64 `json:"role_id"` // 角色id
Amount int64 `json:"amount"` // 数量
Status string `json:"elf_name"` // 状态
type TransferCastileToGameResp {
Id int `json:"id"` // id
RoleID int64 `json:"role_id"` // 角色id
Amount int64 `json:"amount"` // 数量
Status int64 `json:"status"` // 状态
}
type TransferCastileToGameListResp {
Total int `json:"total"` // 总数
List []TransferToGameLog `json:"list"` // 列表
Total int `json:"total"` // 总数
List []TransferCastileToGameResp `json:"list"` // 列表
}

View File

@@ -1945,7 +1945,7 @@
"list": {
"type": "array",
"items": {
"$ref": "#/definitions/TransferToGameLog"
"$ref": "#/definitions/TransferCastileToGameResp"
},
"description": " 列表"
}
@@ -1994,42 +1994,18 @@
"format": "int64",
"description": " 数量"
},
"elf_name": {
"type": "string",
"status": {
"type": "integer",
"format": "int64",
"description": " 状态"
}
},
"title": "TransferCastileToGameResp"
},
"TransferToGameLog": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int32",
"description": " id"
},
"role_id": {
"type": "integer",
"format": "int64",
"description": " 角色id"
},
"amount": {
"type": "integer",
"format": "int64",
"description": " 数量"
},
"elf_name": {
"type": "string",
"description": " 状态"
}
},
"title": "TransferToGameLog",
"title": "TransferCastileToGameResp",
"required": [
"id",
"role_id",
"amount",
"elf_name"
"status"
]
},
"UnStakeNftReq": {