From 12963f8fd79c8602c4c97d19a41da07866c97029 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Fri, 19 May 2023 14:12:58 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E5=B7=A1=E6=A3=80=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=B5=8B=E8=AF=95=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hnac/hzinfo/inspect/ai/controller/RobotTaskController.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/controller/RobotTaskController.java b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/controller/RobotTaskController.java index 95d04bc..e0ca260 100644 --- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/controller/RobotTaskController.java +++ b/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.mp.support.Condition; import org.springblade.core.mp.support.Query; +import org.springblade.core.oss.OssTemplate; import org.springblade.core.oss.model.BladeFile; import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.Func; @@ -39,6 +40,7 @@ import java.util.Map; public class RobotTaskController extends BladeController { private final IRobotTaskService robot_taskService; + private final OssTemplate ossTemplate; @Autowired BladeLogger logger; @@ -150,6 +152,12 @@ public class RobotTaskController extends BladeController { return R.data(robot_taskService.robotTaskList(tenantId,userId)); } + @GetMapping("/putFileTest") + @ApiOperation(value = "测试minio文件上传", notes = "测试minio文件上传") + public R putFile(@ApiParam(value = "文件", required = true) @RequestParam MultipartFile file) { + return R.data(ossTemplate.putFile(file)); + } + /** * 机器人 * 处理机器人巡检结果