Browse Source

add: 数据库维护配置

zhongwei
haungxing 3 months ago
parent
commit
115f0e52b5
  1. 4
      hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/DatasourceEntity.java
  2. 32
      hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/TableInfoEntity.java
  3. 7
      hzims-service/hzims-big-model/src/main/resources/template/template.yml

4
hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/DatasourceEntity.java

@ -22,6 +22,10 @@ import java.io.Serializable;
@ApiModel(value = "数据源配置",description = "数据源配置") @ApiModel(value = "数据源配置",description = "数据源配置")
public class DatasourceEntity extends TenantEntity implements Serializable { public class DatasourceEntity extends TenantEntity implements Serializable {
@ApiModelProperty("数据源")
@QueryField(condition = SqlCondition.EQUAL)
private String datasource;
@ApiModelProperty("数据源名称") @ApiModelProperty("数据源名称")
@QueryField(condition = SqlCondition.LIKE) @QueryField(condition = SqlCondition.LIKE)
private String datasourceName; private String datasourceName;

32
hzims-service/hzims-big-model/src/main/java/com/hnac/hzims/bigmodel/maintenance/entity/TableInfoEntity.java

@ -23,34 +23,46 @@ import java.io.Serializable;
@ApiModel(value = "数据库信息",description = "数据库信息") @ApiModel(value = "数据库信息",description = "数据库信息")
public class TableInfoEntity extends TenantEntity implements Serializable { public class TableInfoEntity extends TenantEntity implements Serializable {
@TableField("db_source") @ApiModelProperty(value = "数据源",required = true)
@ApiModelProperty("数据源") @NotBlank
@QueryField(condition = SqlCondition.EQUAL)
@TableField("data_source_id")
private String datasourceId;
@ApiModelProperty(value = "数据源名称",required = true)
@NotBlank @NotBlank
@QueryField(condition = SqlCondition.LIKE) @QueryField(condition = SqlCondition.LIKE)
private String datasource; @TableField("data_source_name")
private String datasourceName;
@TableField("db_name") @ApiModelProperty(value = "数据库",required = true)
@ApiModelProperty("数据库")
@NotBlank @NotBlank
@QueryField(condition = SqlCondition.EQUAL) @QueryField(condition = SqlCondition.EQUAL)
private String database; private String databaseName;
@ApiModelProperty("数据库表名") @ApiModelProperty(value = "数据库表名",required = true)
@NotBlank @NotBlank
@QueryField(condition = SqlCondition.EQUAL) @QueryField(condition = SqlCondition.EQUAL)
private String tableName; private String tableName;
@ApiModelProperty("数据库表描述信息") @ApiModelProperty(value = "数据库类型,1:Mysql",required = true)
@NotBlank
private String dbType;
@ApiModelProperty(value = "数据库表描述信息",required = true)
@NotBlank @NotBlank
@QueryField(condition = SqlCondition.LIKE) @QueryField(condition = SqlCondition.LIKE)
private String tableDesc; private String tableDesc;
@ApiModelProperty("数据库表列信息") @ApiModelProperty(value = "数据库表列信息",required = true)
@NotBlank @NotBlank
private String propDesc; private String propDesc;
@ApiModelProperty("举例") @ApiModelProperty("举例")
@NotBlank
private String example; private String example;
@ApiModelProperty("表注表信息中的字段对应的向量库的表字段查询")
@QueryField(condition = SqlCondition.LIKE)
private String filterJson;
} }

7
hzims-service/hzims-big-model/src/main/resources/template/template.yml

@ -73,4 +73,9 @@ xxl:
ip: ${hzims.xxljob.ip} ip: ${hzims.xxljob.ip}
logpath: /data/applogs/xxl-job/jobhandler logpath: /data/applogs/xxl-job/jobhandler
logretentiondays: 7 logretentiondays: 7
port: 28135 port: 28135
bigmodel:
zhipuai:
url: https://open.bigmodel.cn/api/paas/v4/chat/completions
apiSecret: dfd23052747674818c7ac6f9922beff1.n2o5JEdfnrLbFU53
Loading…
Cancel
Save