package com.ruoyi.dataInterchange.model;
|
|
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBufUtil;
|
import io.netty.buffer.Unpooled;
|
import lombok.Data;
|
|
/**
|
* 从链路登录请求
|
*
|
* @author zhibing.pu
|
* @Date 2025/2/24 11:05
|
*/
|
@Data
|
public class DOWNConnectReq {
|
/**
|
* 校验码
|
*/
|
private int verifyCode;
|
|
public byte[] encode() {
|
ByteBuf byteBuf = Unpooled.buffer(1);
|
byteBuf.writeInt(this.getVerifyCode());
|
byte[] bytes = ByteBufUtil.getBytes(byteBuf);
|
byteBuf.release();
|
return bytes;
|
}
|
}
|