refactor(codegen): 更新Swagger注解版本
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package cn.fateverse.code.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -15,41 +15,41 @@ public class ApiClass {
|
||||
/**
|
||||
* 类id
|
||||
*/
|
||||
@ApiModelProperty("类id")
|
||||
@Schema(description = "类id")
|
||||
private String classId;
|
||||
/**
|
||||
* 模块id
|
||||
*/
|
||||
@ApiModelProperty("模块id")
|
||||
@Schema(description = "模块id")
|
||||
private String moduleId;
|
||||
/**
|
||||
* 类名
|
||||
*/
|
||||
@ApiModelProperty("类名")
|
||||
@Schema(description = "类名")
|
||||
private String className;
|
||||
/**
|
||||
* 类描述
|
||||
*/
|
||||
@ApiModelProperty("类描述")
|
||||
@Schema(description = "类描述")
|
||||
private String classDescribe;
|
||||
/**
|
||||
* 包名
|
||||
*/
|
||||
@ApiModelProperty("包名")
|
||||
@Schema(description = "包名")
|
||||
private String packageName;
|
||||
/**
|
||||
* 作者
|
||||
*/
|
||||
@ApiModelProperty("作者")
|
||||
@Schema(description = "作者")
|
||||
private String author;
|
||||
/**
|
||||
* 电子邮件
|
||||
*/
|
||||
@ApiModelProperty("电子邮件")
|
||||
@Schema(description = "电子邮件")
|
||||
private String email;
|
||||
/**
|
||||
* 前缀
|
||||
*/
|
||||
@ApiModelProperty("前缀")
|
||||
@Schema(description = "前缀")
|
||||
private String prefix;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.fateverse.code.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -15,52 +15,52 @@ public class InterTable {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@Schema(description = "id")
|
||||
private String interId;
|
||||
/**
|
||||
* 模块id
|
||||
*/
|
||||
@ApiModelProperty("模块id")
|
||||
@Schema(description = "模块id")
|
||||
private String moduleId;
|
||||
/**
|
||||
* 类id
|
||||
*/
|
||||
@ApiModelProperty("类id")
|
||||
@Schema(description = "类id")
|
||||
private String classId;
|
||||
/**
|
||||
* 接口名称
|
||||
*/
|
||||
@ApiModelProperty("接口名称")
|
||||
@Schema(description = "接口名称")
|
||||
private String itName;
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty("描述")
|
||||
@Schema(description = "描述")
|
||||
private String itDescribe;
|
||||
/**
|
||||
* 是否设置许可
|
||||
*/
|
||||
@ApiModelProperty("是否设置许可")
|
||||
@Schema(description = "是否设置许可")
|
||||
private String isPermission;
|
||||
/**
|
||||
* 请求路径
|
||||
*/
|
||||
@ApiModelProperty("请求路径")
|
||||
@Schema(description = "请求路径")
|
||||
private String reqUrl;
|
||||
/**
|
||||
* 请求方式
|
||||
*/
|
||||
@ApiModelProperty("请求方式")
|
||||
@Schema(description = "请求方式")
|
||||
private String method;
|
||||
/**
|
||||
* 是否生成
|
||||
*/
|
||||
@ApiModelProperty("是否生成")
|
||||
@Schema(description = "是否生成")
|
||||
private String isGenerate;
|
||||
/**
|
||||
* 类型(1,工作台,2流程)
|
||||
*/
|
||||
@ApiModelProperty("类型(1,工作台,2流程)")
|
||||
@Schema(description = "类型(1,工作台,2流程)")
|
||||
private String type;
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package cn.fateverse.code.entity;
|
||||
|
||||
import cn.fateverse.common.core.entity.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -17,16 +17,16 @@ public class Module extends BaseEntity {
|
||||
/**
|
||||
* 模块id
|
||||
*/
|
||||
@ApiModelProperty("模块id")
|
||||
@Schema(description = "模块id")
|
||||
private Long modeId;
|
||||
/**
|
||||
* 模块名称
|
||||
*/
|
||||
@ApiModelProperty("模块名称")
|
||||
@Schema(description = "模块名称")
|
||||
private String modeName;
|
||||
/**
|
||||
* 模块描述
|
||||
*/
|
||||
@ApiModelProperty("模块描述")
|
||||
@Schema(description = "模块描述")
|
||||
private String modeDescribe;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package cn.fateverse.code.entity;
|
||||
|
||||
import cn.fateverse.common.core.entity.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -16,66 +16,66 @@ public class RelTable extends BaseEntity {
|
||||
/**
|
||||
* 关联表id
|
||||
*/
|
||||
@ApiModelProperty("关联表id")
|
||||
@Schema(description = "关联表id")
|
||||
private Long relTableId;
|
||||
/**
|
||||
* 主表id
|
||||
*/
|
||||
@ApiModelProperty("主表id")
|
||||
@Schema(description = "主表id")
|
||||
private Long tableId;
|
||||
/**
|
||||
* 关联子表表名
|
||||
*/
|
||||
@ApiModelProperty("关联子表表名")
|
||||
@Schema(description = "关联子表表名")
|
||||
private String relName;
|
||||
/**
|
||||
* 子表简称
|
||||
*/
|
||||
@ApiModelProperty("子表简称")
|
||||
@Schema(description = "子表简称")
|
||||
private String relAs;
|
||||
/**
|
||||
* 父表名称
|
||||
*/
|
||||
@ApiModelProperty("父表名称")
|
||||
@Schema(description = "父表名称")
|
||||
private String tableName;
|
||||
/**
|
||||
* 父表名简称
|
||||
*/
|
||||
@ApiModelProperty("父表名简称")
|
||||
@Schema(description = "父表名简称")
|
||||
private String tableAs;
|
||||
/**
|
||||
* 表描述
|
||||
*/
|
||||
@ApiModelProperty("表描述")
|
||||
@Schema(description = "表描述")
|
||||
private String relComment;
|
||||
/**
|
||||
* 关联子表的字段
|
||||
*/
|
||||
@ApiModelProperty("关联子表的字段")
|
||||
@Schema(description = "关联子表的字段")
|
||||
private String relColumn;
|
||||
/**
|
||||
* 关联父表字段
|
||||
*/
|
||||
@ApiModelProperty("关联父表字段")
|
||||
@Schema(description = "关联父表字段")
|
||||
private String tableColumn;
|
||||
/**
|
||||
* 实体类名称(子表)
|
||||
*/
|
||||
@ApiModelProperty("实体类名称(子表)")
|
||||
@Schema(description = "实体类名称(子表)")
|
||||
private String relClass;
|
||||
/**
|
||||
* 实体类名称(子表)小写
|
||||
*/
|
||||
@ApiModelProperty("实体类名称(子表)小写")
|
||||
@Schema(description = "实体类名称(子表)小写")
|
||||
private String relClassLower;
|
||||
/**
|
||||
* 关联类型
|
||||
*/
|
||||
@ApiModelProperty("关联类型")
|
||||
@Schema(description = "关联类型")
|
||||
private String queryType;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@ApiModelProperty("排序")
|
||||
@Schema(description = "排序")
|
||||
private String sort;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package cn.fateverse.code.entity;
|
||||
|
||||
import cn.fateverse.common.core.entity.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -16,67 +16,67 @@ public class RelTableColumn extends BaseEntity {
|
||||
/**
|
||||
* 子表字段id
|
||||
*/
|
||||
@ApiModelProperty("子表字段id")
|
||||
@Schema(description = "子表字段id")
|
||||
private Long relColumnId;
|
||||
/**
|
||||
* 归属表编号
|
||||
*/
|
||||
@ApiModelProperty("归属表编号")
|
||||
@Schema(description = "归属表编号")
|
||||
private Long relTableId;
|
||||
/**
|
||||
* 列名称
|
||||
*/
|
||||
@ApiModelProperty("列名称")
|
||||
@Schema(description = "列名称")
|
||||
private String columnName;
|
||||
/**
|
||||
* 列描述
|
||||
*/
|
||||
@ApiModelProperty("列描述")
|
||||
@Schema(description = "列描述")
|
||||
private String columnComment;
|
||||
/**
|
||||
* 列类型
|
||||
*/
|
||||
@ApiModelProperty("列类型")
|
||||
@Schema(description = "列类型")
|
||||
private String columnType;
|
||||
/**
|
||||
* JAVA类型
|
||||
*/
|
||||
@ApiModelProperty("JAVA类型")
|
||||
@Schema(description = "JAVA类型")
|
||||
private String javaType;
|
||||
/**
|
||||
* JAVA字段名
|
||||
*/
|
||||
@ApiModelProperty("JAVA字段名")
|
||||
@Schema(description = "JAVA字段名")
|
||||
private String javaField;
|
||||
/**
|
||||
* 是否列表字段(1是)
|
||||
*/
|
||||
@ApiModelProperty("是否列表字段(1是)")
|
||||
@Schema(description = "是否列表字段(1是)")
|
||||
private String isList;
|
||||
/**
|
||||
* 是否查询字段(1是)
|
||||
*/
|
||||
@ApiModelProperty("是否查询字段(1是)")
|
||||
@Schema(description = "是否查询字段(1是)")
|
||||
private String isQuery;
|
||||
/**
|
||||
* 查询方式(等于、不等于、大于、小于、范围)
|
||||
*/
|
||||
@ApiModelProperty("查询方式(等于、不等于、大于、小于、范围)")
|
||||
@Schema(description = "查询方式(等于、不等于、大于、小于、范围)")
|
||||
private String queryType;
|
||||
/**
|
||||
* 显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)
|
||||
*/
|
||||
@ApiModelProperty("显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)")
|
||||
@Schema(description = "显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)")
|
||||
private String htmlType;
|
||||
/**
|
||||
* 字典类型
|
||||
*/
|
||||
@ApiModelProperty("字典类型")
|
||||
@Schema(description = "字典类型")
|
||||
private String dictType;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@ApiModelProperty("排序")
|
||||
@Schema(description = "排序")
|
||||
private String sort;
|
||||
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import cn.fateverse.code.enums.DynamicSourceEnum;
|
||||
import cn.fateverse.code.enums.FrontTemplateEnum;
|
||||
import cn.fateverse.common.core.entity.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -26,101 +26,101 @@ public class Table extends BaseEntity {
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@ApiModelProperty("编号")
|
||||
@Schema(description = "编号")
|
||||
private Long tableId;
|
||||
|
||||
private Long parentMenuId;
|
||||
/**
|
||||
* 数据源id
|
||||
*/
|
||||
@ApiModelProperty("数据源id")
|
||||
@Schema(description = "数据源id")
|
||||
private Long dataSourceId;
|
||||
|
||||
@ApiModelProperty("数据源类型")
|
||||
@Schema(description = "数据源类型")
|
||||
private DynamicSourceEnum dataSourceType;
|
||||
|
||||
/**
|
||||
* 表名称
|
||||
*/
|
||||
@ApiModelProperty("表名称")
|
||||
@Schema(description = "表名称")
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 表描述
|
||||
*/
|
||||
@ApiModelProperty("表描述")
|
||||
@Schema(description = "表描述")
|
||||
private String tableComment;
|
||||
|
||||
/**
|
||||
* 关联子表的表名
|
||||
*/
|
||||
@ApiModelProperty("关联子表的表名")
|
||||
@Schema(description = "关联子表的表名")
|
||||
private String subTableName;
|
||||
|
||||
/**
|
||||
* 子表关联的外键名
|
||||
*/
|
||||
@ApiModelProperty("子表关联的外键名")
|
||||
@Schema(description = "子表关联的外键名")
|
||||
private String subTableFkName;
|
||||
|
||||
/**
|
||||
* 实体类名称
|
||||
*/
|
||||
@ApiModelProperty("实体类名称")
|
||||
@Schema(description = "实体类名称")
|
||||
private String className;
|
||||
|
||||
/**
|
||||
* 使用的模板(crud单表操作 tree树表操作)
|
||||
*/
|
||||
@ApiModelProperty("使用的模板")
|
||||
@Schema(description = "使用的模板")
|
||||
private String tplCategory;
|
||||
|
||||
/**
|
||||
* 生成包路径
|
||||
*/
|
||||
@ApiModelProperty("生成包路径")
|
||||
@Schema(description = "生成包路径")
|
||||
private String packageName;
|
||||
|
||||
/**
|
||||
* 生成模块名
|
||||
*/
|
||||
@ApiModelProperty("生成模块名")
|
||||
@Schema(description = "生成模块名")
|
||||
private String moduleName;
|
||||
|
||||
/**
|
||||
* 生成服务名
|
||||
*/
|
||||
@ApiModelProperty("生成服务名")
|
||||
@Schema(description = "生成服务名")
|
||||
private String serviceName;
|
||||
|
||||
/**
|
||||
* 生成业务名
|
||||
*/
|
||||
@ApiModelProperty("生成业务名")
|
||||
@Schema(description = "生成业务名")
|
||||
private String businessName;
|
||||
|
||||
/**
|
||||
* 生成功能名
|
||||
*/
|
||||
@ApiModelProperty("生成功能名")
|
||||
@Schema(description = "生成功能名")
|
||||
private String functionName;
|
||||
|
||||
/**
|
||||
* 生成功能作者
|
||||
*/
|
||||
@ApiModelProperty("生成功能作者")
|
||||
@Schema(description = "生成功能作者")
|
||||
private String functionAuthor;
|
||||
|
||||
@ApiModelProperty("后端模板 0: mybatis 1: mybatispuls ")
|
||||
@Schema(description = "后端模板 0: mybatis 1: mybatispuls ")
|
||||
private BackTemplateEnum backTemplate;
|
||||
|
||||
@ApiModelProperty("前端模板 0: vue 1: react")
|
||||
@Schema(description = "前端模板 0: vue 1: react")
|
||||
private FrontTemplateEnum frontTemplate;
|
||||
|
||||
/**
|
||||
* 其它生成选项
|
||||
*/
|
||||
@ApiModelProperty("其它生成选项")
|
||||
@Schema(description = "其它生成选项")
|
||||
private String options;
|
||||
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import cn.fateverse.common.core.annotaion.EnableAutoField;
|
||||
import cn.fateverse.common.core.entity.BaseEntity;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
@@ -22,108 +22,108 @@ public class TableColumn extends BaseEntity {
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@ApiModelProperty("编号")
|
||||
@Schema(description = "编号")
|
||||
private Long columnId;
|
||||
/**
|
||||
* 归属表编号
|
||||
*/
|
||||
@ApiModelProperty("归属表编号")
|
||||
@Schema(description = "归属表编号")
|
||||
private Long tableId;
|
||||
/**
|
||||
* 列名称
|
||||
*/
|
||||
@ApiModelProperty("列名称")
|
||||
@Schema(description = "列名称")
|
||||
private String columnName;
|
||||
/**
|
||||
* 列描述
|
||||
*/
|
||||
@ApiModelProperty("列描述")
|
||||
@Schema(description = "列描述")
|
||||
private String columnComment;
|
||||
/**
|
||||
* 列类型
|
||||
*/
|
||||
@ApiModelProperty("列类型")
|
||||
@Schema(description = "列类型")
|
||||
private String columnType;
|
||||
|
||||
@ApiModelProperty("列长度")
|
||||
@Schema(description = "列长度")
|
||||
private Integer columnLength;
|
||||
|
||||
@ApiModelProperty("列精度")
|
||||
@Schema(description = "列精度")
|
||||
private Integer columnScale;
|
||||
/**
|
||||
* JAVA类型
|
||||
*/
|
||||
@ApiModelProperty("JAVA类型")
|
||||
@Schema(description = "JAVA类型")
|
||||
private String javaType;
|
||||
/**
|
||||
* JAVA字段名
|
||||
*/
|
||||
@ApiModelProperty("JAVA字段名")
|
||||
@Schema(description = "JAVA字段名")
|
||||
private String javaField;
|
||||
/**
|
||||
* 是否主键(1是)
|
||||
*/
|
||||
@ApiModelProperty("是否主键(1是)")
|
||||
@Schema(description = "是否主键(1是)")
|
||||
private String isPk;
|
||||
/**
|
||||
* 是否自增(1是)
|
||||
*/
|
||||
@ApiModelProperty("是否自增(1是)")
|
||||
@Schema(description = "是否自增(1是)")
|
||||
private String isIncrement;
|
||||
/**
|
||||
* 是否必填(1是)
|
||||
*/
|
||||
@ApiModelProperty("是否必填(1是)")
|
||||
@Schema(description = "是否必填(1是)")
|
||||
private String isRequired;
|
||||
/**
|
||||
* 是否为插入字段(1是)
|
||||
*/
|
||||
@ApiModelProperty("是否为插入字段(1是)")
|
||||
@Schema(description = "是否为插入字段(1是)")
|
||||
private String isInsert;
|
||||
/**
|
||||
* 是否编辑字段(1是)
|
||||
*/
|
||||
@ApiModelProperty("是否编辑字段(1是)")
|
||||
@Schema(description = "是否编辑字段(1是)")
|
||||
private String isEdit;
|
||||
/**
|
||||
* 是否列表字段(1是)
|
||||
*/
|
||||
@ApiModelProperty("是否列表字段(1是)")
|
||||
@Schema(description = "是否列表字段(1是)")
|
||||
private String isList;
|
||||
/**
|
||||
* 是否查询字段(1是)
|
||||
*/
|
||||
@ApiModelProperty("是否查询字段(1是)")
|
||||
@Schema(description = "是否查询字段(1是)")
|
||||
private String isQuery;
|
||||
/**
|
||||
* 是否正则(1 否)
|
||||
*/
|
||||
@ApiModelProperty("是否正则(1 否)")
|
||||
@Schema(description = "是否正则(1 否)")
|
||||
private Long isRegular;
|
||||
/**
|
||||
* 正则表达式内容
|
||||
*/
|
||||
@ApiModelProperty("正则表达式内容")
|
||||
@Schema(description = "正则表达式内容")
|
||||
private String regular;
|
||||
/**
|
||||
* 查询方式(等于、不等于、大于、小于、范围)
|
||||
*/
|
||||
@ApiModelProperty("查询方式(等于、不等于、大于、小于、范围)")
|
||||
@Schema(description = "查询方式(等于、不等于、大于、小于、范围)")
|
||||
private String queryType;
|
||||
/**
|
||||
* 显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)
|
||||
*/
|
||||
@ApiModelProperty("显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)")
|
||||
@Schema(description = "显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)")
|
||||
private String htmlType;
|
||||
/**
|
||||
* 字典类型
|
||||
*/
|
||||
@ApiModelProperty("字典类型")
|
||||
@Schema(description = "字典类型")
|
||||
private String dictType;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@ApiModelProperty("排序")
|
||||
@Schema(description = "排序")
|
||||
private String sort;
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@ package cn.fateverse.code.entity.dto;
|
||||
import cn.fateverse.code.entity.CodeDataSource;
|
||||
import cn.fateverse.code.enums.DynamicSourceEnum;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -29,64 +29,64 @@ public class DataSourceDto {
|
||||
/**
|
||||
* 数据源id
|
||||
*/
|
||||
@ApiModelProperty("数据源id")
|
||||
@Schema(description = "数据源id")
|
||||
private Long dsId;
|
||||
|
||||
/**
|
||||
* 数据源名称
|
||||
*/
|
||||
@ApiModelProperty("数据源名称")
|
||||
@Schema(description = "数据源名称")
|
||||
@NotBlank(message = "数据源名称不能为空")
|
||||
private String dsName;
|
||||
|
||||
/**
|
||||
* 数据源用户名
|
||||
*/
|
||||
@ApiModelProperty("数据源用户名")
|
||||
@Schema(description = "数据源用户名")
|
||||
@NotBlank(message = "数据源用户名")
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 数据源密码
|
||||
*/
|
||||
@ApiModelProperty("数据源密码")
|
||||
@Schema(description = "数据源密码")
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 数据源主机
|
||||
*/
|
||||
@ApiModelProperty("数据源主机")
|
||||
@Schema(description = "数据源主机")
|
||||
private String host;
|
||||
|
||||
/**
|
||||
* 数据源主机端口
|
||||
*/
|
||||
@ApiModelProperty("数据源主机端口")
|
||||
@Schema(description = "数据源主机端口")
|
||||
private Integer port;
|
||||
|
||||
/**
|
||||
* 数据源类型
|
||||
*/
|
||||
@ApiModelProperty("数据源类型")
|
||||
@Schema(description = "数据源类型")
|
||||
@NotNull(message = "数据源类型不能为空")
|
||||
private DynamicSourceEnum type;
|
||||
|
||||
/**
|
||||
* 数据库名称
|
||||
*/
|
||||
@ApiModelProperty("数据库名称")
|
||||
@Schema(description = "数据库名称")
|
||||
private String dbName;
|
||||
|
||||
/**
|
||||
* 数据库连接地址
|
||||
*/
|
||||
@ApiModelProperty("数据库连接地址")
|
||||
@Schema(description = "数据库连接地址")
|
||||
private String jdbcUrl;
|
||||
|
||||
/**
|
||||
* 数据源类型 (1:主机 2:jdbc连接url)
|
||||
*/
|
||||
@ApiModelProperty("数据源类型 (1:主机 2:jdbc连接url)")
|
||||
@Schema(description = "数据源类型 (1:主机 2:jdbc连接url)")
|
||||
@Max(value = 2, message = "参数不合法")
|
||||
@Min(value = 1, message = "参数不合法")
|
||||
private Integer confType;
|
||||
|
||||
@@ -2,7 +2,7 @@ package cn.fateverse.code.entity.dto;
|
||||
|
||||
import cn.fateverse.code.entity.Regular;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
@@ -21,34 +21,34 @@ public class RegularDto {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@Schema(description = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 正则名称
|
||||
*/
|
||||
@ApiModelProperty("正则名称")
|
||||
@Schema(description = "正则名称")
|
||||
@NotBlank(message = "正则名称不能为空!")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 正则内容
|
||||
*/
|
||||
@ApiModelProperty("正则内容")
|
||||
@Schema(description = "正则内容")
|
||||
@NotBlank(message = "正则内容不能为空!")
|
||||
private String regular;
|
||||
|
||||
/**
|
||||
* 验证内容
|
||||
*/
|
||||
@ApiModelProperty("验证内容")
|
||||
@Schema(description = "验证内容")
|
||||
@NotBlank(message = "验证内容不能为空!")
|
||||
private String validation;
|
||||
|
||||
/**
|
||||
* 是否启用 1:启动 2:关闭
|
||||
*/
|
||||
@ApiModelProperty("是否启用 1:启动 0:关闭")
|
||||
@Schema(description = "是否启用 1:启动 0:关闭")
|
||||
@NotNull(message = "是否启用不能为空!")
|
||||
private String enable;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package cn.fateverse.code.entity.query;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ public class DataSourceQuery {
|
||||
/**
|
||||
* 数据源名称
|
||||
*/
|
||||
@ApiModelProperty("数据源名称")
|
||||
@Schema(description = "数据源名称")
|
||||
private String dsName;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.fateverse.code.entity.query;
|
||||
|
||||
import cn.fateverse.common.core.entity.QueryTime;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -23,13 +23,13 @@ public class DynamicTable extends QueryTime {
|
||||
/**
|
||||
* 表名称
|
||||
*/
|
||||
@ApiModelProperty("表名称")
|
||||
@Schema(description = "表名称")
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 表注释
|
||||
*/
|
||||
@ApiModelProperty("表注释")
|
||||
@Schema(description = "表注释")
|
||||
private String tableComment;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.fateverse.code.entity.query;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
@@ -21,18 +21,18 @@ public class RegularQuery {
|
||||
/**
|
||||
* 正则名称
|
||||
*/
|
||||
@ApiModelProperty("正则名称")
|
||||
@Schema(description = "正则名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 正则内容
|
||||
*/
|
||||
@ApiModelProperty("正则内容")
|
||||
@Schema(description = "正则内容")
|
||||
private String regular;
|
||||
|
||||
/**
|
||||
* 是否启用 1:启动 2:关闭
|
||||
*/
|
||||
@ApiModelProperty("是否启用 1:启动 0:关闭")
|
||||
@Schema(description = "是否启用 1:启动 0:关闭")
|
||||
private Integer enable;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package cn.fateverse.code.entity.query;
|
||||
|
||||
import cn.fateverse.common.core.entity.QueryTime;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -22,21 +22,21 @@ public class TableQuery extends QueryTime {
|
||||
/**
|
||||
* 数据源id
|
||||
*/
|
||||
@ApiModelProperty("数据源id")
|
||||
@Schema(description = "数据源id")
|
||||
private Long dataSourceId;
|
||||
|
||||
/**
|
||||
* 表名称
|
||||
*/
|
||||
@ApiModelProperty("表名称")
|
||||
@Schema(description = "表名称")
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 表描述
|
||||
*/
|
||||
@ApiModelProperty("表描述")
|
||||
@Schema(description = "表描述")
|
||||
private String tableComment;
|
||||
|
||||
@ApiModelProperty("数据类型")
|
||||
@Schema(description = "数据类型")
|
||||
private String dataSourceType;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package cn.fateverse.code.entity.vo;
|
||||
import cn.fateverse.code.entity.CodeDataSource;
|
||||
import cn.fateverse.common.core.annotaion.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -28,68 +28,68 @@ public class DataSourceVo implements Serializable {
|
||||
/**
|
||||
* 数据源id
|
||||
*/
|
||||
@ApiModelProperty("数据源id")
|
||||
@Schema(description = "数据源id")
|
||||
private Long dsId;
|
||||
|
||||
/**
|
||||
* 数据源名称
|
||||
*/
|
||||
@ApiModelProperty("数据源名称")
|
||||
@Schema(description = "数据源名称")
|
||||
@Excel("数据源名称")
|
||||
private String dsName;
|
||||
|
||||
/**
|
||||
* 数据源用户名
|
||||
*/
|
||||
@ApiModelProperty("数据源用户名")
|
||||
@Schema(description = "数据源用户名")
|
||||
@Excel("数据源用户名")
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 数据源密码
|
||||
*/
|
||||
@ApiModelProperty("数据源密码")
|
||||
@Schema(description = "数据源密码")
|
||||
@Excel("数据源密码")
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 数据源主机
|
||||
*/
|
||||
@ApiModelProperty("数据源主机")
|
||||
@Schema(description = "数据源主机")
|
||||
@Excel("数据源主机")
|
||||
private String host;
|
||||
|
||||
/**
|
||||
* 数据源主机端口
|
||||
*/
|
||||
@ApiModelProperty("数据源主机端口")
|
||||
@Schema(description = "数据源主机端口")
|
||||
@Excel("数据源主机端口")
|
||||
private Integer port;
|
||||
|
||||
/**
|
||||
* 数据源类型
|
||||
*/
|
||||
@ApiModelProperty("数据源类型")
|
||||
@Schema(description = "数据源类型")
|
||||
@Excel("数据源类型")
|
||||
private String dsType;
|
||||
|
||||
/**
|
||||
* 数据库名称
|
||||
*/
|
||||
@ApiModelProperty("数据库名称")
|
||||
@Schema(description = "数据库名称")
|
||||
@Excel("数据库名称")
|
||||
private String dbName;
|
||||
|
||||
/**
|
||||
* 数据库连接地址
|
||||
*/
|
||||
@ApiModelProperty("数据库连接地址")
|
||||
@Schema(description = "数据库连接地址")
|
||||
@Excel("数据库连接地址")
|
||||
private String jdbcUrl;
|
||||
/**
|
||||
* 数据源类型 (1:主机 2:jdbc连接url)
|
||||
*/
|
||||
@ApiModelProperty("数据源类型 (1:主机 2:jdbc连接url)")
|
||||
@Schema(description = "数据源类型 (1:主机 2:jdbc连接url)")
|
||||
@Max(value = 2, message = "参数不合法")
|
||||
@Min(value = 1, message = "参数不合法")
|
||||
@Excel("数据源类型")
|
||||
|
||||
@@ -3,7 +3,7 @@ package cn.fateverse.code.entity.vo;
|
||||
import cn.fateverse.code.entity.Regular;
|
||||
import cn.fateverse.common.core.annotaion.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -27,33 +27,33 @@ public class RegularVo {
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@ApiModelProperty("id")
|
||||
@Schema(description = "id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 正则名称
|
||||
*/
|
||||
@ApiModelProperty("正则名称")
|
||||
@Schema(description = "正则名称")
|
||||
@Excel("正则名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 正则内容
|
||||
*/
|
||||
@ApiModelProperty("正则内容")
|
||||
@Schema(description = "正则内容")
|
||||
@Excel("正则内容")
|
||||
private String regular;
|
||||
|
||||
/**
|
||||
* 验证内容
|
||||
*/
|
||||
@ApiModelProperty("验证内容")
|
||||
@Schema(description = "验证内容")
|
||||
private String validation;
|
||||
|
||||
/**
|
||||
* 是否启用 1:启动 2:关闭
|
||||
*/
|
||||
@ApiModelProperty("是否启用 1:启动 2:关闭")
|
||||
@Schema(description = "是否启用 1:启动 2:关闭")
|
||||
@Excel(value = "是否启用",dictType = "regular_enable")
|
||||
private String enable;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package cn.fateverse.code.entity.vo;
|
||||
|
||||
import cn.fateverse.common.core.annotaion.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -24,34 +24,34 @@ public class TableVo {
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
@ApiModelProperty("编号")
|
||||
@Schema(description = "编号")
|
||||
@Excel("编号")
|
||||
private Long tableId;
|
||||
|
||||
/**
|
||||
* 数据源id
|
||||
*/
|
||||
@ApiModelProperty("数据源id")
|
||||
@Schema(description = "数据源id")
|
||||
@Excel("数据源id")
|
||||
private Long dataSourceId;
|
||||
|
||||
/**
|
||||
* 表名称
|
||||
*/
|
||||
@ApiModelProperty("表名称")
|
||||
@Schema(description = "表名称")
|
||||
@Excel("表名称")
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 表描述
|
||||
*/
|
||||
@ApiModelProperty("表描述")
|
||||
@Schema(description = "表描述")
|
||||
@Excel("表描述")
|
||||
private String tableComment;
|
||||
/**
|
||||
* 实体类名称
|
||||
*/
|
||||
@ApiModelProperty("实体类名称")
|
||||
@Schema(description = "实体类名称")
|
||||
@Excel("实体类名称")
|
||||
private String className;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package ${packageName}.entity.dto;
|
||||
|
||||
import ${packageName}.entity.${ClassName};
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
#if($table.isRequired())
|
||||
import javax.validation.constraints.NotNull;
|
||||
@@ -28,7 +28,7 @@ public class ${ClassName}Dto {
|
||||
/**
|
||||
* ${pkColumn.columnComment}
|
||||
*/
|
||||
@ApiModelProperty("${pkColumn.columnComment}")
|
||||
@Schema(description = "${pkColumn.columnComment}")
|
||||
private $pkColumn.javaType $pkColumn.javaField;
|
||||
#foreach ($column in $columns)
|
||||
#if($column.from())
|
||||
@@ -42,7 +42,7 @@ public class ${ClassName}Dto {
|
||||
#if($column.isRegular())
|
||||
@Pattern(regexp = "${column.regular}",message = "${column.columnComment}格式错误!")
|
||||
#end
|
||||
@ApiModelProperty("${column.columnComment}")
|
||||
@Schema(description = "${column.columnComment}")
|
||||
private $column.javaType $column.javaField;
|
||||
#end
|
||||
#end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package ${packageName}.entity.query;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
@@ -29,7 +29,7 @@ public class ${ClassName}Query {
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@ApiModelProperty("${column.columnComment}")
|
||||
@Schema(description = "${column.columnComment}")
|
||||
#if($column.javaType.equals("Date"))
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
#end
|
||||
@@ -39,7 +39,7 @@ public class ${ClassName}Query {
|
||||
/**
|
||||
* $column.columnComment 开始
|
||||
*/
|
||||
@ApiModelProperty("${column.columnComment}开始")
|
||||
@Schema(description = "${column.columnComment}开始")
|
||||
#if($column.javaType.equals("Date"))
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
#end
|
||||
@@ -48,7 +48,7 @@ public class ${ClassName}Query {
|
||||
/**
|
||||
* $column.columnComment 结束
|
||||
*/
|
||||
@ApiModelProperty("${column.columnComment}结束")
|
||||
@Schema(description = "${column.columnComment}结束")
|
||||
#if($column.javaType.equals("Date"))
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
#end
|
||||
|
||||
@@ -3,7 +3,7 @@ package ${packageName}.entity.vo;
|
||||
import ${packageName}.entity.${ClassName};
|
||||
import cn.fateverse.common.core.annotaion.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -29,7 +29,7 @@ public class ${ClassName}Vo {
|
||||
/**
|
||||
* ${pkColumn.columnComment}
|
||||
*/
|
||||
@ApiModelProperty("${pkColumn.columnComment}")
|
||||
@Schema(description = "${pkColumn.columnComment}")
|
||||
private $pkColumn.javaType $pkColumn.javaField;
|
||||
#foreach ($column in $columns)
|
||||
#if($column.list())
|
||||
@@ -37,7 +37,7 @@ public class ${ClassName}Vo {
|
||||
/**
|
||||
* $column.columnComment
|
||||
*/
|
||||
@ApiModelProperty("${column.columnComment}")
|
||||
@Schema(description = "${column.columnComment}")
|
||||
@Excel("${column.columnComment}")
|
||||
private $column.javaType $column.javaField;
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user