From 4b718360c3c2756a5759cf326e5c03d3a7096d37 Mon Sep 17 00:00:00 2001 From: wzh <zhuhaow@phiskin.com> Date: 星期三, 03 八月 2022 17:19:38 +0800 Subject: [PATCH] 修改商品可用优惠券 --- phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java | 7 +++++++ phis-feign/src/main/java/com/hz/his/dto/user/coupon/GoodsCanUseCouponDto.java | 23 +++++++++++++++++++++++ 2 files changed, 30 insertions(+), 0 deletions(-) diff --git a/phis-feign/src/main/java/com/hz/his/dto/user/coupon/GoodsCanUseCouponDto.java b/phis-feign/src/main/java/com/hz/his/dto/user/coupon/GoodsCanUseCouponDto.java new file mode 100644 index 0000000..255cbb5 --- /dev/null +++ b/phis-feign/src/main/java/com/hz/his/dto/user/coupon/GoodsCanUseCouponDto.java @@ -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; +} diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java index cddc55b..c87eb6f 100644 --- a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SUserService.java +++ b/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") -- Gitblit v1.8.0