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 ListCouponsLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewListCouponsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListCouponsLogic { return &ListCouponsLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // ListCoupons列出所有優惠券 func (l *ListCouponsLogic) ListCoupons(in *trade.CouponListReq) (*trade.CouponListResp, error) { // todo: add your logic here and delete this line return &trade.CouponListResp{}, nil }