[fix] 修改枚举问题

This commit is contained in:
wujiawei 2025-06-07 00:36:20 +08:00
parent 0505d6d201
commit 903ba88787
21 changed files with 116 additions and 63 deletions

View File

@ -7,6 +7,7 @@ import org.framework.lazy.cloud.network.heartbeat.server.netty.flow.proxy.Server
import org.framework.lazy.cloud.network.heartbeat.server.netty.flow.ServerHandlerOutFlowHandler;
import org.framework.lazy.cloud.network.heartbeat.server.netty.flow.proxy.ServerHandlerOutProxyFlowHandler;
import org.framework.lazy.cloud.network.heartbeat.server.properties.ServerNodeProperties;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyProxyFlowApplication;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyVisitorPortFlowApplication;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
@ -69,8 +70,8 @@ public class ServerFlowConfiguration {
*/
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
@Bean
public ServerHandlerInProxyFlowHandler serverHandlerInProxyFlowHandler(LazyVisitorPortFlowApplication lazyVisitorPortFlowApplication, ServerNodeProperties serverNodeProperties) {
return new ServerHandlerInProxyFlowHandler(lazyVisitorPortFlowApplication, serverNodeProperties);
public ServerHandlerInProxyFlowHandler serverHandlerInProxyFlowHandler(LazyProxyFlowApplication lazyProxyFlowApplication,ServerNodeProperties serverNodeProperties) {
return new ServerHandlerInProxyFlowHandler(lazyProxyFlowApplication,serverNodeProperties);
}
/**
@ -80,8 +81,8 @@ public class ServerFlowConfiguration {
*/
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
@Bean
public ServerHandlerOutProxyFlowHandler serverHandlerOutProxyFlowHandler(LazyVisitorPortFlowApplication lazyVisitorPortFlowApplication, ServerNodeProperties serverNodeProperties) {
return new ServerHandlerOutProxyFlowHandler(lazyVisitorPortFlowApplication,serverNodeProperties);
public ServerHandlerOutProxyFlowHandler serverHandlerOutProxyFlowHandler(LazyProxyFlowApplication lazyProxyFlowApplication, ServerNodeProperties serverNodeProperties) {
return new ServerHandlerOutProxyFlowHandler(lazyProxyFlowApplication,serverNodeProperties);
}

View File

@ -8,19 +8,17 @@ import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolTy
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import org.framework.lazy.cloud.network.heartbeat.server.properties.ServerNodeProperties;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyProxyFlowApplication;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyVisitorPortFlowApplication;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.proxy.flow.LazyProxyFlowStoryCommand;
/**
* 进口流量处理
*/
public class ServerHandlerInProxyFlowHandler extends AbstractHandleChannelProxyFlowAdvanced {
private final LazyVisitorPortFlowApplication lazyVisitorPortFlowApplication;
private final LazyProxyFlowApplication lazyProxyFlowApplication;
private final ServerNodeProperties serverNodeProperties;
public ServerHandlerInProxyFlowHandler(LazyVisitorPortFlowApplication lazyVisitorPortFlowApplication, LazyProxyFlowApplication lazyProxyFlowApplication, ServerNodeProperties serverNodeProperties) {
this.lazyVisitorPortFlowApplication = lazyVisitorPortFlowApplication;
public ServerHandlerInProxyFlowHandler(LazyProxyFlowApplication lazyProxyFlowApplication, ServerNodeProperties serverNodeProperties) {
this.lazyProxyFlowApplication = lazyProxyFlowApplication;
this.serverNodeProperties = serverNodeProperties;
}

View File

@ -5,22 +5,27 @@ import org.framework.lazy.cloud.network.heartbeat.common.advanced.flow.proxy.Abs
import org.framework.lazy.cloud.network.heartbeat.common.advanced.flow.ChannelFlow;
import org.framework.lazy.cloud.network.heartbeat.common.advanced.flow.proxy.ChannelProxyFlow;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelFlowEnum;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import org.framework.lazy.cloud.network.heartbeat.server.properties.ServerNodeProperties;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyProxyFlowApplication;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyVisitorPortFlowApplication;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.proxy.flow.LazyProxyFlowStoryCommand;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.visitor.flow.LazyVisitorPortFlowStoryCommand;
/**
* 出口流量处理
*/
public class ServerHandlerOutProxyFlowHandler extends AbstractHandleChannelProxyFlowAdvanced {
private final LazyVisitorPortFlowApplication lazyVisitorPortFlowApplication;
private final LazyProxyFlowApplication lazyProxyFlowApplication;
private final ServerNodeProperties serverNodeProperties;
public ServerHandlerOutProxyFlowHandler(LazyVisitorPortFlowApplication lazyVisitorPortFlowApplication, ServerNodeProperties serverNodeProperties) {
this.lazyVisitorPortFlowApplication = lazyVisitorPortFlowApplication;
public ServerHandlerOutProxyFlowHandler(LazyProxyFlowApplication lazyProxyFlowApplication, ServerNodeProperties serverNodeProperties) {
this.lazyProxyFlowApplication = lazyProxyFlowApplication;
this.serverNodeProperties = serverNodeProperties;
}
/**
* 处理是否支持这种类型
*
@ -45,16 +50,24 @@ public class ServerHandlerOutProxyFlowHandler extends AbstractHandleChannelProxy
@Override
protected void doHandler(Channel channel, ChannelProxyFlow channelProxyFlow) {
String clientId = channelProxyFlow.clientId();
String ip = channelProxyFlow.ip();
Integer port = channelProxyFlow.port();
Integer flow = channelProxyFlow.flow();
ChannelProtocolType channelProtocolType = channelProxyFlow.channelProtocolType();
ChannelProxyType channelProxyType = channelProxyFlow.channelProxyType();
// 出口流量处理
LazyVisitorPortFlowStoryCommand visitorPortFlow = new LazyVisitorPortFlowStoryCommand();
visitorPortFlow.setOutFlow(flow);
visitorPortFlow.setClientId(clientId);
visitorPortFlow.setVisitorPort(port);
visitorPortFlow.setIsDeleted(false);
lazyVisitorPortFlowApplication.flowIncreaseStory(visitorPortFlow);
LazyProxyFlowStoryCommand lazyProxyFlowStoryCommand = new LazyProxyFlowStoryCommand();
lazyProxyFlowStoryCommand.setOutFlow(flow);
lazyProxyFlowStoryCommand.setClientId(clientId);
lazyProxyFlowStoryCommand.setIp(ip);
lazyProxyFlowStoryCommand.setPort(port);
lazyProxyFlowStoryCommand.setProtocolType(channelProtocolType);
lazyProxyFlowStoryCommand.setProxyType(channelProxyType);
lazyProxyFlowStoryCommand.setIsDeleted(false);
lazyProxyFlowApplication.flowIncreaseStory(lazyProxyFlowStoryCommand);
}
}

View File

@ -1,13 +1,12 @@
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.proxy.flow;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import java.lang.String;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.time.LocalDateTime;
import java.lang.Long;
import java.lang.Integer;
import java.lang.Boolean;
/**
* describe 代理流量
*
@ -82,14 +81,14 @@ public class LazyProxyFlowQueryListCommand {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -3,6 +3,9 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.application
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.lang.String;
import java.time.LocalDateTime;
import java.lang.Long;
@ -82,14 +85,14 @@ public class LazyProxyFlowQueryOneCommand {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -3,6 +3,9 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.application
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.lang.String;
import java.time.LocalDateTime;
import java.lang.Long;
@ -82,14 +85,14 @@ public class LazyProxyFlowRemoveCommand {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -3,6 +3,9 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.application
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.lang.String;
import java.time.LocalDateTime;
import java.lang.Long;
@ -82,14 +85,14 @@ public class LazyProxyFlowStoryCommand {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -3,6 +3,9 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.application
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.lang.String;
import java.time.LocalDateTime;
import java.lang.Long;
@ -82,14 +85,14 @@ public class LazyProxyFlowUpdateCommand {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -3,6 +3,9 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.application
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.lang.String;
import java.time.LocalDateTime;
import java.lang.Long;
@ -89,14 +92,14 @@ public class LazyProxyPerDayFlowQueryListCommand {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -3,6 +3,9 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.application
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.lang.String;
import java.time.LocalDateTime;
import java.lang.Long;
@ -89,14 +92,14 @@ public class LazyProxyPerDayFlowQueryOneCommand {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -3,6 +3,9 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.application
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.lang.String;
import java.time.LocalDateTime;
import java.lang.Long;
@ -89,14 +92,14 @@ public class LazyProxyPerDayFlowRemoveCommand {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -3,6 +3,9 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.application
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.lang.String;
import java.time.LocalDateTime;
import java.lang.Long;
@ -89,14 +92,14 @@ public class LazyProxyPerDayFlowStoryCommand {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -1,13 +1,12 @@
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.proxy.per.day.flow;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import java.lang.String;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.time.LocalDateTime;
import java.lang.Long;
import java.lang.Integer;
import java.lang.Boolean;
/**
* describe 每日统计代理流量
*
@ -89,14 +88,14 @@ public class LazyProxyPerDayFlowUpdateCommand {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -3,6 +3,8 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.application
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import org.wu.framework.core.utils.ByteSizeUtil;
import java.time.LocalDateTime;
@ -73,13 +75,13 @@ public class LazyClientProxyFlowDTO {
* 协议类型
*/
@Schema(description = "协议类型", name = "protocolType", example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
* 代理类型
*/
@Schema(description = "代理类型", name = "proxyType", example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
* 服务端ID

View File

@ -3,6 +3,8 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.application
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import org.wu.framework.core.utils.ByteSizeUtil;
import java.time.LocalDateTime;
@ -72,13 +74,13 @@ public class LazyProxyFlowDTO {
* 协议类型
*/
@Schema(description = "协议类型", name = "protocolType", example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
* 代理类型
*/
@Schema(description = "代理类型", name = "proxyType", example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
* 服务端ID

View File

@ -3,6 +3,9 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.application
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.lang.String;
import java.time.LocalDateTime;
import java.lang.Long;
@ -89,14 +92,14 @@ public class LazyProxyPerDayFlowDTO {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -1,6 +1,8 @@
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.impl;
import jakarta.annotation.Resource;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import org.framework.lazy.cloud.network.heartbeat.server.properties.ServerNodeProperties;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyProxyFlowApplication;
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler.LazyProxyFlowDTOAssembler;
@ -73,8 +75,8 @@ public class LazyProxyFlowApplicationImpl implements LazyProxyFlowApplication {
public Result<LazyProxyFlow> flowIncreaseStory(LazyProxyFlowStoryCommand lazyProxyFlowStoryCommand) {
String clientId = lazyProxyFlowStoryCommand.getClientId();
String ip = lazyProxyFlowStoryCommand.getIp();
String protocolType = lazyProxyFlowStoryCommand.getProtocolType();
String proxyType = lazyProxyFlowStoryCommand.getProxyType();
ChannelProtocolType protocolType = lazyProxyFlowStoryCommand.getProtocolType();
ChannelProxyType proxyType = lazyProxyFlowStoryCommand.getProxyType();
Integer port = lazyProxyFlowStoryCommand.getPort();
String serverId = serverNodeProperties.getNodeId();
lazyProxyFlowStoryCommand.setServerId(serverId);

View File

@ -3,6 +3,9 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.mode
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.lang.String;
import java.time.LocalDateTime;
import java.lang.Long;
@ -82,14 +85,14 @@ public class LazyProxyFlow {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -3,6 +3,9 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.mode
import lombok.Data;
import lombok.experimental.Accessors;
import io.swagger.v3.oas.annotations.media.Schema;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import java.lang.String;
import java.time.LocalDateTime;
import java.lang.Long;
@ -89,14 +92,14 @@ public class LazyProxyPerDayFlow {
* 协议类型
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
* 代理类型
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -2,6 +2,8 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastruct
import lombok.Data;
import lombok.experimental.Accessors;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import org.wu.framework.lazy.orm.core.stereotype.LazyTableIndex;
import org.wu.framework.core.stereotype.LayerField;
import org.wu.framework.core.stereotype.LayerField.LayerFieldType;
@ -100,7 +102,7 @@ public class LazyProxyFlowDO {
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
@LazyTableField(name="protocol_type",comment="协议类型",columnType="varchar(255)")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
@ -108,7 +110,7 @@ public class LazyProxyFlowDO {
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
@LazyTableField(name="proxy_type",comment="代理类型",columnType="varchar(255)")
private String proxyType;
private ChannelProxyType proxyType;
/**
*

View File

@ -2,6 +2,8 @@ package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastruct
import lombok.Data;
import lombok.experimental.Accessors;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProtocolType;
import org.framework.lazy.cloud.network.heartbeat.common.enums.ChannelProxyType;
import org.wu.framework.lazy.orm.core.stereotype.LazyTableIndex;
import org.wu.framework.core.stereotype.LayerField;
import org.wu.framework.core.stereotype.LayerField.LayerFieldType;
@ -108,7 +110,7 @@ public class LazyProxyPerDayFlowDO {
*/
@Schema(description ="协议类型",name ="protocolType",example = "")
@LazyTableField(name="protocol_type",comment="协议类型",columnType="varchar(255)")
private String protocolType;
private ChannelProtocolType protocolType;
/**
*
@ -116,7 +118,7 @@ public class LazyProxyPerDayFlowDO {
*/
@Schema(description ="代理类型",name ="proxyType",example = "")
@LazyTableField(name="proxy_type",comment="代理类型",columnType="varchar(255)")
private String proxyType;
private ChannelProxyType proxyType;
/**
*