提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.controller.admin.codegen.vo.column; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotNull; |
|
7 |
|
|
8 |
@Schema(description = "管理后台 - 代码生成字段定义创建/修改 Request VO") |
|
9 |
@Data |
|
10 |
public class CodegenColumnSaveReqVO { |
|
11 |
|
|
12 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
13 |
private Long id; |
|
14 |
|
|
15 |
@Schema(description = "表编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
16 |
@NotNull(message = "表编号不能为空") |
|
17 |
private Long tableId; |
|
18 |
|
|
19 |
@Schema(description = "字段名", requiredMode = Schema.RequiredMode.REQUIRED, example = "user_age") |
|
20 |
@NotNull(message = "字段名不能为空") |
|
21 |
private String columnName; |
|
22 |
|
|
23 |
@Schema(description = "字段类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "int(11)") |
|
24 |
@NotNull(message = "字段类型不能为空") |
|
25 |
private String dataType; |
|
26 |
|
|
27 |
@Schema(description = "字段描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "年龄") |
|
28 |
@NotNull(message = "字段描述不能为空") |
|
29 |
private String columnComment; |
|
30 |
|
|
31 |
@Schema(description = "是否允许为空", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
32 |
@NotNull(message = "是否允许为空不能为空") |
|
33 |
private Boolean nullable; |
|
34 |
|
|
35 |
@Schema(description = "是否主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "false") |
|
36 |
@NotNull(message = "是否主键不能为空") |
|
37 |
private Boolean primaryKey; |
|
38 |
|
|
39 |
@Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "10") |
|
40 |
@NotNull(message = "排序不能为空") |
|
41 |
private Integer ordinalPosition; |
|
42 |
|
|
43 |
@Schema(description = "Java 属性类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "userAge") |
|
44 |
@NotNull(message = "Java 属性类型不能为空") |
|
45 |
private String javaType; |
|
46 |
|
|
47 |
@Schema(description = "Java 属性名", requiredMode = Schema.RequiredMode.REQUIRED, example = "Integer") |
|
48 |
@NotNull(message = "Java 属性名不能为空") |
|
49 |
private String javaField; |
|
50 |
|
|
51 |
@Schema(description = "字典类型", example = "sys_gender") |
|
52 |
private String dictType; |
|
53 |
|
|
54 |
@Schema(description = "数据示例", example = "1024") |
|
55 |
private String example; |
|
56 |
|
|
57 |
@Schema(description = "是否为 Create 创建操作的字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
58 |
@NotNull(message = "是否为 Create 创建操作的字段不能为空") |
|
59 |
private Boolean createOperation; |
|
60 |
|
|
61 |
@Schema(description = "是否为 Update 更新操作的字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "false") |
|
62 |
@NotNull(message = "是否为 Update 更新操作的字段不能为空") |
|
63 |
private Boolean updateOperation; |
|
64 |
|
|
65 |
@Schema(description = "是否为 List 查询操作的字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
66 |
@NotNull(message = "是否为 List 查询操作的字段不能为空") |
|
67 |
private Boolean listOperation; |
|
68 |
|
|
69 |
@Schema(description = "List 查询操作的条件类型,参见 CodegenColumnListConditionEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "LIKE") |
|
70 |
@NotNull(message = "List 查询操作的条件类型不能为空") |
|
71 |
private String listOperationCondition; |
|
72 |
|
|
73 |
@Schema(description = "是否为 List 查询操作的返回字段", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
74 |
@NotNull(message = "是否为 List 查询操作的返回字段不能为空") |
|
75 |
private Boolean listOperationResult; |
|
76 |
|
|
77 |
@Schema(description = "显示类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "input") |
|
78 |
@NotNull(message = "显示类型不能为空") |
|
79 |
private String htmlType; |
|
80 |
|
|
81 |
} |