!465 update ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDictType.java.

Merge pull request !465 from XCSDN/N/A
feature/model
若依 3 years ago committed by Gitee
commit 46db06a22b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -1,5 +1,6 @@
package com.ruoyi.common.core.domain.entity; package com.ruoyi.common.core.domain.entity;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size; import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
@ -26,6 +27,9 @@ public class SysDictType extends BaseEntity
private String dictName; private String dictName;
/** 字典类型 */ /** 字典类型 */
@NotBlank(message = "字典类型不能为空")
@Pattern(regexp = "^[a-z][a-z0-9_]*$", message = "字典类型必须以字母开头,且字典类型只能由小写字母或加下划线还有数字组成")
@Size(min = 2, max = 200, message = "字典类型长度必须在2-200个字符之间")
@Excel(name = "字典类型") @Excel(name = "字典类型")
private String dictType; private String dictType;

Loading…
Cancel
Save