提交 | 用户 | 时间
|
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.NotEmpty; |
|
8 |
|
|
9 |
@Schema(description = "管理后台 - 用户个人中心更新密码 Request VO") |
|
10 |
@Data |
|
11 |
public class UserProfileUpdatePasswordReqVO { |
|
12 |
|
|
13 |
@Schema(description = "旧密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") |
|
14 |
@NotEmpty(message = "旧密码不能为空") |
|
15 |
@Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
|
16 |
private String oldPassword; |
|
17 |
|
|
18 |
@Schema(description = "新密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "654321") |
|
19 |
@NotEmpty(message = "新密码不能为空") |
|
20 |
@Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
|
21 |
private String newPassword; |
|
22 |
|
|
23 |
} |