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"
|
||||
|
||||
@@ -298,6 +298,50 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/gapi/game7/task": {
|
||||
"get": {
|
||||
"summary": "Game7任务完成检查",
|
||||
"operationId": "Game7TaskCheck",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Game7Result"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "x-api-key",
|
||||
"description": " api key",
|
||||
"in": "header",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"description": " 邮箱",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"description": " 1.是否在官网注册并链接钱包(是/否) 2.是否有超过两个以上的英雄(是/否) 3.是否消耗召唤券召唤了新英雄(是/否) 4. 是否在游戏内绑定了官网账号(是/否) 5. 是否有一个31级以上的英雄(是/否) 6. 是否完成了主线第一章(是/否)",
|
||||
"in": "query",
|
||||
"required": true,
|
||||
"type": "integer",
|
||||
"format": "int8"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"game7"
|
||||
],
|
||||
"consumes": [
|
||||
"multipart/form-data"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/gapi/task/v1/community": {
|
||||
"get": {
|
||||
"summary": "获取社区列表",
|
||||
@@ -686,6 +730,57 @@
|
||||
"message"
|
||||
]
|
||||
},
|
||||
"Game7Result": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"$ref": "#/definitions/Status",
|
||||
"description": " 状态"
|
||||
},
|
||||
"data": {
|
||||
"$ref": "#/definitions/Game7ResultData",
|
||||
"description": " 数据"
|
||||
}
|
||||
},
|
||||
"title": "Game7Result",
|
||||
"required": [
|
||||
"status",
|
||||
"data"
|
||||
]
|
||||
},
|
||||
"Game7ResultData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isValid": {
|
||||
"type": "boolean",
|
||||
"format": "boolean",
|
||||
"description": " true:是,false:否"
|
||||
}
|
||||
},
|
||||
"title": "Game7ResultData",
|
||||
"required": [
|
||||
"isValid"
|
||||
]
|
||||
},
|
||||
"Game7TaskCheckReq": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"email": {
|
||||
"type": "string",
|
||||
"description": " 邮箱"
|
||||
},
|
||||
"type": {
|
||||
"type": "integer",
|
||||
"format": "int8",
|
||||
"description": " 1.是否在官网注册并链接钱包(是/否) 2.是否有超过两个以上的英雄(是/否) 3.是否消耗召唤券召唤了新英雄(是/否) 4. 是否在游戏内绑定了官网账号(是/否) 5. 是否有一个31级以上的英雄(是/否) 6. 是否完成了主线第一章(是/否)"
|
||||
}
|
||||
},
|
||||
"title": "Game7TaskCheckReq",
|
||||
"required": [
|
||||
"email",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
"GetCommunityListResp": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -870,6 +965,25 @@
|
||||
"total_income_tokens"
|
||||
]
|
||||
},
|
||||
"Status": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"description": " 状态码"
|
||||
},
|
||||
"msg": {
|
||||
"type": "string",
|
||||
"description": " 状态信息"
|
||||
}
|
||||
},
|
||||
"title": "Status",
|
||||
"required": [
|
||||
"code",
|
||||
"msg"
|
||||
]
|
||||
},
|
||||
"Task": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user