|
@@ -2,6 +2,7 @@ package com.its.api.its.service.vms;
|
|
|
|
|
|
import com.its.api.its.model.dto.vms.VmsControlDto;
|
|
|
import com.its.api.its.repository.vms.TbVmsCtlrRepository;
|
|
|
+import com.its.api.xnetudp.protocol.CENTER_COMM_DEFINE;
|
|
|
import com.its.api.xnetudp.service.VmsServerRequestSender;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -71,4 +72,54 @@ public class VmsControlService {
|
|
|
}
|
|
|
return new VmsControlDto.VmsControlRes(9, "VMS 서버로 제어 명령 전송 중 알수 없는 오류가 발생 하였습니다.");
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * VMS 제어기 이미지 심볼 리로드
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public VmsControlDto.VmsControlRes controlNotifyImageSymbol() {
|
|
|
+ boolean isSendMsg = this.vmsServerRequestSender.controlNotify(CENTER_COMM_DEFINE.INT_OP_VMS_IMAGE_SYMBOL);
|
|
|
+ if (isSendMsg) {
|
|
|
+ return new VmsControlDto.VmsControlRes(0, "success");
|
|
|
+ }
|
|
|
+ return new VmsControlDto.VmsControlRes(9, "VMS 서버로 제어 명령 전송 중 알수 없는 오류가 발생 하였습니다.");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * VMS 제어기 이미지 트레픽 리로드
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public VmsControlDto.VmsControlRes controlNotifyImageTraffic() {
|
|
|
+ boolean isSendMsg = this.vmsServerRequestSender.controlNotify(CENTER_COMM_DEFINE.INT_OP_VMS_IMAGE_TRAFFIC);
|
|
|
+ if (isSendMsg) {
|
|
|
+ return new VmsControlDto.VmsControlRes(0, "success");
|
|
|
+ }
|
|
|
+ return new VmsControlDto.VmsControlRes(9, "VMS 서버로 제어 명령 전송 중 알수 없는 오류가 발생 하였습니다.");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * VMS 폼 리로드
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public VmsControlDto.VmsControlRes controlNotifyVmsForm() {
|
|
|
+ boolean isSendMsg = this.vmsServerRequestSender.controlNotify(CENTER_COMM_DEFINE.INT_OP_VMS_FORM_UPDATE);
|
|
|
+ if (isSendMsg) {
|
|
|
+ return new VmsControlDto.VmsControlRes(0, "success");
|
|
|
+ }
|
|
|
+ return new VmsControlDto.VmsControlRes(9, "VMS 서버로 제어 명령 전송 중 알수 없는 오류가 발생 하였습니다.");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * VMS IFSC 리로드
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public VmsControlDto.VmsControlRes controlNotifyVmsIfsc() {
|
|
|
+ boolean isSendMsg = this.vmsServerRequestSender.controlNotify(CENTER_COMM_DEFINE.INT_OP_VMS_IFSC_UPDATE);
|
|
|
+ if (isSendMsg) {
|
|
|
+ return new VmsControlDto.VmsControlRes(0, "success");
|
|
|
+ }
|
|
|
+ return new VmsControlDto.VmsControlRes(9, "VMS 서버로 제어 명령 전송 중 알수 없는 오류가 발생 하였습니다.");
|
|
|
+ }
|
|
|
+
|
|
|
}
|