提交 | 用户 | age
|
18b2dc
|
1 |
package com.hz.sms.feign; |
C |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
6de4e8
|
4 |
import com.hz.sms.dto.SmsGeneralSendDto; |
18b2dc
|
5 |
import com.hz.sms.dto.SmsSendDto; |
C |
6 |
import org.springframework.cloud.openfeign.FeignClient; |
|
7 |
import org.springframework.web.bind.annotation.PostMapping; |
|
8 |
import org.springframework.web.bind.annotation.RequestBody; |
6de4e8
|
9 |
import org.springframework.web.bind.annotation.ResponseBody; |
18b2dc
|
10 |
|
C |
11 |
/** |
|
12 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
13 |
*/ |
4ccb78
|
14 |
@FeignClient(name="phi-sms-user",path = "/sms",contextId = "sms-send") |
18b2dc
|
15 |
public interface FSmsSendService { |
C |
16 |
|
|
17 |
/** |
6de4e8
|
18 |
* 发送短信验证码 |
童 |
19 |
* @param smsGeneralSendDto |
|
20 |
* @return |
|
21 |
*/ |
15cbf8
|
22 |
@PostMapping(value = "/send/verification/code") |
6de4e8
|
23 |
Result sendVerificationCode(@RequestBody SmsGeneralSendDto smsGeneralSendDto); |
童 |
24 |
|
|
25 |
/** |
|
26 |
* 发送通知短信 |
|
27 |
* @param smsGeneralSendDto |
|
28 |
* @return |
|
29 |
*/ |
15cbf8
|
30 |
@PostMapping(value = "/send/inform") |
6de4e8
|
31 |
Result sendNoticeSms(@RequestBody SmsGeneralSendDto smsGeneralSendDto); |
童 |
32 |
|
|
33 |
/** |
|
34 |
* 发送营销短信 |
|
35 |
* @param smsGeneralSendDto |
|
36 |
* @return |
|
37 |
*/ |
15cbf8
|
38 |
@PostMapping(value = "/send/marketing") |
6de4e8
|
39 |
Result sendMarketingSend(@RequestBody SmsGeneralSendDto smsGeneralSendDto); |
18b2dc
|
40 |
|
C |
41 |
} |