34 lines
994 B
Plaintext
34 lines
994 B
Plaintext
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"` // 数据
|
||
}
|
||
|