fix:文件查询
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.sdm.common.entity.resp.data;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -11,6 +13,7 @@ import java.time.LocalDateTime;
|
||||
*/
|
||||
@Data
|
||||
@Schema(name = "FileMetadataDTO", description = "文件元数据传输对象")
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class FileMetadataInfoResp implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -52,12 +55,14 @@ public class FileMetadataInfoResp implements Serializable {
|
||||
private Long creatorId;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "更新者ID")
|
||||
private Long updaterId;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@Schema(description = "所属项目ID")
|
||||
@@ -85,4 +90,28 @@ public class FileMetadataInfoResp implements Serializable {
|
||||
|
||||
@Schema(description = "完整访问URL(拼接minio网关地址 + objectKey)")
|
||||
private String fileUrl;
|
||||
|
||||
private String relatedResourceUuid;
|
||||
private String relatedResourceUuidOwnType;
|
||||
private String dirType;
|
||||
private String dirStatus;
|
||||
private String fileStatus;
|
||||
private String fileType;
|
||||
private String approvalStatus;
|
||||
private String approveType;
|
||||
private String tempMetadata;
|
||||
private String cidFlowId;
|
||||
private String uploadTaskId;
|
||||
private String uploadStatus;
|
||||
private String cidFlowReviewer;
|
||||
private String tag1;
|
||||
private String tag2;
|
||||
private String tag3;
|
||||
private String tag4;
|
||||
private String tag5;
|
||||
private String tag6;
|
||||
private String tag7;
|
||||
private String tag8;
|
||||
private String tag9;
|
||||
private String tag10;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.sdm.common.feign.impl.data;
|
||||
import com.sdm.common.common.SdmResponse;
|
||||
import com.sdm.common.entity.req.data.*;
|
||||
import com.sdm.common.entity.req.system.LaunchApproveReq;
|
||||
import com.sdm.common.entity.resp.PageDataResp;
|
||||
import com.sdm.common.entity.resp.data.FileMetadataInfoResp;
|
||||
import com.sdm.common.feign.inter.data.IDataFeignClient;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -42,8 +43,8 @@ public class DataClientFeignClientImpl implements IDataFeignClient {
|
||||
}
|
||||
|
||||
@Override
|
||||
public SdmResponse queryDir(QueryDirReq req) {
|
||||
SdmResponse response;
|
||||
public SdmResponse<PageDataResp<List<FileMetadataInfoResp>>> queryDir(QueryDirReq req) {
|
||||
SdmResponse<PageDataResp<List<FileMetadataInfoResp>>> response;
|
||||
try {
|
||||
response = dataClient.queryDir(req);
|
||||
log.info("创建文响应件夹:"+ response);
|
||||
@@ -109,10 +110,10 @@ public class DataClientFeignClientImpl implements IDataFeignClient {
|
||||
}
|
||||
|
||||
@Override
|
||||
public SdmResponse<FileMetadataInfoResp> queryFileMetadataInfo(String uuid, String uuidOwnType) {
|
||||
public SdmResponse<FileMetadataInfoResp> queryFileMetadataInfo(String uuid, String uuidOwnType, Integer dirId) {
|
||||
SdmResponse<FileMetadataInfoResp> response;
|
||||
try {
|
||||
response = dataClient.queryFileMetadataInfo(uuid, uuidOwnType);
|
||||
response = dataClient.queryFileMetadataInfo(uuid, uuidOwnType, dirId);
|
||||
log.info("查询文件夹响应:"+ response);
|
||||
return response;
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.sdm.common.feign.inter.data;
|
||||
import com.sdm.common.common.SdmResponse;
|
||||
import com.sdm.common.entity.req.data.*;
|
||||
import com.sdm.common.entity.req.system.LaunchApproveReq;
|
||||
import com.sdm.common.entity.resp.PageDataResp;
|
||||
import com.sdm.common.entity.resp.data.FileMetadataInfoResp;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
@@ -25,7 +26,7 @@ public interface IDataFeignClient {
|
||||
SdmResponse createDir(@RequestBody @Validated CreateDirReq req);
|
||||
|
||||
@PostMapping("/data/queryDir")
|
||||
SdmResponse queryDir(@RequestBody @Validated QueryDirReq req);
|
||||
SdmResponse<PageDataResp<List<FileMetadataInfoResp>>> queryDir(@RequestBody @Validated QueryDirReq req);
|
||||
|
||||
@PostMapping("/data/renameDirNew")
|
||||
SdmResponse renameDirNew(@RequestBody @Validated RenameDirReq req);
|
||||
@@ -41,7 +42,7 @@ public interface IDataFeignClient {
|
||||
SdmResponse uploadFiles(UploadFilesReq req);
|
||||
|
||||
@GetMapping("/data/queryFileMetadataInfo")
|
||||
SdmResponse<FileMetadataInfoResp> queryFileMetadataInfo(@RequestParam(value = "uuid") String uuid, @RequestParam(value = "uuidOwnType") String uuidOwnType);
|
||||
SdmResponse<FileMetadataInfoResp> queryFileMetadataInfo(@RequestParam(value = "uuid") String uuid, @RequestParam(value = "uuidOwnType") String uuidOwnType, @RequestParam(value = "dirId") Integer dirId);
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user