Files
novatask/doc/api/admin.api
2025-01-13 17:45:25 +08:00

49 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
@doc "软质压手动结算"
@handler StakeSettle
get /stake_settle (StakeSettleReq)
@doc "NFT持有者更新"
@handler NftHolderUpdate
get /nft_holder_update
@doc "修正 NFT 质押者"
@handler FixNftStaker
get /fix_nft_staker
@doc "根据地址修复质押"
@handler StakeByAddress
post /stake_by_address (StakeByAddressReq)
}
type EmailReward {
Email string `json:"email"` // 邮箱,多个邮箱分号隔开
RewardType string `json:"reward_type"` // 奖励类型: points elite_points castile keys
Value float64 `json:"value"` // 数量
Remark string `json:"remark"` // 备注
}
type StakeSettleReq {
Date string `form:"date"`
}
type StakeByAddressReq {
Address []string `json:"address"`
}