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

30 lines
659 B
Go

package logic
import (
"context"
"trasfer_middleware/cmd/rpc/internal/svc"
"trasfer_middleware/cmd/rpc/pb/transfer"
"github.com/zeromicro/go-zero/core/logx"
)
type NewMarketQueryLogics struct {
ctx context.Context
svcCtx *svc.ServiceContext
logx.Logger
}
func NewNewMarketQueryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *NewMarketQueryLogics {
return &NewMarketQueryLogics{
ctx: ctx,
svcCtx: svcCtx,
Logger: logx.WithContext(ctx),
}
}
func (l *NewMarketQueryLogics) NewMarketQuery(in *transfer.NewMarketQueryReq) (*transfer.NewMarketOrderRes, error) {
res, err := l.svcCtx.NewMarket.Query(l.ctx, in)
return res, err
}