|
@@ -8,8 +8,6 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import java.io.IOException;
|
|
|
-
|
|
|
/**
|
|
|
* <p>
|
|
|
* TODO
|
|
@@ -32,33 +30,33 @@ public class TestController {
|
|
|
return ResultData.ok(fYunFileService.fileExist("scene_result_data/KK-t-JCaoqtvy7AO/caches/images"));
|
|
|
}
|
|
|
|
|
|
- @GetMapping("/gd")
|
|
|
- public ResultData gd(String path){
|
|
|
- fYunFileService.copyFileBetweenBucket("4dkankan", path, "4dkk-bak", path);
|
|
|
- fYunFileService.deleteFolder("4dkankan", path);
|
|
|
- return ResultData.ok();
|
|
|
- }
|
|
|
-
|
|
|
- @GetMapping("/jd")
|
|
|
- public ResultData jd(String 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();
|
|
|
- }
|
|
|
-
|
|
|
- @GetMapping("/copy")
|
|
|
- public ResultData copy(String path) {
|
|
|
- fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkankan", path);
|
|
|
- fYunFileService.deleteFolder("4dkk-bak", path);
|
|
|
- return ResultData.ok();
|
|
|
- }
|
|
|
+// @GetMapping("/gd")
|
|
|
+// public ResultData gd(String path){
|
|
|
+// fYunFileService.copyFileBetweenBucket("4dkankan", path, "4dkk-bak", path);
|
|
|
+// fYunFileService.deleteFolder("4dkankan", path);
|
|
|
+// return ResultData.ok();
|
|
|
+// }
|
|
|
+//
|
|
|
+// @GetMapping("/jd")
|
|
|
+// public ResultData jd(String 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();
|
|
|
+// }
|
|
|
+//
|
|
|
+// @GetMapping("/copy")
|
|
|
+// public ResultData copy(String path) {
|
|
|
+// fYunFileService.copyFileBetweenBucket("4dkk-bak", path, "4dkankan", path);
|
|
|
+// fYunFileService.deleteFolder("4dkk-bak", path);
|
|
|
+// return ResultData.ok();
|
|
|
+// }
|
|
|
|
|
|
|
|
|
}
|