mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-11-04 08:06:12 +08:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master'
This commit is contained in:
		@ -6,6 +6,7 @@ import org.hibernate.validator.constraints.Length;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import javax.validation.constraints.Email;
 | 
					import javax.validation.constraints.Email;
 | 
				
			||||||
import javax.validation.constraints.NotBlank;
 | 
					import javax.validation.constraints.NotBlank;
 | 
				
			||||||
 | 
					import javax.validation.constraints.Pattern;
 | 
				
			||||||
import javax.validation.constraints.Size;
 | 
					import javax.validation.constraints.Size;
 | 
				
			||||||
import java.util.Set;
 | 
					import java.util.Set;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -18,6 +19,7 @@ public class UserBaseVO {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    @ApiModelProperty(value = "用户账号", required = true, example = "yudao")
 | 
					    @ApiModelProperty(value = "用户账号", required = true, example = "yudao")
 | 
				
			||||||
    @NotBlank(message = "用户账号不能为空")
 | 
					    @NotBlank(message = "用户账号不能为空")
 | 
				
			||||||
 | 
					    @Pattern(regexp = "^[a-zA-Z0-9]{4,30}$", message = "用户账号由 数字、字母 组成")
 | 
				
			||||||
    @Size(min = 4, max = 30, message = "用户账号长度为 4-30 个字符")
 | 
					    @Size(min = 4, max = 30, message = "用户账号长度为 4-30 个字符")
 | 
				
			||||||
    private String username;
 | 
					    private String username;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user