refactor: 重构用户服务密码更新逻辑 fix: 删除不再使用的MarkdownDto类 style: 清理日志文件并优化日志配置 build: 更新pom.xml配置以支持UTF-8编码 docs: 更新application.properties配置文档
70 lines
1.3 KiB
Java
70 lines
1.3 KiB
Java
package com.qf.myafterprojecy.pojo.dto;
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
|
public class UserDto {
|
|
private Long id;
|
|
|
|
@NotBlank(message = "用户名不能为空")
|
|
private String username;
|
|
|
|
@NotBlank(message = "密码不能为空")
|
|
private String password;
|
|
|
|
@NotBlank(message = "邮箱不能为空")
|
|
private String email;
|
|
|
|
@NotBlank(message = "手机号不能为空")
|
|
private String phone;
|
|
|
|
private int role;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username;
|
|
}
|
|
|
|
public String getPassword() {
|
|
return password;
|
|
}
|
|
|
|
public void setPassword(String password) {
|
|
this.password = password;
|
|
}
|
|
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
|
|
public void setEmail(String email) {
|
|
this.email = email;
|
|
}
|
|
|
|
public String getPhone() {
|
|
return phone;
|
|
}
|
|
|
|
public void setPhone(String phone) {
|
|
this.phone = phone;
|
|
}
|
|
|
|
public int getRole() {
|
|
return role;
|
|
}
|
|
|
|
public void setRole(int role) {
|
|
this.role = role;
|
|
}
|
|
}
|