Skip to content

Commit

Permalink
fix: 移除企业名称错误正则
Browse files Browse the repository at this point in the history
Closes #I9T57F
  • Loading branch information
Charles7c committed May 29, 2024
1 parent 6d0060b commit 0285874
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import top.continew.admin.common.constant.RegexConstants;
import top.continew.admin.common.enums.DisEnableStatusEnum;
import top.continew.starter.extension.crud.model.req.BaseReq;

Expand Down Expand Up @@ -54,7 +52,7 @@ public class DeptReq extends BaseReq {
*/
@Schema(description = "名称", example = "测试部")
@NotBlank(message = "名称不能为空")
@Pattern(regexp = RegexConstants.GENERAL_NAME, message = "名称长度为 2-30 个字符,支持中文、字母、数字、下划线,短横线")
@Length(max = 30, message = "名称长度不能超过 {max} 个字符")
private String name;

/**
Expand Down

0 comments on commit 0285874

Please sign in to comment.