|
@@ -145,38 +145,4 @@ public class CctvControlController {
|
|
|
return this.service.controlReset(id, req);
|
|
return this.service.controlReset(id, req);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
-// @ApiOperation(value = "CCTV PTZ 제어", response = CctvControlDto.CctvControlRes.class)
|
|
|
|
|
-// @PostMapping(value = "/ptz/{id}", produces = {"application/json; charset=utf8"})
|
|
|
|
|
-// public CctvControlDto.CctvControlRes controlPtz(
|
|
|
|
|
-// @ApiParam(name = "id", value = "제어기번호", example = "1", required = true)
|
|
|
|
|
-// @PathVariable("id") Long id,
|
|
|
|
|
-// @ApiParam(name = "req", value = "CCTV PTZ 제어 정보", example = "[tilt-up, start, 20, ADMIN]", required = true)
|
|
|
|
|
-// @RequestBody @Valid final CctvControlDto.CctvControlPtzReq req,
|
|
|
|
|
-// HttpServletRequest request) {
|
|
|
|
|
-// String userId = this.loginController.getSessionUserId(request);
|
|
|
|
|
-// log.info("UUID: {}", userId);
|
|
|
|
|
-// if (!userId.equals("")) {
|
|
|
|
|
-// req.setUserId(userId);
|
|
|
|
|
-// }
|
|
|
|
|
-// return this.service.controlPtz(id, req);
|
|
|
|
|
-// }
|
|
|
|
|
-//
|
|
|
|
|
-// @ApiOperation(value = "CCTV Preset 제어", response = CctvControlDto.CctvControlRes.class)
|
|
|
|
|
-// @PostMapping(value = "/preset/{id}", produces = {"application/json; charset=utf8"})
|
|
|
|
|
-// public CctvControlDto.CctvControlRes controlPreset(
|
|
|
|
|
-// @ApiParam(name = "id", value = "제어기번호", example = "1", required = true)
|
|
|
|
|
-// @PathVariable("id") Long id,
|
|
|
|
|
-// @ApiParam(name = "req", value = "CCTV Preset 제어 정보", example = "[preset, call, 1, 0, 0, ADMIN]", required = true)
|
|
|
|
|
-// @RequestBody @Valid final CctvControlDto.CctvControlPresetReq req,
|
|
|
|
|
-// HttpServletRequest request) {
|
|
|
|
|
-// String userId = this.loginController.getSessionUserId(request);
|
|
|
|
|
-// log.info("UUID: {}", userId);
|
|
|
|
|
-// if (!userId.equals("")) {
|
|
|
|
|
-// req.setUserId(userId);
|
|
|
|
|
-// }
|
|
|
|
|
-// return this.service.controlPreset(id, req);
|
|
|
|
|
-// }
|
|
|
|
|
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|