字典类型必须以字母开头,且只能为(小写字母,数字,下滑线)

pull/382/head
RuoYi 3 years ago
parent b04c6833a3
commit 7610e138dc

@ -56,6 +56,7 @@ public class SysDictType extends BaseEntity
@NotBlank(message = "字典类型不能为空")
@Size(min = 0, max = 100, message = "字典类型类型长度不能超过100个字符")
@Pattern(regexp = "^[a-z][a-z0-9_]*$", message = "字典类型必须以字母开头,且只能为(小写字母,数字,下滑线)")
public String getDictType()
{
return dictType;

Loading…
Cancel
Save