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