| | |
| | | package com.ruoyi.dataInterchange.model; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import com.ruoyi.dataInterchange.util.jtt809.common.Jtt809Util; |
| | | import io.netty.buffer.ByteBuf; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 住链路注销请求 |
| | | * 主链路注销请求 |
| | | * |
| | | * @author zhibing.pu |
| | | * @Date 2025/2/24 10:53 |
| | | */ |
| | |
| | | /** |
| | | * 用户名 |
| | | */ |
| | | @JsonProperty("USERID") |
| | | private String userId; |
| | | private int userId; |
| | | /** |
| | | * 密码 |
| | | */ |
| | | @JsonProperty("PASSWORD") |
| | | private String password; |
| | | |
| | | |
| | | /** |
| | | * 解析报文 |
| | | */ |
| | | public UPDisconnectReq decode(ByteBuf byteBuf) { |
| | | this.userId = byteBuf.readInt(); |
| | | this.password = Jtt809Util.readGBKString(byteBuf, 12); |
| | | return this; |
| | | } |
| | | } |