feat: 积分质押功能
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user