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,6 +1,6 @@
|
||||
package cn.fateverse.query.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
@@ -14,13 +14,13 @@ public class DynamicTable {
|
||||
/**
|
||||
* 表名称
|
||||
*/
|
||||
@ApiModelProperty("表名称")
|
||||
@Schema(description = "表名称")
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 表注释
|
||||
*/
|
||||
@ApiModelProperty("表注释")
|
||||
@Schema(description = "表注释")
|
||||
private String tableComment;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
@@ -4,7 +4,7 @@ import cn.fateverse.query.entity.DataAdapter;
|
||||
import cn.fateverse.query.enums.DataAdapterSource;
|
||||
import cn.fateverse.query.enums.DataAdapterType;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -20,31 +20,31 @@ public class DataAdapterDto {
|
||||
/**
|
||||
* 数据适配器id
|
||||
*/
|
||||
@ApiModelProperty("数据适配器id")
|
||||
@Schema(description = "数据适配器id")
|
||||
private Long adapterId;
|
||||
|
||||
/**
|
||||
* 适配器名称
|
||||
*/
|
||||
@ApiModelProperty("适配器名称")
|
||||
@Schema(description = "适配器名称")
|
||||
private String adapterName;
|
||||
|
||||
/**
|
||||
* 数据适配器代码类型 Java or Js
|
||||
*/
|
||||
@ApiModelProperty("数据适配器代码类型 Java or Js")
|
||||
@Schema(description = "数据适配器代码类型 Java or Js")
|
||||
private DataAdapterType type;
|
||||
|
||||
/**
|
||||
* 适配器代码
|
||||
*/
|
||||
@ApiModelProperty("适配器代码")
|
||||
@Schema(description = "适配器代码")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 模拟数据 strng类型的json字符串
|
||||
*/
|
||||
@ApiModelProperty("模拟数据 strng类型的json字符串")
|
||||
@Schema(description = "模拟数据 strng类型的json字符串")
|
||||
private String mockData;
|
||||
|
||||
public DataAdapter toDataAdapter() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import cn.fateverse.query.enums.DynamicSourceEnum;
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
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;
|
||||
@@ -24,76 +24,76 @@ public class DataSourceManageDto {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@Schema(description = "主键")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 数据源名称
|
||||
*/
|
||||
@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 Long port;
|
||||
|
||||
private String args;
|
||||
|
||||
@ApiModelProperty("服务名称")
|
||||
@Schema(description = "服务名称")
|
||||
private JSONObject params;
|
||||
|
||||
/**
|
||||
* 数据源类型,匹配java枚举
|
||||
*/
|
||||
@ApiModelProperty("数据源类型,匹配java枚举")
|
||||
@Schema(description = "数据源类型,匹配java枚举")
|
||||
@NotNull(message = "数据源类型不能为空!")
|
||||
private DynamicSourceEnum type;
|
||||
|
||||
/**
|
||||
* 数据库名称
|
||||
*/
|
||||
@ApiModelProperty("数据库名称")
|
||||
@Schema(description = "数据库名称")
|
||||
private String dbName;
|
||||
|
||||
/**
|
||||
* 配置类型
|
||||
*/
|
||||
@ApiModelProperty("数据源类型")
|
||||
@Schema(description = "数据源类型")
|
||||
@NotNull(message = "配置类型不能为空!")
|
||||
private Integer configType;
|
||||
|
||||
/**
|
||||
* 数据源连接类型
|
||||
*/
|
||||
@ApiModelProperty("数据源连接类型")
|
||||
@Schema(description = "数据源连接类型")
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
public DataSourceManage toQueryDataSource() {
|
||||
|
||||
@@ -2,7 +2,7 @@ package cn.fateverse.query.entity.dto;
|
||||
|
||||
import cn.fateverse.query.entity.DynamicEcharts;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -18,31 +18,31 @@ public class DynamicEchartsDto {
|
||||
/**
|
||||
* echarts主键
|
||||
*/
|
||||
@ApiModelProperty("echarts主键")
|
||||
@Schema(description = "echarts主键")
|
||||
private Long echartsId;
|
||||
|
||||
/**
|
||||
* 数据适配器id,可以选择或者直接创建
|
||||
*/
|
||||
@ApiModelProperty("数据适配器id,可以选择或者直接创建")
|
||||
@Schema(description = "数据适配器id,可以选择或者直接创建")
|
||||
private Long adapterId;
|
||||
|
||||
/**
|
||||
* echarts名称
|
||||
*/
|
||||
@ApiModelProperty("echarts名称")
|
||||
@Schema(description = "echarts名称")
|
||||
private String echartsName;
|
||||
|
||||
/**
|
||||
* echarts配置数据
|
||||
*/
|
||||
@ApiModelProperty("echarts配置数据")
|
||||
@Schema(description = "echarts配置数据")
|
||||
private String echartsConfig;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
public DynamicEcharts toDynamicEcharts() {
|
||||
|
||||
@@ -7,7 +7,7 @@ import cn.fateverse.query.enums.DataAdapterType;
|
||||
import cn.fateverse.query.enums.PortalEnum;
|
||||
import cn.fateverse.query.enums.PortalPremEnum;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
||||
@@ -28,58 +28,58 @@ public class PortalDto {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty("主键id")
|
||||
@Schema(description = "主键id")
|
||||
private String portalId;
|
||||
|
||||
/**
|
||||
* 自定义查询id
|
||||
*/
|
||||
@ApiModelProperty("自定义查询id")
|
||||
@Schema(description = "自定义查询id")
|
||||
private Long queryId;
|
||||
|
||||
/**
|
||||
* 数据适配器id
|
||||
*/
|
||||
@ApiModelProperty("数据适配器id")
|
||||
@Schema(description = "数据适配器id")
|
||||
private Long adapterId;
|
||||
|
||||
/**
|
||||
* 接口名称
|
||||
*/
|
||||
@ApiModelProperty("接口名称")
|
||||
@Schema(description = "接口名称")
|
||||
@NotBlank(message = "接口名称不能为空")
|
||||
private String portalName;
|
||||
|
||||
/**
|
||||
* 权限类型
|
||||
*/
|
||||
@ApiModelProperty("权限类型")
|
||||
@Schema(description = "权限类型")
|
||||
@NotNull(message = "权限类型不能为空")
|
||||
private PortalPremEnum permissionType;
|
||||
|
||||
/**
|
||||
* 接口类型
|
||||
*/
|
||||
@ApiModelProperty("接口类型")
|
||||
@Schema(description = "接口类型")
|
||||
@NotNull(message = "接口类型不能为空")
|
||||
private PortalEnum type;
|
||||
|
||||
|
||||
@ApiModelProperty("请求类型")
|
||||
@Schema(description = "请求类型")
|
||||
@NotBlank(message = "请求类型不能为空")
|
||||
private String requestMethod;
|
||||
|
||||
@NotNull(message = "是否创建数据适配器不能为空!")
|
||||
private Boolean createDataAdapter;
|
||||
|
||||
@ApiModelProperty("请求地址")
|
||||
@Schema(description = "请求地址")
|
||||
private String url;
|
||||
|
||||
@ApiModelProperty("请求类型")
|
||||
@Schema(description = "请求类型")
|
||||
private String contentType;
|
||||
|
||||
|
||||
@ApiModelProperty("接口请求方法类型")
|
||||
@Schema(description = "接口请求方法类型")
|
||||
private String interfaceRequestMethod;
|
||||
|
||||
/**
|
||||
@@ -90,26 +90,26 @@ public class PortalDto {
|
||||
/**
|
||||
* 系统暴露地址
|
||||
*/
|
||||
@ApiModelProperty("系统暴露地址")
|
||||
@Schema(description = "系统暴露地址")
|
||||
@NotBlank(message = "系统暴露地址不能为空")
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@ApiModelProperty("状态")
|
||||
@Schema(description = "状态")
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@ApiModelProperty("适配器代码类型")
|
||||
@Schema(description = "适配器代码类型")
|
||||
private DataAdapterType adapterCodeType;
|
||||
|
||||
@ApiModelProperty("映射关系")
|
||||
@Schema(description = "映射关系")
|
||||
private List<PortalMapping> mappings;
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package cn.fateverse.query.entity.dto;
|
||||
import cn.fateverse.query.entity.Table;
|
||||
import cn.fateverse.query.enums.DynamicSourceEnum;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -19,31 +19,31 @@ public class TableDto {
|
||||
/**
|
||||
* 表id
|
||||
*/
|
||||
@ApiModelProperty("表id")
|
||||
@Schema(description = "表id")
|
||||
private Long tableId;
|
||||
|
||||
/**
|
||||
* 数据源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;
|
||||
|
||||
public Table toTable() {
|
||||
|
||||
@@ -3,7 +3,7 @@ package cn.fateverse.query.entity.dto;
|
||||
import cn.fateverse.common.decrypt.annotation.EncryptField;
|
||||
import cn.fateverse.query.entity.UniQuery;
|
||||
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,56 +28,56 @@ public class UniQueryDto {
|
||||
/**
|
||||
* 自定义查询id
|
||||
*/
|
||||
@ApiModelProperty("自定义查询id")
|
||||
@Schema(description = "自定义查询id")
|
||||
@EncryptField
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty("数据源id")
|
||||
@Schema(description = "数据源id")
|
||||
@NotNull(message = "重要参数不能为空")
|
||||
private Long dataSourceId;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty("名称")
|
||||
@Schema(description = "名称")
|
||||
@NotBlank(message = "名称不能为空")
|
||||
private String uqName;
|
||||
|
||||
/**
|
||||
* sql语句
|
||||
*/
|
||||
@ApiModelProperty("sql语句")
|
||||
@Schema(description = "sql语句")
|
||||
private String uqSql;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty("描述")
|
||||
@Schema(description = "描述")
|
||||
@NotBlank(message = "描述不能为空")
|
||||
private String uqDescribe;
|
||||
|
||||
/**
|
||||
* 发布
|
||||
*/
|
||||
@ApiModelProperty("发布")
|
||||
@Schema(description = "发布")
|
||||
private Boolean publish;
|
||||
|
||||
/**
|
||||
* 预览:1,已预览 ,2 未预览
|
||||
*/
|
||||
@ApiModelProperty("预览:1,已预览 ,2 未预览")
|
||||
@Schema(description = "预览:1,已预览 ,2 未预览")
|
||||
private Boolean preview;
|
||||
|
||||
/**
|
||||
* top图json数据
|
||||
*/
|
||||
@ApiModelProperty("top图json数据")
|
||||
@Schema(description = "top图json数据")
|
||||
private String topJson;
|
||||
|
||||
/**
|
||||
* 类型 1:普通 2:top图
|
||||
*/
|
||||
@ApiModelProperty("类型 1:普通 2:top图")
|
||||
@Schema(description = "类型 1:普通 2:top图")
|
||||
private Integer type;
|
||||
|
||||
public Long getId() {
|
||||
|
||||
@@ -2,7 +2,7 @@ package cn.fateverse.query.entity.query;
|
||||
|
||||
import cn.fateverse.query.enums.DataAdapterType;
|
||||
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;
|
||||
@@ -22,13 +22,13 @@ public class DataAdapterQuery {
|
||||
/**
|
||||
* 适配器名称
|
||||
*/
|
||||
@ApiModelProperty("适配器名称")
|
||||
@Schema(description = "适配器名称")
|
||||
private String adapterName;
|
||||
|
||||
/**
|
||||
* 数据适配器代码类型 Java or Js
|
||||
*/
|
||||
@ApiModelProperty("数据适配器代码类型 Java or Js")
|
||||
@Schema(description = "数据适配器代码类型 Java or Js")
|
||||
private DataAdapterType type;
|
||||
|
||||
private Boolean common;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.fateverse.query.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 DataSourceManageQuery {
|
||||
/**
|
||||
* 数据源名称
|
||||
*/
|
||||
@ApiModelProperty("数据源名称")
|
||||
@Schema(description = "数据源名称")
|
||||
private String dsName;
|
||||
|
||||
/**
|
||||
* 数据库名称
|
||||
*/
|
||||
@ApiModelProperty("数据库名称")
|
||||
@Schema(description = "数据库名称")
|
||||
private String dbName;
|
||||
|
||||
/**
|
||||
* 数据源类型
|
||||
*/
|
||||
@ApiModelProperty("数据源类型")
|
||||
@Schema(description = "数据源类型")
|
||||
private Integer configType;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.fateverse.query.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,12 +21,12 @@ public class DynamicEchartsQuery {
|
||||
/**
|
||||
* echart名称
|
||||
*/
|
||||
@ApiModelProperty("echarts名称")
|
||||
@Schema(description = "echarts名称")
|
||||
private String echartsName;
|
||||
|
||||
/**
|
||||
* 是否发布
|
||||
*/
|
||||
@ApiModelProperty("是否发布")
|
||||
@Schema(description = "是否发布")
|
||||
private Boolean publish;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.fateverse.query.entity.query;
|
||||
|
||||
import cn.fateverse.common.core.entity.QueryTime;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -14,13 +14,13 @@ public class DynamicTableQuery extends QueryTime {
|
||||
/**
|
||||
* 表名称
|
||||
*/
|
||||
@ApiModelProperty("表名称")
|
||||
@Schema(description = "表名称")
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 表注释
|
||||
*/
|
||||
@ApiModelProperty("表注释")
|
||||
@Schema(description = "表注释")
|
||||
private String tableComment;
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ package cn.fateverse.query.entity.query;
|
||||
import cn.fateverse.query.enums.PortalEnum;
|
||||
import cn.fateverse.query.enums.PortalPremEnum;
|
||||
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;
|
||||
@@ -23,25 +23,25 @@ public class PortalQuery {
|
||||
/**
|
||||
* 接口名称
|
||||
*/
|
||||
@ApiModelProperty("接口名称")
|
||||
@Schema(description = "接口名称")
|
||||
private String portalName;
|
||||
|
||||
/**
|
||||
* 权限类型
|
||||
*/
|
||||
@ApiModelProperty("权限类型")
|
||||
@Schema(description = "权限类型")
|
||||
private PortalPremEnum permissionType;
|
||||
|
||||
/**
|
||||
* 接口类型
|
||||
*/
|
||||
@ApiModelProperty("接口类型")
|
||||
@Schema(description = "接口类型")
|
||||
private PortalEnum type;
|
||||
|
||||
/**
|
||||
* 系统暴露地址
|
||||
*/
|
||||
@ApiModelProperty("系统暴露地址")
|
||||
@Schema(description = "系统暴露地址")
|
||||
private String path;
|
||||
|
||||
private Integer state;
|
||||
|
||||
@@ -2,7 +2,7 @@ package cn.fateverse.query.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;
|
||||
@@ -21,21 +21,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;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.fateverse.query.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,27 +21,27 @@ public class UniQueryQuery {
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty("名称")
|
||||
@Schema(description = "名称")
|
||||
private String uqName;
|
||||
|
||||
/**
|
||||
* 发布
|
||||
*/
|
||||
@ApiModelProperty("发布")
|
||||
@Schema(description = "发布")
|
||||
private Integer publish;
|
||||
|
||||
/**
|
||||
* 预览:1,已预览 ,2 未预览
|
||||
*/
|
||||
@ApiModelProperty("预览:1,已预览 ,2 未预览")
|
||||
@Schema(description = "预览:1,已预览 ,2 未预览")
|
||||
private Boolean preview;
|
||||
|
||||
/**
|
||||
* 类型 1:普通 2:top图
|
||||
*/
|
||||
@ApiModelProperty("类型 1:普通 2:top图")
|
||||
@Schema(description = "类型 1:普通 2:top图")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty("数据源id")
|
||||
@Schema(description = "数据源id")
|
||||
private Long dataSourceId;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import cn.fateverse.common.core.annotaion.Excel;
|
||||
import cn.fateverse.query.enums.DataAdapterSource;
|
||||
import cn.fateverse.query.enums.DataAdapterType;
|
||||
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;
|
||||
@@ -30,35 +30,35 @@ public class DataAdapterVo {
|
||||
/**
|
||||
* 数据适配器id
|
||||
*/
|
||||
@ApiModelProperty("数据适配器id")
|
||||
@Schema(description = "数据适配器id")
|
||||
@EncryptField
|
||||
private Long adapterId;
|
||||
|
||||
/**
|
||||
* 适配器名称
|
||||
*/
|
||||
@ApiModelProperty("适配器名称")
|
||||
@Schema(description = "适配器名称")
|
||||
@Excel("适配器名称")
|
||||
private String adapterName;
|
||||
|
||||
/**
|
||||
* 数据适配器代码类型 Java or Js
|
||||
*/
|
||||
@ApiModelProperty("数据适配器代码类型 Java or Js")
|
||||
@Schema(description = "数据适配器代码类型 Java or Js")
|
||||
@Excel("数据适配器代码类型 Java or Js")
|
||||
private DataAdapterType type;
|
||||
|
||||
/**
|
||||
* 适配器代码
|
||||
*/
|
||||
@ApiModelProperty("适配器代码")
|
||||
@Schema(description = "适配器代码")
|
||||
@Excel("适配器代码")
|
||||
private String code;
|
||||
|
||||
/**
|
||||
* 模拟数据 strng类型的json字符串
|
||||
*/
|
||||
@ApiModelProperty("模拟数据 strng类型的json字符串")
|
||||
@Schema(description = "模拟数据 strng类型的json字符串")
|
||||
@Excel("模拟数据 strng类型的json字符串")
|
||||
private String mockData;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import cn.fateverse.common.core.annotaion.Excel;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
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,20 +29,20 @@ public class DataSourceManageVo {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@Schema(description = "主键")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 数据源名称
|
||||
*/
|
||||
@ApiModelProperty("数据源名称")
|
||||
@Schema(description = "数据源名称")
|
||||
@Excel("数据源名称")
|
||||
private String dsName;
|
||||
|
||||
/**
|
||||
* 数据源密码
|
||||
*/
|
||||
@ApiModelProperty("数据源用户名称")
|
||||
@Schema(description = "数据源用户名称")
|
||||
@Excel("数据源用户名称")
|
||||
private String username;
|
||||
|
||||
@@ -61,28 +61,28 @@ public class DataSourceManageVo {
|
||||
/**
|
||||
* 数据源类型,匹配java枚举
|
||||
*/
|
||||
@ApiModelProperty("数据源类型,匹配java枚举")
|
||||
@Schema(description = "数据源类型,匹配java枚举")
|
||||
@Excel("数据源类型,匹配java枚举")
|
||||
private DynamicSourceEnum type;
|
||||
|
||||
/**
|
||||
* 数据库名称
|
||||
*/
|
||||
@ApiModelProperty("数据库名称")
|
||||
@Schema(description = "数据库名称")
|
||||
@Excel("数据库名称")
|
||||
private String dbName;
|
||||
|
||||
/**
|
||||
* 数据源类型
|
||||
*/
|
||||
@ApiModelProperty("数据源类型")
|
||||
@Schema(description = "数据源类型")
|
||||
@Excel("数据源类型")
|
||||
private Integer configType;
|
||||
|
||||
/**
|
||||
* 数据源连接类型
|
||||
*/
|
||||
@ApiModelProperty("数据源连接类型")
|
||||
@Schema(description = "数据源连接类型")
|
||||
@Excel("数据源连接类型")
|
||||
private String url;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package cn.fateverse.query.entity.vo;
|
||||
import cn.fateverse.query.entity.DynamicEcharts;
|
||||
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,40 +27,40 @@ public class DynamicEchartsVo {
|
||||
/**
|
||||
* echarts主键
|
||||
*/
|
||||
@ApiModelProperty("echarts主键")
|
||||
@Schema(description = "echarts主键")
|
||||
private Long echartsId;
|
||||
|
||||
/**
|
||||
* 数据适配器id,可以选择或者直接创建
|
||||
*/
|
||||
@ApiModelProperty("数据适配器id,可以选择或者直接创建")
|
||||
@Schema(description = "数据适配器id,可以选择或者直接创建")
|
||||
private String adapterName;
|
||||
|
||||
/**
|
||||
* echart名称
|
||||
*/
|
||||
@ApiModelProperty("echarts名称")
|
||||
@Schema(description = "echarts名称")
|
||||
@Excel("echarts名称")
|
||||
private String echartsName;
|
||||
|
||||
/**
|
||||
* echart配置数据
|
||||
*/
|
||||
@ApiModelProperty("echarts配置数据")
|
||||
@Schema(description = "echarts配置数据")
|
||||
@Excel("echartss配置数据")
|
||||
private String echartsConfig;
|
||||
|
||||
/**
|
||||
* 是否发布
|
||||
*/
|
||||
@ApiModelProperty("是否发布")
|
||||
@Schema(description = "是否发布")
|
||||
@Excel("是否发布")
|
||||
private Boolean publish;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
@Schema(description = "备注")
|
||||
@Excel("备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import cn.fateverse.query.enums.DataAdapterType;
|
||||
import cn.fateverse.query.enums.PortalEnum;
|
||||
import cn.fateverse.query.enums.PortalPremEnum;
|
||||
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 SimplePortalVo {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty("主键id")
|
||||
@Schema(description = "主键id")
|
||||
@EncryptField
|
||||
private String portalId;
|
||||
|
||||
@@ -37,37 +37,37 @@ public class SimplePortalVo {
|
||||
/**
|
||||
* 自定义查询id
|
||||
*/
|
||||
@ApiModelProperty("自定义查询id")
|
||||
@Schema(description = "自定义查询id")
|
||||
private Long queryId;
|
||||
|
||||
|
||||
/**
|
||||
* 数据适配器id
|
||||
*/
|
||||
@ApiModelProperty("数据适配器id")
|
||||
@Schema(description = "数据适配器id")
|
||||
private Long adapterId;
|
||||
|
||||
/**
|
||||
* 接口名称
|
||||
*/
|
||||
@ApiModelProperty("接口名称")
|
||||
@Schema(description = "接口名称")
|
||||
@Excel("接口名称")
|
||||
private String portalName;
|
||||
|
||||
/**
|
||||
* 自定查询名称
|
||||
*/
|
||||
@ApiModelProperty("自定查询名称")
|
||||
@Schema(description = "自定查询名称")
|
||||
@Excel("自定查询名称")
|
||||
private String queryName;
|
||||
|
||||
@ApiModelProperty("自定查询类型 1:sql 2:topo图")
|
||||
@Schema(description = "自定查询类型 1:sql 2:topo图")
|
||||
private Integer queryType;
|
||||
|
||||
/**
|
||||
* 数据适配器名称
|
||||
*/
|
||||
@ApiModelProperty("数据适配器类型")
|
||||
@Schema(description = "数据适配器类型")
|
||||
@Excel("数据适配器类型")
|
||||
private DataAdapterType adapterCodeType;
|
||||
|
||||
@@ -78,49 +78,49 @@ public class SimplePortalVo {
|
||||
/**
|
||||
* 权限类型
|
||||
*/
|
||||
@ApiModelProperty("权限类型")
|
||||
@Schema(description = "权限类型")
|
||||
@Excel("权限类型")
|
||||
private PortalPremEnum permissionType;
|
||||
|
||||
/**
|
||||
* 接口类型
|
||||
*/
|
||||
@ApiModelProperty("接口类型")
|
||||
@Schema(description = "接口类型")
|
||||
@Excel("接口类型")
|
||||
private PortalEnum type;
|
||||
|
||||
/**
|
||||
* 系统暴露地址
|
||||
*/
|
||||
@ApiModelProperty("系统暴露地址")
|
||||
@Schema(description = "系统暴露地址")
|
||||
@Excel("系统暴露地址")
|
||||
private String path;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
@ApiModelProperty("状态 0: 创建 1: 发布 2:内部使用(例如提供echarts单独使用)")
|
||||
@Schema(description = "状态 0: 创建 1: 发布 2:内部使用(例如提供echarts单独使用)")
|
||||
@Excel("状态")
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty("创建时间")
|
||||
@Schema(description = "创建时间")
|
||||
@Excel("创建时间")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@ApiModelProperty("更新时间")
|
||||
@Schema(description = "更新时间")
|
||||
@Excel("更新时间")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty("备注")
|
||||
@Schema(description = "备注")
|
||||
@Excel("备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package cn.fateverse.query.entity.vo;
|
||||
import cn.fateverse.common.decrypt.annotation.EncryptField;
|
||||
import cn.fateverse.query.entity.UniColumn;
|
||||
import cn.fateverse.query.entity.UniCon;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -33,13 +33,13 @@ public class SqlInfoVo {
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty("名称")
|
||||
@Schema(description = "名称")
|
||||
private String uqName;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty("描述")
|
||||
@Schema(description = "描述")
|
||||
private String uqDescribe;
|
||||
|
||||
private Long menuId;
|
||||
|
||||
@@ -3,7 +3,7 @@ package cn.fateverse.query.entity.vo;
|
||||
import cn.fateverse.query.entity.Table;
|
||||
import cn.fateverse.query.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;
|
||||
@@ -27,37 +27,37 @@ public class TableVo {
|
||||
/**
|
||||
* 表id
|
||||
*/
|
||||
@ApiModelProperty("表id")
|
||||
@Schema(description = "表id")
|
||||
private Long tableId;
|
||||
|
||||
/**
|
||||
* 数据源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 Date createTime;
|
||||
|
||||
public static TableVo toTableVo(Table table) {
|
||||
|
||||
@@ -3,7 +3,7 @@ package cn.fateverse.query.entity.vo;
|
||||
import cn.fateverse.common.decrypt.annotation.EncryptField;
|
||||
import cn.fateverse.query.entity.UniQuery;
|
||||
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,7 +27,7 @@ public class UniQueryVo {
|
||||
/**
|
||||
* 自定义查询id
|
||||
*/
|
||||
@ApiModelProperty("主键")
|
||||
@Schema(description = "主键")
|
||||
@EncryptField
|
||||
private String id;
|
||||
|
||||
@@ -37,43 +37,43 @@ public class UniQueryVo {
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty("名称")
|
||||
@Schema(description = "名称")
|
||||
private String uqName;
|
||||
|
||||
/**
|
||||
* sql语句
|
||||
*/
|
||||
@ApiModelProperty("sql语句")
|
||||
@Schema(description = "sql语句")
|
||||
private String uqSql;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@ApiModelProperty("描述")
|
||||
@Schema(description = "描述")
|
||||
private String uqDescribe;
|
||||
|
||||
/**
|
||||
* 发布
|
||||
*/
|
||||
@ApiModelProperty("发布")
|
||||
@Schema(description = "发布")
|
||||
private Boolean publish;
|
||||
|
||||
/**
|
||||
* 预览:1,已预览 ,2 未预览
|
||||
*/
|
||||
@ApiModelProperty("预览:1,已预览 ,2 未预览")
|
||||
@Schema(description = "预览:1,已预览 ,2 未预览")
|
||||
private Boolean preview;
|
||||
|
||||
/**
|
||||
* top图json数据
|
||||
*/
|
||||
@ApiModelProperty("top图json数据")
|
||||
@Schema(description = "top图json数据")
|
||||
private String topJson;
|
||||
|
||||
/**
|
||||
* 类型 1:普通 2:top图
|
||||
*/
|
||||
@ApiModelProperty("类型 1:普通 2:top图")
|
||||
@Schema(description = "类型 1:普通 2:top图")
|
||||
private Integer type;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
Reference in New Issue
Block a user