kgen 平台接口
This commit is contained in:
33
doc/api/kgen.api
Normal file
33
doc/api/kgen.api
Normal file
@@ -0,0 +1,33 @@
|
||||
syntax = "v1"
|
||||
|
||||
@server (
|
||||
prefix: /gapi/kgen
|
||||
middleware: KGeNApiKeyCheck
|
||||
group: kgen
|
||||
)
|
||||
service novatask {
|
||||
@doc "KGeN任务完成检查"
|
||||
@handler KGeNTaskCheck
|
||||
get /task (KGeNTaskCheckReq) returns (KGeNResult)
|
||||
}
|
||||
|
||||
type KGeNTaskCheckReq {
|
||||
ApiKey string `header:"x-api-key"` // api key
|
||||
Email string `form:"email"` // 邮箱
|
||||
Type int8 `form:"type"` // 1.在官网注册(是否) 2.链接钱包(是否) 3.下载并绑定游戏账号(是否)
|
||||
}
|
||||
|
||||
type KGeNStatus {
|
||||
Code int `json:"code"` // 状态码
|
||||
Msg string `json:"msg"` // 状态信息
|
||||
}
|
||||
|
||||
type KGeNResultData {
|
||||
IsValid bool `json:"isValid"` // true:是,false:否
|
||||
}
|
||||
|
||||
type KGeNResult {
|
||||
Status KGeNStatus `json:"status"` // 状态
|
||||
Data KGeNResultData `json:"data"` // 数据
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import "task.api"
|
||||
import "carv.api"
|
||||
import "admin.api"
|
||||
import "game7.api"
|
||||
import "kgen.api"
|
||||
|
||||
info (
|
||||
desc: "nova api"
|
||||
|
||||
Reference in New Issue
Block a user