Files
novatask/doc/api/game7.api
lianghuanjie 957537efc4 game7 api
2025-01-10 16:20:58 +08:00

34 lines
994 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"` // 数据
}