提交 | 用户 | age
|
6dde8c
|
1 |
package com.hz.sms.platform; |
童 |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.sms.dto.TemplateMessageDto; |
5ed8aa
|
5 |
import com.hz.sms.dto.mq.CorpMessageMqDto; |
6dde8c
|
6 |
import org.springframework.cloud.openfeign.FeignClient; |
童 |
7 |
import org.springframework.web.bind.annotation.PostMapping; |
|
8 |
import org.springframework.web.bind.annotation.RequestBody; |
|
9 |
|
|
10 |
/** |
|
11 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
12 |
*/ |
15ab19
|
13 |
@FeignClient(name="phi-sms-rocketmq", path = "/sms-mq",contextId = "sms-corpwx") |
6dde8c
|
14 |
public interface FCorpWxImmediatelyService { |
童 |
15 |
|
|
16 |
/** |
|
17 |
* 发送企业微信应用消息 |
5ed8aa
|
18 |
* @param corpMessageMqDto 消息体 |
6dde8c
|
19 |
* @return |
童 |
20 |
*/ |
1fcdf6
|
21 |
@PostMapping(value = "/corp-wx/send/application/message") |
5ed8aa
|
22 |
Result sendNoticeSms(@RequestBody CorpMessageMqDto corpMessageMqDto); |
6dde8c
|
23 |
|
童 |
24 |
} |