提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.api.sms.dto.code; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.validation.InEnum; |
|
4 |
import com.iailab.framework.common.validation.Mobile; |
|
5 |
import com.iailab.module.system.enums.sms.SmsSceneEnum; |
|
6 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
7 |
import lombok.Data; |
|
8 |
|
|
9 |
import javax.validation.constraints.NotEmpty; |
|
10 |
import javax.validation.constraints.NotNull; |
|
11 |
|
|
12 |
@Schema(description = "RPC 服务 - 短信验证码的发送 Request DTO") |
|
13 |
@Data |
|
14 |
public class SmsCodeSendReqDTO { |
|
15 |
|
|
16 |
@Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300") |
|
17 |
@Mobile |
|
18 |
@NotEmpty(message = "手机号不能为空") |
|
19 |
private String mobile; |
|
20 |
|
|
21 |
@Schema(description = "发送场景", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
22 |
@NotNull(message = "发送场景不能为空") |
|
23 |
@InEnum(SmsSceneEnum.class) |
|
24 |
|
|
25 |
private Integer scene; |
|
26 |
@Schema(description = "发送 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "10.20.30.40") |
|
27 |
@NotEmpty(message = "发送 IP 不能为空") |
|
28 |
private String createIp; |
|
29 |
|
|
30 |
} |