增加提取castile到游戏的数据库表,定义API接口等;
This commit is contained in:
42
doc/api/transfercastile.api
Normal file
42
doc/api/transfercastile.api
Normal file
@@ -0,0 +1,42 @@
|
||||
syntax = "v1"
|
||||
|
||||
@server (
|
||||
prefix: /gapi/transfercastile/v1
|
||||
jwt: Auth
|
||||
group: transfercastile
|
||||
)
|
||||
service novatask {
|
||||
@doc "提取castile到游戏"
|
||||
@handler TransferCastileToGame
|
||||
post /save (TransferCastileToGameReq) returns (TransferCastileToGameResp)
|
||||
|
||||
@doc "获取提取castile到游戏的记录"
|
||||
@handler TransferCastileToGameList
|
||||
post /list (TransferCastileToGameListReq) returns (TransferCastileToGameResp)
|
||||
}
|
||||
|
||||
type TransferCastileToGameReq {
|
||||
RoleID int64 `json:"role_id"` // 角色id
|
||||
Amount int64 `json:"amount"` // 数量
|
||||
}
|
||||
|
||||
type TransferCastileToGameResp {
|
||||
TransferToGameLog
|
||||
}
|
||||
|
||||
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 TransferCastileToGameListResp {
|
||||
Total int `json:"total"` // 总数
|
||||
List []TransferToGameLog `json:"list"` // 列表
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user