game7 api

This commit is contained in:
lianghuanjie
2025-01-10 16:20:58 +08:00
parent e9f237ee7c
commit 957537efc4
16 changed files with 359 additions and 24 deletions

33
doc/api/game7.api Normal file
View 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"` // 数据
}

View File

@@ -3,6 +3,7 @@ syntax = "v1"
import "task.api"
import "carv.api"
import "admin.api"
import "game7.api"
info (
desc: "nova api"