|
@@ -1,35 +1,17 @@
|
|
package com.persagy.dmp.file.controller;
|
|
package com.persagy.dmp.file.controller;
|
|
|
|
|
|
import cn.hutool.core.map.MapUtil;
|
|
import cn.hutool.core.map.MapUtil;
|
|
-import cn.hutool.core.thread.ThreadUtil;
|
|
|
|
-import cn.hutool.core.util.StrUtil;
|
|
|
|
-import com.baomidou.mybatisplus.core.toolkit.IdWorker;
|
|
|
|
-import com.persagy.common.lock.Lock;
|
|
|
|
-import com.persagy.dmp.common.constant.ResponseCode;
|
|
|
|
-import com.persagy.dmp.common.exception.BusinessException;
|
|
|
|
-import com.persagy.dmp.common.lang.PsDateTime;
|
|
|
|
import com.persagy.dmp.common.model.response.CommonResult;
|
|
import com.persagy.dmp.common.model.response.CommonResult;
|
|
import com.persagy.dmp.common.utils.ResultHelper;
|
|
import com.persagy.dmp.common.utils.ResultHelper;
|
|
-import com.persagy.dmp.file.model.FileInfo;
|
|
|
|
-import com.persagy.dmp.file.model.FileInfoCreator;
|
|
|
|
import com.persagy.dmp.file.service.FileMigrateFactory;
|
|
import com.persagy.dmp.file.service.FileMigrateFactory;
|
|
import com.persagy.dmp.file.service.FileMigrateService;
|
|
import com.persagy.dmp.file.service.FileMigrateService;
|
|
-import com.persagy.dmp.file.service.IFileService;
|
|
|
|
-import io.minio.*;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
-import org.apache.hadoop.conf.Configuration;
|
|
|
|
-import org.apache.hadoop.fs.*;
|
|
|
|
-import org.springframework.core.io.Resource;
|
|
|
|
-import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
|
|
|
|
-import org.springframework.core.io.support.ResourcePatternResolver;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import java.io.IOException;
|
|
|
|
-import java.io.InputStream;
|
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
/**
|