[add] 添加namespace管理

This commit is contained in:
wujiawei
2025-06-14 19:28:16 +08:00
parent 58026465ad
commit 30403d1da8
9 changed files with 47 additions and 4 deletions

View File

@@ -90,4 +90,9 @@ public class LazyNettyClientVirtualRouteQueryListCommand {
*/
@Schema(description ="是否删除",name ="isDeleted",example = "")
private Boolean isDeleted=false;
/**
* 命名空间
*/
@Schema(description ="命名空间",name ="target_namespace",example = "")
private String targetNamespace;
}

View File

@@ -83,5 +83,10 @@ public class LazyNettyClientVirtualRouteQueryOneCommand {
*/
@Schema(description ="客户端虚拟路由端口默认ALL",name ="virtualPort",example = "")
private String virtualPort;
/**
* 命名空间
*/
@Schema(description ="命名空间",name ="target_namespace",example = "")
private String targetNamespace;
}

View File

@@ -89,5 +89,10 @@ public class LazyNettyClientVirtualRouteRemoveCommand {
*/
@Schema(description ="客户端虚拟路由端口默认ALL",name ="virtualPort",example = "")
private String virtualPort;
/**
* 命名空间
*/
@Schema(description ="命名空间",name ="target_namespace",example = "")
private String targetNamespace;
}

View File

@@ -90,4 +90,9 @@ public class LazyNettyClientVirtualRouteStoryCommand {
@Schema(description ="客户端虚拟路由端口默认ALL",name ="virtualPort",example = "")
private String virtualPort;
/**
* 命名空间
*/
@Schema(description ="命名空间",name ="target_namespace",example = "")
private String targetNamespace;
}

View File

@@ -89,5 +89,10 @@ public class LazyNettyClientVirtualRouteUpdateCommand {
*/
@Schema(description ="客户端虚拟路由端口默认ALL",name ="virtualPort",example = "")
private String virtualPort;
/**
* 命名空间
*/
@Schema(description ="命名空间",name ="target_namespace",example = "")
private String targetNamespace;
}

View File

@@ -89,5 +89,10 @@ public class LazyNettyClientVirtualRouteDTO {
*/
@Schema(description ="客户端虚拟路由端口默认ALL",name ="virtualPort",example = "")
private String virtualPort;
/**
* 命名空间
*/
@Schema(description ="命名空间",name ="target_namespace",example = "")
private String targetNamespace;
}

View File

@@ -3,6 +3,8 @@ 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.wu.framework.lazy.orm.core.stereotype.LazyTableFieldUnique;
import java.time.LocalDateTime;
import java.lang.String;
import java.lang.Long;
@@ -89,5 +91,10 @@ public class LazyNettyClientVirtualRoute {
*/
@Schema(description ="客户端虚拟路由端口默认ALL",name ="virtualPort",example = "")
private String virtualPort;
/**
* 命名空间
*/
@Schema(description ="命名空间",name ="target_namespace",example = "")
private String targetNamespace;
}

View File

@@ -28,13 +28,19 @@ import java.lang.Boolean;
@Schema(title = "lazy_netty_client_route",description = "客户端代理路由规则")
public class LazyNettyClientRouteDO {
/**
* 命名空间
*/
@Schema(description ="命名空间",name ="namespace",example = "")
@LazyTableFieldUnique(name="namespace",comment="命名空间",columnType="varchar(25)",defaultValue = "DEFAULT")
private String namespace;
/**
*
* 客户端ID
*/
@Schema(description ="客户端ID",name ="clientId",example = "")
@LazyTableField(name="client_id",comment="客户端ID",notNull=true,columnType="varchar(255)")
@LazyTableFieldUnique(name="client_id",comment="客户端ID",notNull=true,columnType="varchar(255)")
private String clientId;
/**

View File

@@ -111,8 +111,8 @@ public class LazyNettyClientVirtualRouteDO {
/**
* 命名空间
*/
@Schema(description ="命名空间",name ="namespace",example = "")
@LazyTableFieldUnique(name="namespace",comment="命名空间",columnType="varchar(25)",defaultValue = "DEFAULT")
private String namespace;
@Schema(description ="命名空间",name ="target_namespace",example = "")
@LazyTableFieldUnique(name="target_namespace",comment="命名空间",columnType="varchar(25)",defaultValue = "DEFAULT")
private String targetNamespace;
}