|
@@ -1,31 +1,40 @@
|
|
|
package com.aizuda.boot.modules.noco.nocodb;
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonAlias;
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.Getter;
|
|
|
import lombok.Setter;
|
|
|
|
|
|
@Getter
|
|
|
@Setter
|
|
|
public class NdColumn {
|
|
|
+
|
|
|
+ @Schema(description = "主键ID")
|
|
|
private String id;
|
|
|
+
|
|
|
+ @Schema(description = "字段标题")
|
|
|
private String title;
|
|
|
|
|
|
+ @Schema(description = "字段名称")
|
|
|
@JsonAlias("column_name")
|
|
|
private String columnName;
|
|
|
|
|
|
- // 字段数据类型
|
|
|
+ @Schema(description = "字段是否为必填项 true 必填")
|
|
|
+ private Boolean rqd;
|
|
|
+
|
|
|
+ @Schema(description = "字段数据类型")
|
|
|
private String dt;
|
|
|
|
|
|
- // 创建字段类型
|
|
|
+ @Schema(description = "创建字段类型")
|
|
|
private String ct;
|
|
|
|
|
|
- // 字符串类型字段长度
|
|
|
+ @Schema(description = "字符串类型字段长度")
|
|
|
private String clen;
|
|
|
|
|
|
- // 系统字段 0,否 1,是
|
|
|
+ @Schema(description = "系统字段 0,否 1,是")
|
|
|
private Integer system;
|
|
|
|
|
|
- // 只读 0,否 1,是
|
|
|
+ @Schema(description = "只读 0,否 1,是")
|
|
|
private Integer readonly;
|
|
|
|
|
|
}
|