提交 | 用户 | age
|
a4c260
|
1 |
package com.hz.crm.feign; |
9cada0
|
2 |
|
C |
3 |
import com.hx.resultTool.Result; |
a4c260
|
4 |
import com.hz.crm.dto.SmsSendDto; |
9cada0
|
5 |
import org.springframework.cloud.openfeign.FeignClient; |
C |
6 |
import org.springframework.web.bind.annotation.PostMapping; |
|
7 |
import org.springframework.web.bind.annotation.RequestBody; |
|
8 |
|
|
9 |
/** |
|
10 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
11 |
*/ |
|
12 |
@FeignClient(name="crm-platform-service",path = "/crmp",contextId = "sms-send") |
|
13 |
public interface FSmsSendService { |
|
14 |
|
|
15 |
/** |
|
16 |
* 发送短信 |
|
17 |
* @return Result |
|
18 |
*/ |
|
19 |
@PostMapping(value = "/sms/send") |
|
20 |
Result sendSms(@RequestBody SmsSendDto smsSendDto); |
|
21 |
|
|
22 |
|
|
23 |
} |