refactor(system): 优化用户注册校验提示信息和错误码描述

- 将用户账号的校验提示信息从"用户账号由 数字、字母 组成"修改为"用户名称由 数字、字母 组成"
-将库区名称重复的错误码描述从"库区名称重复"修改为"物料区域名称重复"
This commit is contained in:
aikai 2025-03-27 14:48:25 +08:00
parent e5524a54d8
commit c6569da732
2 changed files with 3 additions and 3 deletions

View File

@ -174,7 +174,7 @@ public interface ErrorCodeConstants {
// ========== 库区 1-002-031-000 ==========
ErrorCode HOUSE_AREA_NOT_EXISTS = new ErrorCode(1-002-031-001, "库区不存在");
ErrorCode DUPLICATE_RESERVOIR_NAME = new ErrorCode(1-002-031-002, "库区名称重复");
ErrorCode DUPLICATE_RESERVOIR_NAME = new ErrorCode(1-002-031-002, "物料区域名称重复");
// ========== 库位 1-002-032-000 ==========
ErrorCode HOUSE_LOCATION_NOT_EXISTS = new ErrorCode(1-002-032-001, "库位不存在");

View File

@ -16,7 +16,7 @@ public class AuthRegisterReqVO {
@Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao")
@NotBlank(message = "用户账号不能为空")
@Pattern(regexp = "^[a-zA-Z0-9]{4,30}$", message = "用户账号由 数字、字母 组成")
@Pattern(regexp = "^[a-zA-Z0-9]{4,30}$", message = "用户名称由 数字、字母 组成")
@Size(min = 4, max = 30, message = "用户账号长度为 4-30 个字符")
private String username;
@ -37,4 +37,4 @@ public class AuthRegisterReqVO {
@NotEmpty(message = "验证码不能为空", groups = AuthLoginReqVO.CodeEnableGroup.class)
private String captchaVerification;
}
}