email reward
This commit is contained in:
50
doc/api/carv.api
Normal file
50
doc/api/carv.api
Normal file
@@ -0,0 +1,50 @@
|
||||
syntax = "v1"
|
||||
|
||||
@server (
|
||||
prefix: /gapi/carv
|
||||
middleware: ApiKeyCheck
|
||||
group: carv
|
||||
)
|
||||
service novatask {
|
||||
@doc "注册绑定钱包任务"
|
||||
@handler BindWallet
|
||||
get /bind_wallet (EmailKey) returns (CarvResult)
|
||||
|
||||
@doc "每日钱包签到任务"
|
||||
@handler WalletCheckIn
|
||||
get /check_in_wallet (EmailKey) returns (CarvResult)
|
||||
|
||||
@doc "下载并绑定Castile游戏角色"
|
||||
@handler DownloadAndBindRole
|
||||
get /bind_role (EmailKey) returns (CarvResult)
|
||||
|
||||
@doc "游戏主线解锁第x章节"
|
||||
@handler UnlockChapter
|
||||
get /unlock_chapter (UnlockChapterReq) returns (CarvResult)
|
||||
}
|
||||
|
||||
type Result {
|
||||
IsValid bool `json:"isValid"`
|
||||
}
|
||||
|
||||
type Error {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
type CarvResult {
|
||||
Result *Result `json:"result"`
|
||||
Error *Error `json:"error"`
|
||||
}
|
||||
|
||||
type EmailKey {
|
||||
Email string `form:"email"`
|
||||
ApiKey string `Header:"x-api-key"`
|
||||
}
|
||||
|
||||
type UnlockChapterReq {
|
||||
Email string `form:"email"`
|
||||
Chapter int `form:"chapter"`
|
||||
ApiKey string `Header:"x-api-key"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user