email reward

This commit is contained in:
lianghuanjie
2025-01-03 20:44:03 +08:00
parent bc0aeec1da
commit b098e50eb0
36 changed files with 1188 additions and 51 deletions

50
doc/api/carv.api Normal file
View 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"`
}