提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.auth.vo; |
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.AllArgsConstructor; |
|
8 |
import lombok.Builder; |
|
9 |
import lombok.Data; |
|
10 |
import lombok.NoArgsConstructor; |
|
11 |
|
|
12 |
import javax.validation.constraints.NotEmpty; |
|
13 |
import javax.validation.constraints.NotNull; |
|
14 |
|
|
15 |
@Schema(description = "管理后台 - 发送手机验证码 Request VO") |
|
16 |
@Data |
|
17 |
@NoArgsConstructor |
|
18 |
@AllArgsConstructor |
|
19 |
@Builder |
|
20 |
public class AuthSmsSendReqVO { |
|
21 |
|
|
22 |
@Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailabyuanma") |
|
23 |
@NotEmpty(message = "手机号不能为空") |
|
24 |
@Mobile |
|
25 |
private String mobile; |
|
26 |
|
|
27 |
@Schema(description = "短信场景", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
28 |
@NotNull(message = "发送场景不能为空") |
|
29 |
@InEnum(SmsSceneEnum.class) |
|
30 |
private Integer scene; |
|
31 |
|
|
32 |
} |