phis-feign/src/main/java/com/hz/his/constant/ActivityPreferentialConstants.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
phis-feign/src/main/java/com/hz/his/feign/service/phis/SRepoActivityService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
phis-feign/src/main/java/com/hz/his/constant/ActivityPreferentialConstants.java
New file @@ -0,0 +1,33 @@ package com.hz.his.constant; /** * 活动优惠类型 * @USER: fhx * @DATE: 2024/5/8 **/ public class ActivityPreferentialConstants { /** 优惠类型 - 降价 */ public static final String TYPE_PRICE_REDUCTION = "price_reduction"; /** 优惠类型 - 赠送优惠券 */ public static final String TYPE_GIFT_COUPON = "gift_coupon"; /** 优惠类型 - 赠送积分 */ public static final String TYPE_GIFT_INTEGRAL = "gift_integral"; /** 优惠类型 - 折扣 */ public static final String TYPE_DISCOUNT = "discount"; /** 优惠类型 - 赠送项目 */ public static final String TYPE_GIFT_PROJECT = "gift_project"; /** 转换优化类型中文 */ public static String changeTypeCn(String type){ switch (type){ case TYPE_PRICE_REDUCTION: return "降价"; case TYPE_GIFT_COUPON: return "赠送优惠券"; case TYPE_GIFT_INTEGRAL: return "赠送积分"; case TYPE_DISCOUNT: return "打折"; case TYPE_GIFT_PROJECT: return "赠送项目"; default: return "未知"; } } } phis-feign/src/main/java/com/hz/his/feign/service/phis/SRepoActivityService.java
@@ -2,6 +2,7 @@ import com.hx.resultTool.Result; import com.hz.his.dto.PageDto; import com.hz.his.dto.activity.RepoActivityDto; import com.hz.his.dto.coupon.CouponDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; @@ -32,4 +33,10 @@ /** 优惠券列表 */ @PostMapping(value = "/repo/activity/coupon/list") Result couponList(@RequestBody CouponDto couponDto); /** 检查查询用户是否符合参与复购活动 */ @PostMapping(value = "/repo/activity/check/user/can/join") Result checkUserCanJoin(@RequestBody RepoActivityDto repoActivityDto); }