영상관리 -> 폴더조회, 파일리스트 조회 POST로 변경
This commit is contained in:
@@ -3,7 +3,8 @@ package com.kamco.cd.kamcoback.mapsheet.service;
|
||||
import com.kamco.cd.kamcoback.mapsheet.dto.FileDto;
|
||||
import com.kamco.cd.kamcoback.mapsheet.dto.FileDto.FilesDto;
|
||||
import com.kamco.cd.kamcoback.mapsheet.dto.FileDto.FolderDto;
|
||||
import com.kamco.cd.kamcoback.mapsheet.dto.FileDto.SrchDto;
|
||||
import com.kamco.cd.kamcoback.mapsheet.dto.FileDto.SrchFilesDto;
|
||||
import com.kamco.cd.kamcoback.mapsheet.dto.FileDto.SrchFoldersDto;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
@@ -30,9 +31,11 @@ public class MapSheetMngService {
|
||||
|
||||
//private final MapSheetAnalDataCoreService mapSheetAnalDataCoreService;
|
||||
|
||||
public List<FolderDto> getFolderAll(String dirPath) {
|
||||
public List<FolderDto> getFolderAll(SrchFoldersDto srchDto) {
|
||||
|
||||
Path startPath = Paths.get(srchDto.getDirPath());
|
||||
String dirPath = srchDto.getDirPath();
|
||||
|
||||
Path startPath = Paths.get(dirPath);
|
||||
int maxDepth = 1;
|
||||
|
||||
List<FolderDto> folderDtoList = List.of();
|
||||
@@ -48,6 +51,7 @@ public class MapSheetMngService {
|
||||
.map(path -> {
|
||||
|
||||
int depth = path.getNameCount();
|
||||
|
||||
String folderNm = path.getFileName().toString();
|
||||
String parentFolderNm = path.getParent().getFileName().toString();
|
||||
String parentPath = path.getParent().toString();
|
||||
@@ -70,6 +74,7 @@ public class MapSheetMngService {
|
||||
|
||||
String lastModified = dttmFormat.format(new Date(time.toMillis()));
|
||||
|
||||
|
||||
FolderDto folderDto = new FolderDto(
|
||||
folderNm,
|
||||
parentFolderNm,
|
||||
@@ -98,7 +103,7 @@ public class MapSheetMngService {
|
||||
}
|
||||
|
||||
|
||||
public FilesDto getFilesAll(SrchDto srchDto) {
|
||||
public FilesDto getFilesAll(SrchFilesDto srchDto) {
|
||||
|
||||
String dirPath = srchDto.getDirPath();
|
||||
String extension = srchDto.getExtension();
|
||||
|
||||
Reference in New Issue
Block a user