feat: 积分质押功能
This commit is contained in:
27
internal/logic/admin/game_action_logic.go
Normal file
27
internal/logic/admin/game_action_logic.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package admin
|
||||
|
||||
import (
|
||||
"context"
|
||||
"nova_task/internal/svc"
|
||||
"nova_task/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/core/logx"
|
||||
)
|
||||
|
||||
type GameActionLogic struct {
|
||||
logx.Logger
|
||||
ctx context.Context
|
||||
svcCtx *svc.ServiceContext
|
||||
}
|
||||
|
||||
func NewGameActionLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GameActionLogic {
|
||||
return &GameActionLogic{
|
||||
Logger: logx.WithContext(ctx),
|
||||
ctx: ctx,
|
||||
svcCtx: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
func (l *GameActionLogic) GameAction(req *types.GameActionReq) (any, error) {
|
||||
return l.svcCtx.GameAction(l.ctx, req.RoleId, req.Action, nil)
|
||||
}
|
||||
Reference in New Issue
Block a user