提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.dept.vo.post; |
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.NotBlank; |
|
9 |
import javax.validation.constraints.NotNull; |
|
10 |
import javax.validation.constraints.Size; |
|
11 |
|
|
12 |
@Schema(description = "管理后台 - 岗位创建/修改 Request VO") |
|
13 |
@Data |
|
14 |
public class PostSaveReqVO { |
|
15 |
|
|
16 |
@Schema(description = "岗位编号", example = "1024") |
|
17 |
private Long id; |
|
18 |
|
|
19 |
@Schema(description = "岗位名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "小土豆") |
|
20 |
@NotBlank(message = "岗位名称不能为空") |
|
21 |
@Size(max = 50, message = "岗位名称长度不能超过 50 个字符") |
|
22 |
private String name; |
|
23 |
|
|
24 |
@Schema(description = "岗位编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
25 |
@NotBlank(message = "岗位编码不能为空") |
|
26 |
@Size(max = 64, message = "岗位编码长度不能超过64个字符") |
|
27 |
private String code; |
|
28 |
|
|
29 |
@Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
30 |
@NotNull(message = "显示顺序不能为空") |
|
31 |
private Integer sort; |
|
32 |
|
|
33 |
@Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
34 |
@InEnum(CommonStatusEnum.class) |
|
35 |
private Integer status; |
|
36 |
|
|
37 |
@Schema(description = "备注", example = "快乐的备注") |
|
38 |
private String remark; |
|
39 |
|
|
40 |
} |