From ba5348215da5c5937e3be35032690e343129d882 Mon Sep 17 00:00:00 2001
From: chenjiahe <763432473@qq.com>
Date: 星期五, 19 八月 2022 20:05:05 +0800
Subject: [PATCH] 优化

---
 phi-sms-feign/src/main/java/com/hz/sms/feign/FSmsSendService.java |   31 +++++++------------------------
 1 files changed, 7 insertions(+), 24 deletions(-)

diff --git a/phi-sms-feign/src/main/java/com/hz/sms/feign/FSmsSendService.java b/phi-sms-feign/src/main/java/com/hz/sms/feign/FSmsSendService.java
index cd16e21..bd89b75 100644
--- a/phi-sms-feign/src/main/java/com/hz/sms/feign/FSmsSendService.java
+++ b/phi-sms-feign/src/main/java/com/hz/sms/feign/FSmsSendService.java
@@ -2,55 +2,38 @@
 
 import com.hx.resultTool.Result;
 import com.hz.sms.dto.SmsGeneralSendDto;
-import com.hz.sms.dto.SmsSendDto;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.ResponseBody;
 
 /**
  * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂�
  */
-@FeignClient(name="phi-sms-user",path = "/sms-u",contextId = "sms-send")
+@FeignClient(name="phi-sms-user",path = "/sms",contextId = "send-sms")
 public interface FSmsSendService {
-
-    /**
-     * 鍙戦�佺煭淇�
-     * @return Result
-     */
-    @PostMapping(value = "/sms/send")
-    Result sendSms(@RequestBody SmsSendDto smsSendDto);
-
-    /**
-     *
-     * @param smsSendDto
-     * @return
-     */
-    @PostMapping(value = "/sms/identicalSend")
-    Result sendIdenticalsend(@RequestBody SmsSendDto smsSendDto);
 
     /**
      * 鍙戦�佺煭淇¢獙璇佺爜
      * @param smsGeneralSendDto
-     * @return
+     * @return SendResultDto杞寲鎺ユ敹
      */
-    @PostMapping(value = "/verification/code")
+    @PostMapping(value = "/send-general/item/send/verification/code")
     Result sendVerificationCode(@RequestBody SmsGeneralSendDto smsGeneralSendDto);
 
     /**
      * 鍙戦�侀�氱煡鐭俊
      * @param smsGeneralSendDto
-     * @return
+     * @return SendResultDto杞寲鎺ユ敹
      */
-    @PostMapping(value = "/inform/sms")
+    @PostMapping(value = "/send-general/item/send/inform")
     Result sendNoticeSms(@RequestBody SmsGeneralSendDto smsGeneralSendDto);
 
     /**
      * 鍙戦�佽惀閿�鐭俊
      * @param smsGeneralSendDto
-     * @return
+     * @return SendResultDto杞寲鎺ユ敹
      */
-    @PostMapping(value = "/marketing/sms")
+    @PostMapping(value = "/send-general/item/send/marketing")
     Result sendMarketingSend(@RequestBody SmsGeneralSendDto smsGeneralSendDto);
 
 }

--
Gitblit v1.8.0