From 1bfb1b893a24ecfc3a0c00a8285d74d2ce9c5a4b Mon Sep 17 00:00:00 2001
From: fhx <308050795@qq.com>
Date: 星期四, 09 五月 2024 09:57:55 +0800
Subject: [PATCH] 1.新增常量和复购活动接口

---
 phis-feign/src/main/java/com/hz/his/constant/ActivityPreferentialConstants.java  |   33 +++++++++++++++++++++++++++++++++
 phis-feign/src/main/java/com/hz/his/feign/service/phis/SRepoActivityService.java |    7 +++++++
 2 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/phis-feign/src/main/java/com/hz/his/constant/ActivityPreferentialConstants.java b/phis-feign/src/main/java/com/hz/his/constant/ActivityPreferentialConstants.java
new file mode 100644
index 0000000..e084f5e
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/constant/ActivityPreferentialConstants.java
@@ -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 "鏈煡";
+        }
+    }
+}
diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SRepoActivityService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SRepoActivityService.java
index bdd1b76..c2f2e0e 100644
--- a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SRepoActivityService.java
+++ b/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);
+
+
 }

--
Gitblit v1.8.0