提交 | 用户 | 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 |
*/ |
|
14 |
@FeignClient(name="phi-sms-rocketmq", path = "/sms",contextId = "sms-wx") |
|
15 |
public interface FWxImmediatelyService { |
|
16 |
|
|
17 |
/** |
|
18 |
* 微信公众号下发统一消息 |
|
19 |
* @param responsesSendMessage |
|
20 |
* @return |
|
21 |
*/ |
|
22 |
@PostMapping(value = "/immediately/send/wechat/message") |
|
23 |
Result sendWeChatMessage(@RequestBody ResponsesSendMessage responsesSendMessage); |
|
24 |
|
|
25 |
/** |
|
26 |
* 微信小程序发送订阅消息 |
|
27 |
* @param responsesWxSendMpDto |
|
28 |
* @return |
|
29 |
*/ |
|
30 |
@RequestMapping(value = "/immediately/send/mp/message") |
|
31 |
Result sendMpMessage(@RequestBody ResponsesWxSendMpDto responsesWxSendMpDto); |
|
32 |
|
|
33 |
} |