mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 10:57:13 +08:00 
			
		
		
		
	fix: 完善创建用户参数校验
This commit is contained in:
		| @@ -19,6 +19,7 @@ package top.charles7c.cnadmin.system.model.request; | ||||
| import java.util.List; | ||||
|  | ||||
| import javax.validation.constraints.NotBlank; | ||||
| import javax.validation.constraints.NotEmpty; | ||||
| import javax.validation.constraints.NotNull; | ||||
| import javax.validation.constraints.Pattern; | ||||
|  | ||||
| @@ -86,12 +87,14 @@ public class UserRequest extends BaseRequest { | ||||
|      * 所属部门 | ||||
|      */ | ||||
|     @Schema(description = "所属部门") | ||||
|     @NotNull(message = "所属部门不能为空") | ||||
|     private Long deptId; | ||||
|  | ||||
|     /** | ||||
|      * 所属角色 | ||||
|      */ | ||||
|     @Schema(description = "所属角色") | ||||
|     @NotEmpty(message = "所属角色不能为空") | ||||
|     private List<Long> roleIds; | ||||
|  | ||||
|     /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user