提交 | 用户 | 时间
|
f1162e
|
1 |
package com.iailab.module.data.ind.category.vo; |
潘 |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotBlank; |
|
7 |
import javax.validation.constraints.NotNull; |
|
8 |
import javax.validation.constraints.Size; |
|
9 |
|
|
10 |
/** |
|
11 |
* @author PanZhibao |
|
12 |
* @Description |
|
13 |
* @createTime 2024年09月10日 |
|
14 |
*/ |
|
15 |
@Schema(description = "数据平台 - 指标分类创建/修改 Request VO") |
|
16 |
@Data |
|
17 |
public class IndItemCategorySaveReqVO { |
|
18 |
|
|
19 |
@Schema(description = "ID", example = "1024") |
|
20 |
private String id; |
|
21 |
|
|
22 |
@Schema(description = "标签", requiredMode = Schema.RequiredMode.REQUIRED, example = "平台") |
|
23 |
@NotBlank(message = "标签") |
|
24 |
@Size(max = 50, message = "标签长度不能超过20个字符") |
|
25 |
private String label; |
|
26 |
|
|
27 |
@Schema(description = "父菜单 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
28 |
@NotNull(message = "父菜单 ID 不能为空") |
|
29 |
private String pid; |
|
30 |
|
|
31 |
@Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
32 |
@NotNull(message = "显示顺序不能为空") |
|
33 |
private Integer sort; |
|
34 |
} |