接口优化
This commit is contained in:
parent
c42d58306c
commit
b6c70b0b0e
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue