|
@@ -8,6 +8,8 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
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;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
* TODO
|
|
* TODO
|
|
@@ -39,8 +41,24 @@ public class TestController {
|
|
|
|
|
|
@GetMapping("/jd")
|
|
@GetMapping("/jd")
|
|
public ResultData jd(String path){
|
|
public ResultData jd(String path){
|
|
- fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkk-bak", path);
|
|
|
|
|
|
+ fYunFileService.restoreFolder("4dkk-bak", path, 1);
|
|
|
|
+// fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkk-bak", path);
|
|
|
|
+ return ResultData.ok();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @GetMapping("/delete")
|
|
|
|
+ public ResultData delete(String path) throws IOException {
|
|
|
|
+ fYunFileService.deleteFile("4dkk-bak", path);
|
|
|
|
+// fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkk-bak", path);
|
|
return ResultData.ok();
|
|
return ResultData.ok();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @GetMapping("/copy")
|
|
|
|
+ public ResultData copy(String path) {
|
|
|
|
+ fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkankan", path);
|
|
|
|
+ fYunFileService.deleteFolder("4dkk-bak", path);
|
|
|
|
+ return ResultData.ok();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|