From 4b067b4db5c1f2a068d6e27cc138118810785e2d Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期三, 07 五月 2025 10:47:13 +0800 Subject: [PATCH] 1、创建命令生成器模块,实现部分命令数据生成,还需继续实现其他命令; 2、完善代码。 --- 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