package couponservicelogic import ( "context" "app-cloudep-trade-service/gen_result/pb/trade" "app-cloudep-trade-service/internal/svc" "github.com/zeromicro/go-zero/core/logx" ) type QueryCouponLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewQueryCouponLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryCouponLogic { return &QueryCouponLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // QueryCoupon查詢優惠券 func (l *QueryCouponLogic) QueryCoupon(in *trade.CouponQueryReq) (*trade.CouponResp, error) { // todo: add your logic here and delete this line return &trade.CouponResp{}, nil }