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