|
@@ -23,10 +23,21 @@ public class VmsControlController {
|
|
|
|
|
|
private final VmsControlService service;
|
|
|
|
|
|
+ @ApiOperation(value = "VMS 제어기 전광판 ON/OFF 제어", response = VmsControlDto.VmsControlRes.class)
|
|
|
+ @PostMapping(value = "/power/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
+ public VmsControlDto.VmsControlRes controlPower(
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
+ @PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
+ @ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
+ @RequestBody @Valid final VmsControlDto.VmsControlPanlOnOfReq req,
|
|
|
+ HttpServletRequest request) {
|
|
|
+ return this.service.controlPanlOnOff(ctlrNmbr, req);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "VMS 제어기 리셋", response = VmsControlDto.VmsControlRes.class)
|
|
|
@PostMapping(value = "/reset/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
public VmsControlDto.VmsControlRes controlReset(
|
|
|
- @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "10005", required = true)
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
@PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
@ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
@RequestBody @Valid final VmsControlDto.VmsControlResetReq req,
|
|
@@ -34,21 +45,43 @@ public class VmsControlController {
|
|
|
return this.service.controlReset(ctlrNmbr, req);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "VMS 제어기 전광판 ON/OFF 제어", response = VmsControlDto.VmsControlRes.class)
|
|
|
- @PostMapping(value = "/power/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
- public VmsControlDto.VmsControlRes controlPower(
|
|
|
- @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "10005", required = true)
|
|
|
+ @ApiOperation(value = "VMS 통신재시도 횟수 설정", response = VmsControlDto.VmsControlRes.class)
|
|
|
+ @PostMapping(value = "/comm-retry-count/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
+ public VmsControlDto.VmsControlRes controlCommRetryCount(
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
@PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
@ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
- @RequestBody @Valid final VmsControlDto.VmsControlPanlOnOfReq req,
|
|
|
+ @RequestBody @Valid final VmsControlDto.VmsControlRetryCountReq req,
|
|
|
HttpServletRequest request) {
|
|
|
- return this.service.controlPanlOnOff(ctlrNmbr, req);
|
|
|
+ return this.service.controlCommRetryCount(ctlrNmbr, req);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "VMS 제어기 시간동기", response = VmsControlDto.VmsControlRes.class)
|
|
|
+ @PostMapping(value = "/time-sync/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
+ public VmsControlDto.VmsControlRes controlTimeSync(
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
+ @PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
+ @ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
+ @RequestBody @Valid final VmsControlDto.VmsControlTimeSyncReq req,
|
|
|
+ HttpServletRequest request) {
|
|
|
+ return this.service.controlTimeSync(ctlrNmbr, req);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "VMS 점멸시간 주기 설정", response = VmsControlDto.VmsControlRes.class)
|
|
|
+ @PostMapping(value = "/blink-cycle/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
+ public VmsControlDto.VmsControlRes controlBlinkCycle(
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
+ @PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
+ @ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
+ @RequestBody @Valid final VmsControlDto.VmsControlBlinkCycleReq req,
|
|
|
+ HttpServletRequest request) {
|
|
|
+ return this.service.controlBlinkCycle(ctlrNmbr, req);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "VMS 제어기 밝기 제어", response = VmsControlDto.VmsControlRes.class)
|
|
|
@PostMapping(value = "/bright/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
public VmsControlDto.VmsControlRes controlBright(
|
|
|
- @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "10005", required = true)
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
@PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
@ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
@RequestBody @Valid final VmsControlDto.VmsControlBrightReq req,
|
|
@@ -59,17 +92,18 @@ public class VmsControlController {
|
|
|
@ApiOperation(value = "VMS 제어기 함체 FAN 제어", response = VmsControlDto.VmsControlRes.class)
|
|
|
@PostMapping(value = "/fan/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
public VmsControlDto.VmsControlRes controlFan(
|
|
|
- @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "10005", required = true)
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
@PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
@ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
@RequestBody @Valid final VmsControlDto.VmsControlFanReq req,
|
|
|
HttpServletRequest request) {
|
|
|
return this.service.controlFan(ctlrNmbr, req);
|
|
|
}
|
|
|
+
|
|
|
@ApiOperation(value = "VMS 제어기 표출부 FAN 제어", response = VmsControlDto.VmsControlRes.class)
|
|
|
@PostMapping(value = "/fan2/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
public VmsControlDto.VmsControlRes controlFan2(
|
|
|
- @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "10005", required = true)
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
@PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
@ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
@RequestBody @Valid final VmsControlDto.VmsControlFanReq req,
|
|
@@ -80,7 +114,7 @@ public class VmsControlController {
|
|
|
@ApiOperation(value = "VMS 제어기 함체 HEATER 제어", response = VmsControlDto.VmsControlRes.class)
|
|
|
@PostMapping(value = "/heater/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
public VmsControlDto.VmsControlRes controlHeater(
|
|
|
- @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "10005", required = true)
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
@PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
@ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
@RequestBody @Valid final VmsControlDto.VmsControlHeaterReq req,
|
|
@@ -88,28 +122,50 @@ public class VmsControlController {
|
|
|
return this.service.controlHeater(ctlrNmbr, req);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "VMS 제어기 동작온도 설정", response = VmsControlDto.VmsControlRes.class)
|
|
|
- @PostMapping(value = "/run-temp/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
- public VmsControlDto.VmsControlRes controlRunTemp(
|
|
|
- @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "10005", required = true)
|
|
|
+ @ApiOperation(value = "VMS 화면 배색 제어", response = VmsControlDto.VmsControlRes.class)
|
|
|
+ @PostMapping(value = "/screen-rgb/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
+ public VmsControlDto.VmsControlRes controlScreenRgb(
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
@PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
@ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
- @RequestBody @Valid final VmsControlDto.VmsControlRunTempReq req,
|
|
|
+ @RequestBody @Valid final VmsControlDto.VmsControlRGBReq req,
|
|
|
HttpServletRequest request) {
|
|
|
- return this.service.controlRunTemp(ctlrNmbr, req);
|
|
|
+ return this.service.controlScreenRgb(ctlrNmbr, req);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "VMS 제어기 시간동기", response = VmsControlDto.VmsControlRes.class)
|
|
|
- @PostMapping(value = "/time-sync/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
- public VmsControlDto.VmsControlRes controlTimeSync(
|
|
|
- @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "10005", required = true)
|
|
|
+ @ApiOperation(value = "VMS 장애 모듈비율 제어", response = VmsControlDto.VmsControlRes.class)
|
|
|
+ @PostMapping(value = "/err-modl-rate/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
+ public VmsControlDto.VmsControlRes controlErrModlRate(
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
@PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
@ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
- @RequestBody @Valid final VmsControlDto.VmsControlTimeSyncReq req,
|
|
|
+ @RequestBody @Valid final VmsControlDto.VmsControlErrModlRateReq req,
|
|
|
HttpServletRequest request) {
|
|
|
- return this.service.controlTimeSync(ctlrNmbr, req);
|
|
|
+ return this.service.controlErrModlRate(ctlrNmbr, req);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "VMS 디폴트 시나리오 동작 시간", response = VmsControlDto.VmsControlRes.class)
|
|
|
+ @PostMapping(value = "/def-scnr-seconds/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
+ public VmsControlDto.VmsControlRes controlRunDefScnrSeconds(
|
|
|
+ @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
+ @PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
+ @ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
+ @RequestBody @Valid final VmsControlDto.VmsControlDefScnrRunReq req,
|
|
|
+ HttpServletRequest request) {
|
|
|
+ return this.service.controlRunDefScnrSeconds(ctlrNmbr, req);
|
|
|
}
|
|
|
|
|
|
+// @ApiOperation(value = "VMS 제어기 동작온도 설정", response = VmsControlDto.VmsControlRes.class)
|
|
|
+// @PostMapping(value = "/run-temp/{ctlrNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
+// public VmsControlDto.VmsControlRes controlRunTemp(
|
|
|
+// @ApiParam(name = "ctlrNmbr", value = "제어기번호", example = "1001", required = true)
|
|
|
+// @PathVariable("ctlrNmbr") Long ctlrNmbr,
|
|
|
+// @ApiParam(name = "req", value = "VMS 제어기 제어 정보", example = "[ADMIN]", required = true)
|
|
|
+// @RequestBody @Valid final VmsControlDto.VmsControlRunTempReq req,
|
|
|
+// HttpServletRequest request) {
|
|
|
+// return this.service.controlRunTemp(ctlrNmbr, req);
|
|
|
+// }
|
|
|
+
|
|
|
@ApiOperation(value = "VMS File 업로드", response = VmsControlDto.VmsControlRes.class)
|
|
|
@PostMapping(value = "/file-upload/{symbLibNmbr}", produces = {"application/json; charset=utf8"})
|
|
|
public VmsControlDto.VmsControlRes fileUpload(
|