童刚
2022-08-15 1fcdf61287fb289bffc6f545fd8487bdff4736be
提交 | 用户 | age
6dde8c 1 package com.hz.sms.platform;
2
3 import com.hx.resultTool.Result;
4 import com.hz.sms.dto.ResponsesSendMessage;
5 import com.hz.sms.dto.ResponsesWxSendMpDto;
6 import org.springframework.cloud.openfeign.FeignClient;
7 import org.springframework.web.bind.annotation.PostMapping;
8 import org.springframework.web.bind.annotation.RequestBody;
9 import org.springframework.web.bind.annotation.RequestMapping;
10
11 /**
12  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
13  */
15ab19 14 @FeignClient(name="phi-sms-rocketmq", path = "/sms-mq",contextId = "sms-wx")
6dde8c 15 public interface FWxImmediatelyService {
16
17     /**
18      * 微信公众号下发统一消息
19      * @param responsesSendMessage
20      * @return
21      */
1fcdf6 22     @PostMapping(value = "/wx/send/wechat/issue/message")
6dde8c 23     Result sendWeChatMessage(@RequestBody ResponsesSendMessage responsesSendMessage);
24
25     /**
26      *  微信小程序发送订阅消息
27      * @param responsesWxSendMpDto
28      * @return
29      */
1fcdf6 30     @RequestMapping(value = "/wx/send/mp/message")
6dde8c 31     Result sendMpMessage(@RequestBody ResponsesWxSendMpDto responsesWxSendMpDto);
32
33 }