New file |
| | |
| | | package com.hz.his.dto.coupon; |
| | | |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 可用优惠券列表参数 |
| | | * @author fwq |
| | | */ |
| | | @Data |
| | | public class CouponListDto{ |
| | | /**用户标识*/ |
| | | private String userId; |
| | | /**用户优惠券码标识集合*/ |
| | | private List<String> couponNumberIdList; |
| | | /**商品信息*/ |
| | | private List<CouponCheckItemDto> goodsList; |
| | | /**优惠券平台*/ |
| | | private String platform; |
| | | } |
| | |
| | | */ |
| | | @PostMapping(value = "/coupon/unify/check") |
| | | Result unifyCheck(@RequestBody(required = false) CouponCheckDto couponCheckDto); |
| | | |
| | | /** |
| | | * 用户-可用优惠券列表-统一校验版本 |
| | | * @return canUseCouponList可用券列表 canUseCount可用券数量 |
| | | * */ |
| | | @PostMapping(value = "/coupon/user/unify/check/list") |
| | | Result userCouponCheckList(@RequestBody(required = false) CouponListDto couponListDto); |
| | | } |
| | |
| | | @Data |
| | | public class CouponCheckDt { |
| | | /**是否可用*/ |
| | | private boolean isCanUse; |
| | | private Boolean isCanUse; |
| | | /**不可用提示*/ |
| | | private String unavailableMsg; |
| | | } |