| | |
| | | package com.ruoyi.dataInterchange.model; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | 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 |
| | | */ |
| | |
| | | /** |
| | | * 校验码 |
| | | */ |
| | | @JsonProperty("VERIFY_CODE") |
| | | private String verifyCode; |
| | | private int verifyCode; |
| | | |
| | | public byte[] encode() { |
| | | ByteBuf byteBuf = Unpooled.buffer(1); |
| | | byteBuf.writeInt(this.getVerifyCode()); |
| | | byte[] bytes = ByteBufUtil.getBytes(byteBuf); |
| | | byteBuf.release(); |
| | | return bytes; |
| | | } |
| | | } |