提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.api.mail; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.CommonResult; |
|
4 |
import com.iailab.module.system.api.mail.dto.MailSendSingleToUserReqDTO; |
|
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 |
|
|
11 |
import org.springframework.web.bind.annotation.RequestBody; |
|
12 |
|
|
13 |
import javax.validation.Valid; |
|
14 |
|
1ecdfb
|
15 |
@FeignClient(name = ApiConstants.NAME) |
e7c126
|
16 |
@Tag(name = "RPC 服务 - 邮件发送") |
H |
17 |
public interface MailSendApi { |
|
18 |
|
|
19 |
String PREFIX = ApiConstants.PREFIX + "/mail/send"; |
|
20 |
|
|
21 |
@PostMapping(PREFIX + "/send-single-admin") |
|
22 |
@Operation(summary = "发送单条邮件给 Admin 用户", description = "在 mail 为空时,使用 userId 加载对应 Admin 的邮箱") |
|
23 |
CommonResult<Long> sendSingleMailToAdmin(@Valid @RequestBody MailSendSingleToUserReqDTO reqDTO); |
|
24 |
|
|
25 |
@PostMapping(PREFIX + "/send-single-member") |
|
26 |
@Operation(summary = "发送单条邮件给 Member 用户", description = "在 mail 为空时,使用 userId 加载对应 Member 的邮箱") |
|
27 |
CommonResult<Long> sendSingleMailToMember(@Valid @RequestBody MailSendSingleToUserReqDTO reqDTO); |
|
28 |
|
|
29 |
} |