From c7c8554e2b9809bc90ac4a43fdaa39dfe16f4ab0 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期五, 09 五月 2025 14:09:32 +0800 Subject: [PATCH] “远程测控”功能返回数据中增加protocol和protocolVersion属性,以备前端做多协议兼容。 --- pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/CommandBackParam.java | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/CommandBackParam.java b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/CommandBackParam.java new file mode 100644 index 0000000..3029283 --- /dev/null +++ b/pipIrr-platform/pipIrr-common/src/main/java/com/dy/common/mw/protocol/CommandBackParam.java @@ -0,0 +1,41 @@ +package com.dy.common.mw.protocol; + +import java.io.Serializable; + +public class CommandBackParam implements Serializable{ + + public static final long serialVersionUID; + static { + serialVersionUID = 201606251456001L; + } + + //鍛戒护澶勭悊鏄惁鎴愬姛(鐩戞帶涓棿浠跺鐞嗗懡浠ゆ槸鍚︽垚鍔燂紝涓嶄唬琛ㄥ彂閫佸懡浠ょ粰Rtu鎴愬姛涓庡惁)锛� + private Boolean success ; + //鍛戒护澶勭悊鎯呭喌鐨勬秷鎭� + private String message ; + + public String toString(){ + String s = "" ; + if(this.success != null){ + s += "success:" + this.success + "\n" ; + } + if(this.message != null){ + s += "message:" + this.message + "\n" ; + } + return s ; + } + @SuppressWarnings("unused") + public Boolean getSuccess() { + return success; + } + public void setSuccess(Boolean success) { + this.success = success; + } + public String getMessage() { + return message; + } + public void setMessage(String message) { + this.message = message; + } + +} -- Gitblit v1.8.0