From b6c70b0b0e13d504970bbfade8522da73ea1d924 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Thu, 19 May 2022 09:50:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hisense/monitormanage/controller/Controller.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/hisense/monitormanage/controller/Controller.java b/src/main/java/com/hisense/monitormanage/controller/Controller.java index 2c5bc52..8c0c70e 100644 --- a/src/main/java/com/hisense/monitormanage/controller/Controller.java +++ b/src/main/java/com/hisense/monitormanage/controller/Controller.java @@ -60,7 +60,7 @@ public class Controller { private BuildingSiteService buildingSitrService; - @RequestMapping("all") + @GetMapping("all") public Object all(){ List projects = projectMapper.selectList(null); projects.forEach(project -> { @@ -75,7 +75,7 @@ public class Controller { * 推送给城管接口用的 * @return */ - @RequestMapping("cameras") + @GetMapping("cameras") public Result cameras(){ List chengguanDtos = cameraMapper.selectCamera(); Result success = Result.success(chengguanDtos); @@ -87,7 +87,7 @@ public class Controller { * 景区人流识别 * @return */ - @RequestMapping("scenicCamera") + @GetMapping("scenicCamera") public Result scenicCamera(){ List scenicCameraDtos = scenicMapper.selectScenicCameras(); Result success = Result.success(scenicCameraDtos); @@ -95,21 +95,21 @@ public class Controller { return success; } - @RequestMapping("capture") + @GetMapping("capture") public Object capture(){ monitorService.start(); return "finish capture"; } - @RequestMapping("startScenic") + @GetMapping("startScenic") public Object startScenic(){ monitorService.startScenic(); return "startScenic finish"; } - @RequestMapping("capture1") + @GetMapping("capture1") public Object capture1(){ monitorService.start1();