update ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictType.java.
字典类型需要控制一下,如果不小心写入了空格之类的东西,会导致VUE前端报错
This commit is contained in:
parent
d910888181
commit
39dd019c18
@ -26,6 +26,9 @@ public class SysDictType extends BaseEntity
|
||||
private String dictName;
|
||||
|
||||
/** 字典类型 */
|
||||
@NotBlank(message = "字典类型不能为空")
|
||||
@Pattern(regexp = "^[a-z][a-z0-9_]*$", message = "字典类型必须以字母开头,且字典类型只能由小写字母或加下划线还有数字组成")
|
||||
@Size(min = 2, max = 200, message = "字典类型长度必须在2-200个字符之间")
|
||||
@Excel(name = "字典类型")
|
||||
private String dictType;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user