提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.user.vo.profile; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
import org.hibernate.validator.constraints.Length; |
|
6 |
|
|
7 |
import javax.validation.constraints.Email; |
|
8 |
import javax.validation.constraints.Size; |
|
9 |
|
|
10 |
|
|
11 |
@Schema(description = "管理后台 - 用户个人信息更新 Request VO") |
|
12 |
@Data |
|
13 |
public class UserProfileUpdateReqVO { |
|
14 |
|
|
15 |
@Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
16 |
@Size(max = 30, message = "用户昵称长度不能超过 30 个字符") |
|
17 |
private String nickname; |
|
18 |
|
|
19 |
@Schema(description = "用户邮箱", example = "iailab@iocoder.cn") |
|
20 |
@Email(message = "邮箱格式不正确") |
|
21 |
@Size(max = 50, message = "邮箱长度不能超过 50 个字符") |
|
22 |
private String email; |
|
23 |
|
|
24 |
@Schema(description = "手机号码", example = "15601691300") |
|
25 |
@Length(min = 11, max = 11, message = "手机号长度必须 11 位") |
|
26 |
private String mobile; |
|
27 |
|
|
28 |
@Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1") |
|
29 |
private Integer sex; |
|
30 |
|
|
31 |
} |