31 lines
626 B
Go
31 lines
626 B
Go
package admin
|
|
|
|
import (
|
|
"context"
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
"nova_task/internal/logic/nft"
|
|
"nova_task/internal/pkg/errs"
|
|
"nova_task/internal/svc"
|
|
)
|
|
|
|
type StakeSettleLogic struct {
|
|
logx.Logger
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
}
|
|
|
|
// 软质压手动结算
|
|
func NewStakeSettleLogic(ctx context.Context, svcCtx *svc.ServiceContext) *StakeSettleLogic {
|
|
return &StakeSettleLogic{
|
|
Logger: logx.WithContext(ctx),
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (l *StakeSettleLogic) StakeSettle() error {
|
|
lg := nft.NewStakeSettleLogic(l.ctx, l.svcCtx)
|
|
lg.StakeSettle()
|
|
return errs.Success()
|
|
}
|