提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.api.sms; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.CommonResult; |
|
4 |
import com.iailab.module.system.api.sms.dto.send.SmsSendSingleToUserReqDTO; |
|
5 |
import com.iailab.module.system.enums.ApiConstants; |
|
6 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
7 |
import io.swagger.v3.oas.annotations.Operation; |
|
8 |
import org.springframework.cloud.openfeign.FeignClient; |
|
9 |
import org.springframework.web.bind.annotation.PostMapping; |
|
10 |
import org.springframework.web.bind.annotation.RequestBody; |
|
11 |
|
|
12 |
import javax.validation.Valid; |
|
13 |
|
1ecdfb
|
14 |
@FeignClient(name = ApiConstants.NAME) |
e7c126
|
15 |
@Tag(name = "RPC 服务 - 短信发送") |
H |
16 |
public interface SmsSendApi { |
|
17 |
|
|
18 |
String PREFIX = ApiConstants.PREFIX + "/sms/send"; |
|
19 |
|
|
20 |
@PostMapping(PREFIX + "/send-single-admin") |
|
21 |
@Operation(summary = "发送单条短信给 Admin 用户", description = "在 mobile 为空时,使用 userId 加载对应 Admin 的手机号") |
|
22 |
CommonResult<Long> sendSingleSmsToAdmin(@Valid @RequestBody SmsSendSingleToUserReqDTO reqDTO); |
|
23 |
|
|
24 |
@PostMapping(PREFIX + "/send-single-member") |
|
25 |
@Operation(summary = "发送单条短信给 Member 用户", description = "在 mobile 为空时,使用 userId 加载对应 Member 的手机号") |
|
26 |
CommonResult<Long> sendSingleSmsToMember(@Valid @RequestBody SmsSendSingleToUserReqDTO reqDTO); |
|
27 |
|
|
28 |
} |