game7 api
This commit is contained in:
33
doc/api/game7.api
Normal file
33
doc/api/game7.api
Normal file
@@ -0,0 +1,33 @@
|
||||
syntax = "v1"
|
||||
|
||||
@server (
|
||||
prefix: /gapi/game7
|
||||
middleware: Game7ApiKeyCheck
|
||||
group: game7
|
||||
)
|
||||
service novatask {
|
||||
@doc "Game7任务完成检查"
|
||||
@handler Game7TaskCheck
|
||||
get /task (Game7TaskCheckReq) returns (Game7Result)
|
||||
}
|
||||
|
||||
type Game7TaskCheckReq {
|
||||
ApiKey string `header:"x-api-key"` // api key
|
||||
Email string `form:"email"` // 邮箱
|
||||
Type int8 `form:"type"` // 1.是否在官网注册并链接钱包(是/否) 2.是否有超过两个以上的英雄(是/否) 3.是否消耗召唤券召唤了新英雄(是/否) 4. 是否在游戏内绑定了官网账号(是/否) 5. 是否有一个31级以上的英雄(是/否) 6. 是否完成了主线第一章(是/否)
|
||||
}
|
||||
|
||||
type Status {
|
||||
Code int `json:"code"` // 状态码
|
||||
Msg string `json:"msg"` // 状态信息
|
||||
}
|
||||
|
||||
type Game7ResultData {
|
||||
IsValid bool `json:"isValid"` // true:是,false:否
|
||||
}
|
||||
|
||||
type Game7Result {
|
||||
Status Status `json:"status"` // 状态
|
||||
Data Game7ResultData `json:"data"` // 数据
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ syntax = "v1"
|
||||
import "task.api"
|
||||
import "carv.api"
|
||||
import "admin.api"
|
||||
import "game7.api"
|
||||
|
||||
info (
|
||||
desc: "nova api"
|
||||
|
||||
Reference in New Issue
Block a user