From 1fcdf61287fb289bffc6f545fd8487bdff4736be Mon Sep 17 00:00:00 2001 From: 童刚 <pBP8jclM@8yTJ@4h> Date: 星期一, 15 八月 2022 19:45:25 +0800 Subject: [PATCH] 1.抽出短信业务方法 --- phi-sms-feign/src/main/java/com/hz/sms/feign/FSmsSendService.java | 28 ++++++++++++++++++++++------ 1 files changed, 22 insertions(+), 6 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..88b0f8e 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,7 +1,7 @@ package com.hz.sms.feign; import com.hx.resultTool.Result; -import com.hz.sms.dto.SmsSendDto; +import com.hz.sms.dto.SmsGeneralSendDto; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -9,15 +9,31 @@ /** * 杩欓噷杩欎釜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 + * 鍙戦�佺煭淇¢獙璇佺爜 + * @param smsGeneralSendDto + * @return */ - @PostMapping(value = "/sms/send") - Result sendSms(@RequestBody SmsSendDto smsSendDto); + @PostMapping(value = "/send-general/item/send/verification/code") + Result sendVerificationCode(@RequestBody SmsGeneralSendDto smsGeneralSendDto); + /** + * 鍙戦�侀�氱煡鐭俊 + * @param smsGeneralSendDto + * @return + */ + @PostMapping(value = "/send-general/item/send/inform") + Result sendNoticeSms(@RequestBody SmsGeneralSendDto smsGeneralSendDto); + + /** + * 鍙戦�佽惀閿�鐭俊 + * @param smsGeneralSendDto + * @return + */ + @PostMapping(value = "/send-general/item/send/marketing") + Result sendMarketingSend(@RequestBody SmsGeneralSendDto smsGeneralSendDto); } -- Gitblit v1.8.0