提交 | 用户 | 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 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 |
*/ |
6dde8c
|
12 |
@FeignClient(name="phi-sms-user",path = "/sms",contextId = "send-sms") |
18b2dc
|
13 |
public interface FSmsSendService { |
C |
14 |
|
|
15 |
/** |
6de4e8
|
16 |
* 发送短信验证码 |
童 |
17 |
* @param smsGeneralSendDto |
406295
|
18 |
* @return SendResultDto转化接收 |
6de4e8
|
19 |
*/ |
6dde8c
|
20 |
@PostMapping(value = "/send-general/item/send/verification/code") |
6de4e8
|
21 |
Result sendVerificationCode(@RequestBody SmsGeneralSendDto smsGeneralSendDto); |
童 |
22 |
|
|
23 |
/** |
|
24 |
* 发送通知短信 |
|
25 |
* @param smsGeneralSendDto |
|
26 |
* @return |
|
27 |
*/ |
6dde8c
|
28 |
@PostMapping(value = "/send-general/item/send/inform") |
6de4e8
|
29 |
Result sendNoticeSms(@RequestBody SmsGeneralSendDto smsGeneralSendDto); |
童 |
30 |
|
|
31 |
/** |
|
32 |
* 发送营销短信 |
|
33 |
* @param smsGeneralSendDto |
|
34 |
* @return |
|
35 |
*/ |
6dde8c
|
36 |
@PostMapping(value = "/send-general/item/send/marketing") |
6de4e8
|
37 |
Result sendMarketingSend(@RequestBody SmsGeneralSendDto smsGeneralSendDto); |
18b2dc
|
38 |
|
C |
39 |
} |