提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.dept.vo.dept; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.enums.CommonStatusEnum; |
|
4 |
import com.iailab.framework.common.validation.InEnum; |
|
5 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
6 |
import lombok.Data; |
|
7 |
|
|
8 |
import javax.validation.constraints.Email; |
|
9 |
import javax.validation.constraints.NotBlank; |
|
10 |
import javax.validation.constraints.NotNull; |
|
11 |
import javax.validation.constraints.Size; |
|
12 |
|
|
13 |
@Schema(description = "管理后台 - 部门创建/修改 Request VO") |
|
14 |
@Data |
|
15 |
public class DeptSaveReqVO { |
|
16 |
|
|
17 |
@Schema(description = "部门编号", example = "1024") |
|
18 |
private Long id; |
|
19 |
|
|
20 |
@Schema(description = "部门名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "平台") |
|
21 |
@NotBlank(message = "部门名称不能为空") |
|
22 |
@Size(max = 30, message = "部门名称长度不能超过 30 个字符") |
|
23 |
private String name; |
|
24 |
|
|
25 |
@Schema(description = "父部门 ID", example = "1024") |
|
26 |
private Long parentId; |
|
27 |
|
|
28 |
@Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
29 |
@NotNull(message = "显示顺序不能为空") |
|
30 |
private Integer sort; |
|
31 |
|
|
32 |
@Schema(description = "负责人的用户编号", example = "2048") |
|
33 |
private Long leaderUserId; |
|
34 |
|
|
35 |
@Schema(description = "联系电话", example = "15601691000") |
|
36 |
@Size(max = 11, message = "联系电话长度不能超过11个字符") |
|
37 |
private String phone; |
|
38 |
|
|
39 |
@Schema(description = "邮箱", example = "iailab@iocoder.cn") |
|
40 |
@Email(message = "邮箱格式不正确") |
|
41 |
@Size(max = 50, message = "邮箱长度不能超过 50 个字符") |
|
42 |
private String email; |
|
43 |
|
|
44 |
@Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
45 |
@NotNull(message = "状态不能为空") |
|
46 |
@InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
|
47 |
private Integer status; |
|
48 |
|
|
49 |
} |