transfer_middleware/cmd/rpc/internal/logic/zltxRechargeInfoLogic.go

33 lines
789 B
Go
Raw Permalink Normal View History

2024-06-07 11:11:04 +08:00
package logic
import (
"context"
2024-06-12 13:46:14 +08:00
"trasfer_middleware/until/common"
2024-06-07 11:11:04 +08:00
"trasfer_middleware/cmd/rpc/internal/svc"
"trasfer_middleware/cmd/rpc/pb/transfer"
"github.com/zeromicro/go-zero/core/logx"
)
type ZltxRechargeInfoLogic struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewZltxRechargeInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ZltxRechargeInfoLogic {
return &ZltxRechargeInfoLogic{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
func (l *ZltxRechargeInfoLogic) ZltxRechargeInfo(in *transfer.DefaultReq) (*transfer.ZltxRechargeInfoRes, error) {
2024-06-18 16:34:14 +08:00
res, err := l.svcCtx.ZltxOrder.SetData(l.ctx, common.StructToMap(in), &l.svcCtx.Config.Mq).RechargeInfo()
2024-06-07 11:11:04 +08:00
//_ = copier.Copy(result, &res)
return res, err
}