From c238ffd7829ec96f612d8732c2fa9c6cd8e8a09f Mon Sep 17 00:00:00 2001 From: ChenJiaHe <763432473@qq.com> Date: 星期六, 08 七月 2023 00:12:30 +0800 Subject: [PATCH] 公众号发送信息旧版方法信息 --- phi-sms-feign/src/main/java/com/hz/sms/feign/FWXSendService.java | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/phi-sms-feign/src/main/java/com/hz/sms/feign/FWXSendService.java b/phi-sms-feign/src/main/java/com/hz/sms/feign/FWXSendService.java index eb1f87a..b401899 100644 --- a/phi-sms-feign/src/main/java/com/hz/sms/feign/FWXSendService.java +++ b/phi-sms-feign/src/main/java/com/hz/sms/feign/FWXSendService.java @@ -1,41 +1,41 @@ package com.hz.sms.feign; import com.hx.resultTool.Result; -import com.hz.sms.dto.ResponsesSendMessage; -import com.hz.sms.dto.SmsGeneralSendDto; -import com.hz.sms.dto.TemplateMessageDto; + +import com.hz.sms.dto.WeCatMessageDto; +import com.hz.sms.dto.MpMessageDto; 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.RequestMapping; /** * 杩欓噷杩欎釜name 闇�瑕佸~鍐� 璇锋眰鐨勬湇鍔℃彁渚涜�呯殑娉ㄥ唽鍒皀acos Server涓婇潰鐨勬湇鍔″悕锛宲ath 鏄姹傛帴鍙e墠缂� */ -@FeignClient(name="phi-sms-user",path = "/sms",contextId = "sys-send") +@FeignClient(name="phi-sms-user",path = "/sms",contextId = "send-wx") public interface FWXSendService { /** - * 鍙戦�佷紒涓氬井淇″簲鐢ㄦ秷鎭� - * @param templateMessageDto - * @return - */ - @PostMapping(value = "/application/message") - Result sendNoticeSms(@RequestBody TemplateMessageDto templateMessageDto); - - /** * 寰俊灏忕▼搴忎笅鍙戠粺涓�娑堟伅 锛堝簾闄わ級 - * @param responsesSendMessage - * @return + * @param weCatMessageDto + * @return SendResultDto杞寲鎺ユ敹 */ - @PostMapping(value = "/applet/message") - Result sendAppletMessage(@RequestBody ResponsesSendMessage responsesSendMessage); + @PostMapping(value = "/wx/send/applet/message") + Result sendAppletMessage(@RequestBody WeCatMessageDto weCatMessageDto); /** * 寰俊鍏紬鍙蜂笅鍙戠粺涓�娑堟伅 - * @param responsesSendMessage - * @return + * @param weCatMessageDto + * @return SendResultDto杞寲鎺ユ敹 */ - @PostMapping(value = "/public/message") - Result sendPublicMessage(@RequestBody ResponsesSendMessage responsesSendMessage); + @PostMapping(value = "/wx/send/wechat/message") + Result sendWeChatMessage(@RequestBody WeCatMessageDto weCatMessageDto); + /** + * 寰俊灏忕▼搴忓彂閫佽闃呮秷鎭� + * @param mpMessageDto + * @return SendResultDto杞寲鎺ユ敹 + */ + @RequestMapping(value = "/wx/send/mp/subscribe/message") + Result sendMpMessage(@RequestBody MpMessageDto mpMessageDto); } -- Gitblit v1.8.0