modify: 手动结算软质押奖励支持指定日期
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"nova_task/internal/logic/nft"
|
||||
"nova_task/internal/pkg/errs"
|
||||
"nova_task/internal/svc"
|
||||
"nova_task/internal/types"
|
||||
)
|
||||
|
||||
type StakeSettleLogic struct {
|
||||
@@ -24,10 +25,10 @@ func NewStakeSettleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *Stake
|
||||
}
|
||||
}
|
||||
|
||||
func (l *StakeSettleLogic) StakeSettle() error {
|
||||
func (l *StakeSettleLogic) StakeSettle(req *types.StakeSettleReq) error {
|
||||
threading.GoSafe(func() {
|
||||
lg := nft.NewStakeSettleLogic(context.Background(), l.svcCtx)
|
||||
lg.StakeSettle()
|
||||
lg.StakeSettle(req.Date)
|
||||
})
|
||||
|
||||
return errs.Success()
|
||||
|
||||
Reference in New Issue
Block a user