package logic import ( "context" "lone-services/pkg/utils" payment "lone-services/rpc/payment/pb" "lone-services/services/payment/internal/svc" "github.com/zeromicro/go-zero/core/logx" ) type QueryLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewQueryLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryLogic { return &QueryLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } func (l *QueryLogic) Query(in *payment.QueryReq) (*payment.Response, error) { if in == nil || in.OrderSn == utils.StringEmpty { return failResponse(utils.ErrorParams), nil } return outResponse(utils.Fail, "query not implemented"), nil }