接口优化

This commit is contained in:
wuweida 2022-05-19 09:50:24 +08:00
parent c42d58306c
commit b6c70b0b0e
1 changed files with 6 additions and 6 deletions

View File

@ -60,7 +60,7 @@ public class Controller {
private BuildingSiteService buildingSitrService;
@RequestMapping("all")
@GetMapping("all")
public Object all(){
List<Project> projects = projectMapper.selectList(null);
projects.forEach(project -> {
@ -75,7 +75,7 @@ public class Controller {
* 推送给城管接口用的
* @return
*/
@RequestMapping("cameras")
@GetMapping("cameras")
public Result cameras(){
List<ChengguanDto> chengguanDtos = cameraMapper.selectCamera();
Result success = Result.success(chengguanDtos);
@ -87,7 +87,7 @@ public class Controller {
* 景区人流识别
* @return
*/
@RequestMapping("scenicCamera")
@GetMapping("scenicCamera")
public Result scenicCamera(){
List<ScenicCameraDto> 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();