知识库关联工况
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package com.sdm.common.entity.req.data;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Schema(description = "获取文件基本信息请求参数")
|
||||
public class GetFileBaseInfoReq {
|
||||
@Schema(description = "文件路径", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String path;
|
||||
|
||||
@Schema(description = "文件id")
|
||||
private Integer fileId;
|
||||
}
|
||||
@@ -73,6 +73,24 @@ public class UploadFilesReq {
|
||||
@Schema(description = "关联项目id")
|
||||
private String projectId;
|
||||
|
||||
/**
|
||||
* 所属工况库id
|
||||
*/
|
||||
@Schema(description = "所属工况库id")
|
||||
private Integer simulationPoolId;
|
||||
|
||||
/**
|
||||
* 工况库版本
|
||||
*/
|
||||
@Schema(description = "工况库版本")
|
||||
private String simulationPoolVersion;
|
||||
|
||||
/**
|
||||
* 关联工况
|
||||
*/
|
||||
@Schema(description = "关联工况")
|
||||
private List<String> simulationPoolTaskIds;
|
||||
|
||||
/**
|
||||
* 关联分析项目id
|
||||
*
|
||||
|
||||
@@ -95,6 +95,19 @@ public class DataClientFeignClientImpl implements IDataFeignClient {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public SdmResponse getFileBaseInfo(GetFileBaseInfoReq req) {
|
||||
SdmResponse response;
|
||||
try {
|
||||
response = dataClient.getFileBaseInfo(req);
|
||||
log.info("查询文件基本信息响应:"+ response);
|
||||
return response;
|
||||
} catch (Exception e) {
|
||||
log.error("查询文件基本信息失败", e);
|
||||
return SdmResponse.failed("查询文件基本信息失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public SdmResponse approveDataFile(LaunchApproveReq req) {
|
||||
SdmResponse response;
|
||||
|
||||
@@ -40,6 +40,15 @@ public interface IDataFeignClient {
|
||||
@PostMapping("/data/delFile")
|
||||
SdmResponse delFile(@RequestBody @Validated DelFileReq req);
|
||||
|
||||
/**
|
||||
* 获取文件的基本信息
|
||||
*
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("data/getFileBaseInfo")
|
||||
SdmResponse getFileBaseInfo(@RequestBody @Validated GetFileBaseInfoReq req);
|
||||
|
||||
@PostMapping("/data/approveDataFile")
|
||||
SdmResponse approveDataFile(@RequestBody LaunchApproveReq req);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user