phis-feign/src/main/java/com/hz/his/dto/user/coupon/GoodsCanUseCouponDto.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/dto/user/coupon/GoodsCanUseCouponDto.java
New file @@ -0,0 +1,23 @@ package com.hz.his.dto.user.coupon; import com.hz.his.dto.PageDto; import lombok.Data; import java.math.BigDecimal; /** * @author wzh * 商品可用优惠券扩展 * */ @Data public class GoodsCanUseCouponDto extends PageDto { /**用户标识*/ private String userId; /**sku标识*/ private String skuId; /**商品类型*/ private String goodType; /**商品金额*/ private BigDecimal price; } phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java
@@ -6,6 +6,7 @@ import com.hz.his.dto.user.UserLevelDto; import com.hz.his.dto.user.card.UserCardDto; import com.hz.his.dto.user.card.UserCardUsedDto; import com.hz.his.dto.user.coupon.GoodsCanUseCouponDto; import com.hz.his.dto.user.coupon.OrderCanUseCouponDto; import com.hz.his.dto.user.coupon.UserCanUseCouponDto; import com.hz.his.dto.user.coupon.UserCouponDto; @@ -114,6 +115,12 @@ Result userCanUseCoupon(@RequestBody UserCanUseCouponDto userCanUseCouponDto); /** * 获取商品可用优惠券 * */ @PostMapping(value = "/goods/can/use/coupon") Result goodsCanUseCoupon(@RequestBody GoodsCanUseCouponDto goodsCanUseCouponDto); /** * 判断订单是否可用该优惠券 */ @PostMapping(value = "/order/can/use/coupon")