email reward
This commit is contained in:
23
doc/api/admin.api
Normal file
23
doc/api/admin.api
Normal file
@@ -0,0 +1,23 @@
|
||||
syntax = "v1"
|
||||
|
||||
@server (
|
||||
prefix: /gapi/admin
|
||||
middleware: AdminSecretCheck
|
||||
group: admin
|
||||
)
|
||||
service novatask {
|
||||
@doc "每日钱包签到任务"
|
||||
@handler AddEmailReward
|
||||
post /email_reward (EmailReward)
|
||||
|
||||
@doc "执行发放奖励操作"
|
||||
@handler SendEmailReward
|
||||
get /email_reward
|
||||
}
|
||||
|
||||
type EmailReward {
|
||||
Email string `json:"email"`
|
||||
RewardType string `json:"reward_type"`
|
||||
Value float64 `json:"value"`
|
||||
}
|
||||
|
||||
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"`
|
||||
}
|
||||
|
||||
12
doc/api/nova.api
Normal file
12
doc/api/nova.api
Normal file
@@ -0,0 +1,12 @@
|
||||
syntax = "v1"
|
||||
|
||||
import "task.api"
|
||||
import "carv.api"
|
||||
import "admin.api"
|
||||
|
||||
info (
|
||||
desc: "nova api"
|
||||
author: "jager"
|
||||
email: "lhj168os@gmail.com"
|
||||
)
|
||||
|
||||
@@ -132,7 +132,7 @@ type UserNftList {
|
||||
|
||||
// StakeNftList 质押请求参数NFT列表
|
||||
type StakeNftList {
|
||||
RoleId uint64 `json:"role_id"` // 角色id
|
||||
RoleId uint64 `json:"role_id,optional"` // 角色id
|
||||
TokenIds []string `json:"token_ids"` // nft列表
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user