【fix】修复客户端注册tcp模式无法选择问题

This commit is contained in:
macbookpro
2025-08-10 15:41:28 +08:00
parent 4e4dc0dc78
commit ae962c7393

View File

@@ -9,6 +9,7 @@ import org.framework.lazy.cloud.network.heartbeat.common.enums.ProtocolType;
import org.wu.framework.core.NormalUsedString;
import java.time.LocalDateTime;
/**
* describe 服务端配置信息
*
@@ -22,23 +23,19 @@ import java.time.LocalDateTime;
public class LazyNettyServerProperties {
/**
*
* 客户身份ID
*/
@Schema(description = "客户身份ID", name = "clientId", example = "")
private String clientId;
/**
*
* 状态(on_line、off_line)
*/
@Schema(description = "状态(on_line、off_line)", name = "connectStatus", example = "")
private NettyClientStatus connectStatus;
/**
*
* 创建时间
*/
@Schema(description = "创建时间", name = "createTime", example = "")
@@ -46,14 +43,12 @@ public class LazyNettyServerProperties {
/**
*
* 服务端host
*/
@Schema(description = "服务端host", name = "inetHost", example = "")
private String inetHost;
/**
*
* 服务端端口
*/
@Schema(description = "服务端端口", name = "inetPort", example = "")
@@ -61,7 +56,6 @@ public class LazyNettyServerProperties {
/**
*
* 类型配置、DB
*/
@Schema(description = "类型配置、DB", name = "type", example = "")
@@ -69,9 +63,10 @@ public class LazyNettyServerProperties {
/**
* 协议类型
* 默认tcp
*/
@Schema(description = "协议类型", name = "protocol_type", example = "")
private ProtocolType protocolType;
private ProtocolType protocolType = ProtocolType.TCP;
/**
* 令牌key
*/
@@ -84,7 +79,6 @@ public class LazyNettyServerProperties {
@Schema(description = "令牌密钥", name = "appSecret", example = "")
private String appSecret;
/**
*
* 更新时间
*/
@Schema(description = "更新时间", name = "updateTime", example = "")