feat: 积分质押功能

This commit is contained in:
2025-04-03 16:17:20 +08:00
parent 229f1d181b
commit 8119bcefdc
40 changed files with 2552 additions and 108 deletions

View File

@@ -29,6 +29,10 @@ service novatask {
@doc "根据地址修复质押"
@handler StakeByAddress
post /stake_by_address (StakeByAddressReq)
@doc "GameAction"
@handler GameAction
post /game_action (GameActionReq) returns (GameActionResp)
}
type EmailReward {
@@ -46,3 +50,14 @@ type StakeByAddressReq {
Address []string `json:"address"`
}
type GameActionReq {
RoleId int64 `json:"role_id"`
Action string `json:"action"`
}
type GameActionResp {
Ret int `json:"ret"`
Msg string `json:"msg"`
Data interface{} `json:"data"`
}