You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.2 KiB
65 lines
1.2 KiB
package web |
|
|
|
import "server/modules/web/values" |
|
|
|
// swagger:route POST /game/list game idOfGameList |
|
// 请求游戏列表 |
|
// Responses: |
|
// 200:GameListResp |
|
|
|
// swagger:response GameListResp |
|
type GameListResp struct { |
|
// in:body |
|
Body values.GameListResp |
|
} |
|
|
|
// swagger:parameters idOfGameList |
|
type GameListReq struct { |
|
// in:body |
|
Body values.GameListReq |
|
} |
|
|
|
// swagger:route POST /game/enter game idOfEnterGame |
|
// 进入游戏 |
|
// Responses: |
|
// 200:EnterGameResp |
|
|
|
// swagger:response EnterGameResp |
|
type EnterGameResp struct { |
|
// in:body |
|
Body values.EnterGameResp |
|
} |
|
|
|
// swagger:parameters idOfEnterGame |
|
type EnterGameReq struct { |
|
// in:body |
|
Body values.EnterGameReq |
|
} |
|
|
|
// swagger:route POST /game/history game idOfGameHistory |
|
// 游戏历史 |
|
// Responses: |
|
// 200:GameHistoryResp |
|
|
|
// swagger:response GameHistoryResp |
|
type GameHistoryResp struct { |
|
// in:body |
|
Body values.GameHistoryResp |
|
} |
|
|
|
// swagger:parameters idOfGameHistory |
|
type GameHistoryReq struct { |
|
// in:body |
|
Body values.GameHistoryReq |
|
} |
|
|
|
// swagger:route POST /game/profile game idOfGameProfile |
|
// 游戏生涯数据 |
|
// Responses: |
|
// 200:GameProfileResp |
|
|
|
// swagger:response GameProfileResp |
|
type GameProfileResp struct { |
|
// in:body |
|
Body values.GameProfileResp |
|
}
|
|
|