Browse Source

# 巡检文件上传测试方法

zhongwei
haungxing 2 years ago
parent
commit
12963f8fd7
  1. 8
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/controller/RobotTaskController.java

8
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/controller/RobotTaskController.java

@ -12,6 +12,7 @@ import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.log.logger.BladeLogger; import org.springblade.core.log.logger.BladeLogger;
import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query; import org.springblade.core.mp.support.Query;
import org.springblade.core.oss.OssTemplate;
import org.springblade.core.oss.model.BladeFile; import org.springblade.core.oss.model.BladeFile;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func; import org.springblade.core.tool.utils.Func;
@ -39,6 +40,7 @@ import java.util.Map;
public class RobotTaskController extends BladeController { public class RobotTaskController extends BladeController {
private final IRobotTaskService robot_taskService; private final IRobotTaskService robot_taskService;
private final OssTemplate ossTemplate;
@Autowired @Autowired
BladeLogger logger; BladeLogger logger;
@ -150,6 +152,12 @@ public class RobotTaskController extends BladeController {
return R.data(robot_taskService.robotTaskList(tenantId,userId)); return R.data(robot_taskService.robotTaskList(tenantId,userId));
} }
@GetMapping("/putFileTest")
@ApiOperation(value = "测试minio文件上传", notes = "测试minio文件上传")
public R<BladeFile> putFile(@ApiParam(value = "文件", required = true) @RequestParam MultipartFile file) {
return R.data(ossTemplate.putFile(file));
}
/** /**
* 机器人 * 机器人
* 处理机器人巡检结果 * 处理机器人巡检结果

Loading…
Cancel
Save