微调
This commit is contained in:
@@ -10,7 +10,7 @@ public interface DetectionValidMessage {
|
|||||||
String ID_NOT_BLANK = "id不能为空,请检查id参数";
|
String ID_NOT_BLANK = "id不能为空,请检查id参数";
|
||||||
String ID_FORMAT_ERROR = "id格式错误,请检查id参数";
|
String ID_FORMAT_ERROR = "id格式错误,请检查id参数";
|
||||||
String NAME_NOT_BLANK = "名称不能为空";
|
String NAME_NOT_BLANK = "名称不能为空";
|
||||||
String ICD_NAME_FORMAT_ERROR = "名称格式错误,只能包含字母、数字、中文、下划线、中划线、点号、空格,长度为1-32个字符";
|
String ICD_NAME_FORMAT_ERROR = "名称格式错误,只能包含字母、数字、中文、下划线、中划线、点号、空格、英文括号,长度为1-32个字符";
|
||||||
String ICD_PATH_NOT_BLANK = "icd存储路径不能为空";
|
String ICD_PATH_NOT_BLANK = "icd存储路径不能为空";
|
||||||
String ICD_PATH_FORMAT_ERROR = "ICD路径格式错误,只能包含字母、数字、下划线、中划线、空格,长度为1-50个字符";
|
String ICD_PATH_FORMAT_ERROR = "ICD路径格式错误,只能包含字母、数字、下划线、中划线、空格,长度为1-50个字符";
|
||||||
String ICD_NOT_BLANK = "ICD不能为空";
|
String ICD_NOT_BLANK = "ICD不能为空";
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ public class DictTreeParam {
|
|||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "名称")
|
@ApiModelProperty(value = "名称")
|
||||||
@NotBlank(message = SystemValidMessage.NAME_NOT_BLANK)
|
@NotBlank(message = SystemValidMessage.NAME_NOT_BLANK)
|
||||||
|
@Pattern(regexp = PatternRegex.DICT_NAME_REGEX, message = SystemValidMessage.DICT_TYPE_NAME_FORMAT_ERROR)
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -35,6 +36,7 @@ public class DictTreeParam {
|
|||||||
*/
|
*/
|
||||||
@TableField(value = "编码")
|
@TableField(value = "编码")
|
||||||
@NotBlank(message = SystemValidMessage.CODE_NOT_BLANK)
|
@NotBlank(message = SystemValidMessage.CODE_NOT_BLANK)
|
||||||
|
@Pattern(regexp = PatternRegex.DICT_CODE_REGEX, message = SystemValidMessage.DICT_TYPE_CODE_FORMAT_ERROR)
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user