feat: 添加UTF-8编码支持并优化DTO验证

refactor: 重构用户服务密码更新逻辑
fix: 删除不再使用的MarkdownDto类
style: 清理日志文件并优化日志配置
build: 更新pom.xml配置以支持UTF-8编码
docs: 更新application.properties配置文档
This commit is contained in:
qingfeng1121
2025-10-30 19:00:47 +08:00
parent 5803080352
commit f6d1d719a9
18 changed files with 2778 additions and 729 deletions

View File

@@ -3,6 +3,8 @@ package com.qf.myafterprojecy.pojo.dto;
import javax.validation.constraints.NotBlank;
public class UserDto {
private Long id;
@NotBlank(message = "用户名不能为空")
private String username;
@@ -15,9 +17,16 @@ public class UserDto {
@NotBlank(message = "手机号不能为空")
private String phone;
@NotBlank(message = "角色不能为空")
private int role;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getUsername() {
return username;
}
@@ -57,5 +66,4 @@ public class UserDto {
public void setRole(int role) {
this.role = role;
}
}