From 4109495b9c51a4bbd8b0a7c3c69093909d2e33e1 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期一, 07 四月 2025 18:55:05 +0800
Subject: [PATCH] 修改接口bug

---
 ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPCloseLinkInform.java |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPCloseLinkInform.java b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPCloseLinkInform.java
index 712f573..6c39e83 100644
--- a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPCloseLinkInform.java
+++ b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPCloseLinkInform.java
@@ -1,6 +1,6 @@
 package com.ruoyi.dataInterchange.model;
 
-import com.fasterxml.jackson.annotation.JsonProperty;
+import io.netty.buffer.ByteBuf;
 import lombok.Data;
 
 /**
@@ -15,6 +15,14 @@
 	 * 0x00:从链路断开
 	 * 0x01:其他
 	 */
-	@JsonProperty("REASON_CODE")
-	private String reasonCode;
+	private int reasonCode;
+	
+	
+	/**
+	 * 解析报文
+	 */
+	public UPCloseLinkInform decode(ByteBuf byteBuf) {
+		this.reasonCode = byteBuf.readByte();
+		return this;
+	}
 }

--
Gitblit v1.7.1