|
@@ -1,5 +1,6 @@
|
|
|
package com.fdkankan.scene.controller;
|
|
|
|
|
|
+import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
import com.fdkankan.rabbitmq.util.RabbitMqProducer;
|
|
|
import com.fdkankan.web.response.ResultData;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -21,12 +22,12 @@ public class TestController {
|
|
|
|
|
|
@Autowired
|
|
|
private RabbitMqProducer rabbitMqProducer;
|
|
|
+ @Autowired
|
|
|
+ private FYunFileServiceInterface fYunFileService;
|
|
|
|
|
|
@GetMapping("/test")
|
|
|
public ResultData test(){
|
|
|
- for (int i = 0; i < 100; i++){
|
|
|
- rabbitMqProducer.sendByWorkQueue("test_dsx", "{\"name\":123}");
|
|
|
- }
|
|
|
+ fYunFileService.deleteFolder("testUp");
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
|