Pu Zhibing
2025-03-07 297512bc22b179b7038d96a1ff033eceaed38c4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.ruoyi.dataInterchange.model;
 
import com.fasterxml.jackson.annotation.JsonProperty;
import io.netty.buffer.ByteBuf;
import lombok.Data;
 
/**
 * 从链路登录应答
 * @author zhibing.pu
 * @Date 2025/2/24 11:05
 */
@Data
public class DOWNConnectRsp {
    /**
     * 验证结果
     * 0x00:验证成功
     * 0x01:VERIFY_CODE错误
     * 0x02:资源紧张,稍后再连接(已经占用)
     * 0xFF:其他
     */
    private int verifyCode;
    
    
    
    /**
     * 解析报文
     */
    public DOWNConnectRsp decode(ByteBuf byteBuf) {
        this.verifyCode = byteBuf.readByte();
        return this;
    }
}