From 6de4e86086a1c7ab346e5f57e3ad10e2cf79c544 Mon Sep 17 00:00:00 2001 From: 童刚 <pBP8jclM@8yTJ@4h> Date: 星期二, 02 八月 2022 18:05:56 +0800 Subject: [PATCH] 1.修改短信发送方式 2.增加Feign调用服务 --- phi-sms-feign/src/main/java/com/hz/sms/feign/FSmsSendService.java | 33 +++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 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 897ee71..cd16e21 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 @@ -1,10 +1,12 @@ package com.hz.sms.feign; 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墠缂� @@ -19,5 +21,36 @@ @PostMapping(value = "/sms/send") Result sendSms(@RequestBody SmsSendDto smsSendDto); + /** + * + * @param smsSendDto + * @return + */ + @PostMapping(value = "/sms/identicalSend") + Result sendIdenticalsend(@RequestBody SmsSendDto smsSendDto); + + /** + * 鍙戦�佺煭淇¢獙璇佺爜 + * @param smsGeneralSendDto + * @return + */ + @PostMapping(value = "/verification/code") + Result sendVerificationCode(@RequestBody SmsGeneralSendDto smsGeneralSendDto); + + /** + * 鍙戦�侀�氱煡鐭俊 + * @param smsGeneralSendDto + * @return + */ + @PostMapping(value = "/inform/sms") + Result sendNoticeSms(@RequestBody SmsGeneralSendDto smsGeneralSendDto); + + /** + * 鍙戦�佽惀閿�鐭俊 + * @param smsGeneralSendDto + * @return + */ + @PostMapping(value = "/marketing/sms") + Result sendMarketingSend(@RequestBody SmsGeneralSendDto smsGeneralSendDto); } -- Gitblit v1.8.0