mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-06 13:27:55 +08:00
【fix】 添加服务端、客户端路由管理接口
This commit is contained in:
parent
269a0f2ba2
commit
3f7f10bcd5
@ -1,21 +1,21 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application;
|
||||
|
||||
import org.wu.framework.web.response.Result;
|
||||
import org.wu.framework.web.response.ResultFactory;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.dto.LazyNettyClientRouteDTO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyClientRouteDTO;
|
||||
import java.util.List;
|
||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
/**
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyApplication
|
||||
**/
|
||||
|
||||
@ -29,7 +29,7 @@ public interface LazyNettyClientRouteApplication {
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则新增后领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyClientRoute> story(LazyNettyClientRouteStoryCommand lazyNettyClientRouteStoryCommand);
|
||||
@ -41,7 +41,7 @@ public interface LazyNettyClientRouteApplication {
|
||||
* @return {@link Result<List<LazyNettyClientRoute>>} 客户端代理路由规则新增后领域对象集合
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<List<LazyNettyClientRoute>> batchStory(List<LazyNettyClientRouteStoryCommand> lazyNettyClientRouteStoryCommandList);
|
||||
@ -53,7 +53,7 @@ public interface LazyNettyClientRouteApplication {
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyClientRoute> updateOne(LazyNettyClientRouteUpdateCommand lazyNettyClientRouteUpdateCommand);
|
||||
@ -65,7 +65,7 @@ public interface LazyNettyClientRouteApplication {
|
||||
* @return {@link Result<LazyNettyClientRouteDTO>} 客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyClientRouteDTO> findOne(LazyNettyClientRouteQueryOneCommand lazyNettyClientRouteQueryOneCommand);
|
||||
@ -77,7 +77,7 @@ public interface LazyNettyClientRouteApplication {
|
||||
* @return {@link Result <List<LazyNettyClientRouteDTO>>} 客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result <List<LazyNettyClientRouteDTO>> findList(LazyNettyClientRouteQueryListCommand lazyNettyClientRouteQueryListCommand);
|
||||
@ -89,7 +89,7 @@ public interface LazyNettyClientRouteApplication {
|
||||
* @return {@link Result <LazyPage<LazyNettyClientRouteDTO>>} 分页客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result <LazyPage<LazyNettyClientRouteDTO>> findPage(int size,int current,LazyNettyClientRouteQueryListCommand lazyNettyClientRouteQueryListCommand);
|
||||
@ -101,7 +101,7 @@ public interface LazyNettyClientRouteApplication {
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyClientRoute> remove(LazyNettyClientRouteRemoveCommand lazyNettyClientRouteRemoveCommand);
|
@ -1,21 +1,21 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application;
|
||||
|
||||
import org.wu.framework.web.response.Result;
|
||||
import org.wu.framework.web.response.ResultFactory;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.dto.LazyNettyServerRouteDTO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyServerRouteDTO;
|
||||
import java.util.List;
|
||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
/**
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyApplication
|
||||
**/
|
||||
|
||||
@ -29,7 +29,7 @@ public interface LazyNettyServerRouteApplication {
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由新增后领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyServerRoute> story(LazyNettyServerRouteStoryCommand lazyNettyServerRouteStoryCommand);
|
||||
@ -41,7 +41,7 @@ public interface LazyNettyServerRouteApplication {
|
||||
* @return {@link Result<List<LazyNettyServerRoute>>} 服务端路由新增后领域对象集合
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<List<LazyNettyServerRoute>> batchStory(List<LazyNettyServerRouteStoryCommand> lazyNettyServerRouteStoryCommandList);
|
||||
@ -53,7 +53,7 @@ public interface LazyNettyServerRouteApplication {
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyServerRoute> updateOne(LazyNettyServerRouteUpdateCommand lazyNettyServerRouteUpdateCommand);
|
||||
@ -65,7 +65,7 @@ public interface LazyNettyServerRouteApplication {
|
||||
* @return {@link Result<LazyNettyServerRouteDTO>} 服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyServerRouteDTO> findOne(LazyNettyServerRouteQueryOneCommand lazyNettyServerRouteQueryOneCommand);
|
||||
@ -77,7 +77,7 @@ public interface LazyNettyServerRouteApplication {
|
||||
* @return {@link Result <List<LazyNettyServerRouteDTO>>} 服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result <List<LazyNettyServerRouteDTO>> findList(LazyNettyServerRouteQueryListCommand lazyNettyServerRouteQueryListCommand);
|
||||
@ -89,7 +89,7 @@ public interface LazyNettyServerRouteApplication {
|
||||
* @return {@link Result <LazyPage<LazyNettyServerRouteDTO>>} 分页服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result <LazyPage<LazyNettyServerRouteDTO>> findPage(int size,int current,LazyNettyServerRouteQueryListCommand lazyNettyServerRouteQueryListCommand);
|
||||
@ -101,7 +101,7 @@ public interface LazyNettyServerRouteApplication {
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyServerRoute> remove(LazyNettyServerRouteRemoveCommand lazyNettyServerRouteRemoveCommand);
|
@ -1,19 +1,19 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.assembler;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler;
|
||||
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.dto.LazyNettyClientRouteDTO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyClientRouteDTO;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
import org.mapstruct.Mapper;
|
||||
/**
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyAssembler
|
||||
**/
|
||||
@Mapper
|
||||
@ -27,7 +27,7 @@ public interface LazyNettyClientRouteDTOAssembler {
|
||||
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyClientRouteDTOAssembler INSTANCE = Mappers.getMapper(LazyNettyClientRouteDTOAssembler.class);
|
||||
/**
|
||||
@ -37,7 +37,7 @@ public interface LazyNettyClientRouteDTOAssembler {
|
||||
* @return {@link LazyNettyClientRoute} 客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyClientRoute toLazyNettyClientRoute(LazyNettyClientRouteStoryCommand lazyNettyClientRouteStoryCommand);
|
||||
/**
|
||||
@ -47,7 +47,7 @@ public interface LazyNettyClientRouteDTOAssembler {
|
||||
* @return {@link LazyNettyClientRoute} 客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyClientRoute toLazyNettyClientRoute(LazyNettyClientRouteUpdateCommand lazyNettyClientRouteUpdateCommand);
|
||||
/**
|
||||
@ -57,7 +57,7 @@ public interface LazyNettyClientRouteDTOAssembler {
|
||||
* @return {@link LazyNettyClientRoute} 客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyClientRoute toLazyNettyClientRoute(LazyNettyClientRouteQueryOneCommand lazyNettyClientRouteQueryOneCommand);
|
||||
/**
|
||||
@ -67,7 +67,7 @@ public interface LazyNettyClientRouteDTOAssembler {
|
||||
* @return {@link LazyNettyClientRoute} 客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyClientRoute toLazyNettyClientRoute(LazyNettyClientRouteQueryListCommand lazyNettyClientRouteQueryListCommand);
|
||||
/**
|
||||
@ -77,7 +77,7 @@ public interface LazyNettyClientRouteDTOAssembler {
|
||||
* @return {@link LazyNettyClientRoute} 客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyClientRoute toLazyNettyClientRoute(LazyNettyClientRouteRemoveCommand lazyNettyClientRouteRemoveCommand);
|
||||
/**
|
||||
@ -87,7 +87,7 @@ public interface LazyNettyClientRouteDTOAssembler {
|
||||
* @return {@link LazyNettyClientRouteDTO} 客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyClientRouteDTO fromLazyNettyClientRoute(LazyNettyClientRoute lazyNettyClientRoute);
|
||||
}
|
@ -1,19 +1,19 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.assembler;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler;
|
||||
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.dto.LazyNettyServerRouteDTO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyServerRouteDTO;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
import org.mapstruct.Mapper;
|
||||
/**
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyAssembler
|
||||
**/
|
||||
@Mapper
|
||||
@ -27,7 +27,7 @@ public interface LazyNettyServerRouteDTOAssembler {
|
||||
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyServerRouteDTOAssembler INSTANCE = Mappers.getMapper(LazyNettyServerRouteDTOAssembler.class);
|
||||
/**
|
||||
@ -37,7 +37,7 @@ public interface LazyNettyServerRouteDTOAssembler {
|
||||
* @return {@link LazyNettyServerRoute} 服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyServerRoute toLazyNettyServerRoute(LazyNettyServerRouteStoryCommand lazyNettyServerRouteStoryCommand);
|
||||
/**
|
||||
@ -47,7 +47,7 @@ public interface LazyNettyServerRouteDTOAssembler {
|
||||
* @return {@link LazyNettyServerRoute} 服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyServerRoute toLazyNettyServerRoute(LazyNettyServerRouteUpdateCommand lazyNettyServerRouteUpdateCommand);
|
||||
/**
|
||||
@ -57,7 +57,7 @@ public interface LazyNettyServerRouteDTOAssembler {
|
||||
* @return {@link LazyNettyServerRoute} 服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyServerRoute toLazyNettyServerRoute(LazyNettyServerRouteQueryOneCommand lazyNettyServerRouteQueryOneCommand);
|
||||
/**
|
||||
@ -67,7 +67,7 @@ public interface LazyNettyServerRouteDTOAssembler {
|
||||
* @return {@link LazyNettyServerRoute} 服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyServerRoute toLazyNettyServerRoute(LazyNettyServerRouteQueryListCommand lazyNettyServerRouteQueryListCommand);
|
||||
/**
|
||||
@ -77,7 +77,7 @@ public interface LazyNettyServerRouteDTOAssembler {
|
||||
* @return {@link LazyNettyServerRoute} 服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyServerRoute toLazyNettyServerRoute(LazyNettyServerRouteRemoveCommand lazyNettyServerRouteRemoveCommand);
|
||||
/**
|
||||
@ -87,7 +87,7 @@ public interface LazyNettyServerRouteDTOAssembler {
|
||||
* @return {@link LazyNettyServerRouteDTO} 服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyServerRouteDTO fromLazyNettyServerRoute(LazyNettyServerRoute lazyNettyServerRoute);
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyQueryListCommand
|
||||
**/
|
||||
@Data
|
||||
@ -53,7 +53,7 @@ public class LazyNettyClientRouteQueryListCommand {
|
||||
* 是否删除
|
||||
*/
|
||||
@Schema(description ="是否删除",name ="isDeleted",example = "")
|
||||
private Boolean isDeleted;
|
||||
private Boolean isDeleted=false;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyQueryOneCommand
|
||||
**/
|
||||
@Data
|
||||
@ -53,7 +53,7 @@ public class LazyNettyClientRouteQueryOneCommand {
|
||||
* 是否删除
|
||||
*/
|
||||
@Schema(description ="是否删除",name ="isDeleted",example = "")
|
||||
private Boolean isDeleted;
|
||||
private Boolean isDeleted=false;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyRemoveCommand
|
||||
**/
|
||||
@Data
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyStoryCommand
|
||||
**/
|
||||
@Data
|
||||
@ -47,8 +47,6 @@ public class LazyNettyClientRouteStoryCommand {
|
||||
*/
|
||||
@Schema(description ="主键ID",name ="id",example = "")
|
||||
private Long id;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* 路由IP
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyUpdateCommand
|
||||
**/
|
||||
@Data
|
@ -0,0 +1,33 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.state;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyUpdateCommand;
|
||||
|
||||
/**
|
||||
* describe 客户端状态
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2023/12/27 03:46 下午
|
||||
* @see DefaultDDDLazyUpdateCommand
|
||||
**/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "lazy_netty_client_state_update_command", description = "客户端状态")
|
||||
public class LazyNettyClientStateUpdateDescribeCommand {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@Schema(description = "主键", name = "id", example = "")
|
||||
private Long id;
|
||||
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@Schema(description = "描述", name = "describe", example = "")
|
||||
private String describe;
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyQueryListCommand
|
||||
**/
|
||||
@Data
|
||||
@ -46,7 +46,7 @@ public class LazyNettyServerRouteQueryListCommand {
|
||||
* 是否删除
|
||||
*/
|
||||
@Schema(description ="是否删除",name ="isDeleted",example = "")
|
||||
private Boolean isDeleted;
|
||||
private Boolean isDeleted=false;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyQueryOneCommand
|
||||
**/
|
||||
@Data
|
||||
@ -46,7 +46,7 @@ public class LazyNettyServerRouteQueryOneCommand {
|
||||
* 是否删除
|
||||
*/
|
||||
@Schema(description ="是否删除",name ="isDeleted",example = "")
|
||||
private Boolean isDeleted;
|
||||
private Boolean isDeleted=false;
|
||||
|
||||
/**
|
||||
*
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyRemoveCommand
|
||||
**/
|
||||
@Data
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyStoryCommand
|
||||
**/
|
||||
@Data
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyUpdateCommand
|
||||
**/
|
||||
@Data
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.dto;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDTO
|
||||
**/
|
||||
@Data
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.dto;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDTO
|
||||
**/
|
||||
@Data
|
@ -1,29 +1,29 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.impl;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.impl;
|
||||
|
||||
import org.wu.framework.database.lazy.web.plus.stereotype.LazyApplication;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.LazyNettyClientRouteApplication;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyNettyClientRouteApplication;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.wu.framework.web.response.Result;
|
||||
import org.wu.framework.web.response.ResultFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.assembler.LazyNettyClientRouteDTOAssembler;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.dto.LazyNettyClientRouteDTO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler.LazyNettyClientRouteDTOAssembler;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyClientRouteDTO;
|
||||
import java.util.stream.Collectors;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.client.route.LazyNettyClientRouteRepository;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route.LazyNettyClientRouteRepository;
|
||||
import java.util.List;
|
||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
/**
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyApplicationImpl
|
||||
**/
|
||||
@LazyApplication
|
||||
@ -38,7 +38,7 @@ public class LazyNettyClientRouteApplicationImpl implements LazyNettyClientRoute
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则新增后领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -53,7 +53,7 @@ public class LazyNettyClientRouteApplicationImpl implements LazyNettyClientRoute
|
||||
* @return {@link Result<List<LazyNettyClientRoute>>} 客户端代理路由规则新增后领域对象集合
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -68,7 +68,7 @@ public class LazyNettyClientRouteApplicationImpl implements LazyNettyClientRoute
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -84,7 +84,7 @@ public class LazyNettyClientRouteApplicationImpl implements LazyNettyClientRoute
|
||||
* @return {@link Result<LazyNettyClientRouteDTO>} 客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -100,7 +100,7 @@ public class LazyNettyClientRouteApplicationImpl implements LazyNettyClientRoute
|
||||
* @return {@link Result<List<LazyNettyClientRouteDTO>>} 客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -116,7 +116,7 @@ public class LazyNettyClientRouteApplicationImpl implements LazyNettyClientRoute
|
||||
* @return {@link Result<LazyPage<LazyNettyClientRouteDTO>>} 分页客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -132,7 +132,7 @@ public class LazyNettyClientRouteApplicationImpl implements LazyNettyClientRoute
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
@ -99,7 +99,7 @@ public class LazyNettyClientStateApplicationImpl implements LazyNettyClientState
|
||||
LazyNettyClientState lazyNettyClientState = NettyClientStateDTOAssembler.INSTANCE.toNettyClientState(lazyNettyClientStateUpdateCommand);
|
||||
String serverId = serverNodeProperties.getNodeId();
|
||||
lazyNettyClientState.setServerId(serverId);
|
||||
return lazyNettyClientStateRepository.story(lazyNettyClientState);
|
||||
return lazyNettyClientStateRepository.updateOne(lazyNettyClientState);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1,29 +1,29 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.application.impl;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.impl;
|
||||
|
||||
import org.wu.framework.database.lazy.web.plus.stereotype.LazyApplication;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.LazyNettyServerRouteApplication;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyNettyServerRouteApplication;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.wu.framework.web.response.Result;
|
||||
import org.wu.framework.web.response.ResultFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.assembler.LazyNettyServerRouteDTOAssembler;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.dto.LazyNettyServerRouteDTO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler.LazyNettyServerRouteDTOAssembler;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyServerRouteDTO;
|
||||
import java.util.stream.Collectors;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.server.route.LazyNettyServerRouteRepository;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route.LazyNettyServerRouteRepository;
|
||||
import java.util.List;
|
||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
/**
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyApplicationImpl
|
||||
**/
|
||||
@LazyApplication
|
||||
@ -38,7 +38,7 @@ public class LazyNettyServerRouteApplicationImpl implements LazyNettyServerRoute
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由新增后领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -53,7 +53,7 @@ public class LazyNettyServerRouteApplicationImpl implements LazyNettyServerRoute
|
||||
* @return {@link Result<List<LazyNettyServerRoute>>} 服务端路由新增后领域对象集合
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -68,7 +68,7 @@ public class LazyNettyServerRouteApplicationImpl implements LazyNettyServerRoute
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -84,7 +84,7 @@ public class LazyNettyServerRouteApplicationImpl implements LazyNettyServerRoute
|
||||
* @return {@link Result<LazyNettyServerRouteDTO>} 服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -100,7 +100,7 @@ public class LazyNettyServerRouteApplicationImpl implements LazyNettyServerRoute
|
||||
* @return {@link Result<List<LazyNettyServerRouteDTO>>} 服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -116,7 +116,7 @@ public class LazyNettyServerRouteApplicationImpl implements LazyNettyServerRoute
|
||||
* @return {@link Result<LazyPage<LazyNettyServerRouteDTO>>} 分页服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -132,7 +132,7 @@ public class LazyNettyServerRouteApplicationImpl implements LazyNettyServerRoute
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.controller;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@ -9,21 +9,21 @@ import org.wu.framework.web.response.Result;
|
||||
import org.wu.framework.web.response.ResultFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.LazyNettyClientRouteApplication;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.dto.LazyNettyClientRouteDTO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.client.route.LazyNettyClientRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyNettyClientRouteApplication;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyClientRouteDTO;
|
||||
import java.util.List;
|
||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
/**
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyController
|
||||
**/
|
||||
@Tag(name = "客户端代理路由规则提供者")
|
||||
@ -40,7 +40,7 @@ public class LazyNettyClientRouteProvider {
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则新增后领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "新增客户端代理路由规则")
|
||||
@ -55,7 +55,7 @@ public class LazyNettyClientRouteProvider {
|
||||
* @return {@link Result<List<LazyNettyClientRoute>>} 客户端代理路由规则新增后领域对象集合
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "批量新增客户端代理路由规则")
|
||||
@ -70,7 +70,7 @@ public class LazyNettyClientRouteProvider {
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "更新客户端代理路由规则")
|
||||
@ -85,7 +85,7 @@ public class LazyNettyClientRouteProvider {
|
||||
* @return {@link Result<LazyNettyClientRouteDTO>} 客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "查询单个客户端代理路由规则")
|
||||
@ -100,7 +100,7 @@ public class LazyNettyClientRouteProvider {
|
||||
* @return {@link Result<List<LazyNettyClientRouteDTO>>} 客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "查询多个客户端代理路由规则")
|
||||
@ -115,7 +115,7 @@ public class LazyNettyClientRouteProvider {
|
||||
* @return {@link Result<LazyPage<LazyNettyClientRouteDTO>>} 分页客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "分页查询多个客户端代理路由规则")
|
||||
@ -131,7 +131,7 @@ public class LazyNettyClientRouteProvider {
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "删除客户端代理路由规则")
|
@ -77,6 +77,24 @@ public class LazyNettyClientStateProvider {
|
||||
return lazyNettyClientStateApplication.updateOne(lazyNettyClientStateUpdateCommand);
|
||||
}
|
||||
|
||||
/**
|
||||
* describe 更新客户端描述
|
||||
*
|
||||
* @param lazyNettyClientStateUpdateCommand 更新客户端状态
|
||||
* @return {@link Result< LazyNettyClientState >} 客户端状态领域对象
|
||||
* @author Jia wei Wu
|
||||
* @date 2023/12/27 03:46 下午
|
||||
**/
|
||||
|
||||
@Operation(summary = "更新客户端描述")
|
||||
@PutMapping("/updateDescribe")
|
||||
public Result<LazyNettyClientState> updateDescribe(@RequestBody LazyNettyClientStateUpdateDescribeCommand lazyNettyClientStateUpdateCommand) {
|
||||
LazyNettyClientStateUpdateCommand lazyNettyClientStateUpdateCommand1 = new LazyNettyClientStateUpdateCommand();
|
||||
lazyNettyClientStateUpdateCommand1.setId(lazyNettyClientStateUpdateCommand.getId());
|
||||
lazyNettyClientStateUpdateCommand1.setDescribe(lazyNettyClientStateUpdateCommand.getDescribe());
|
||||
return lazyNettyClientStateApplication.updateOne(lazyNettyClientStateUpdateCommand1);
|
||||
}
|
||||
|
||||
/**
|
||||
* describe 查询单个客户端状态
|
||||
*
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.controller;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@ -9,21 +9,21 @@ import org.wu.framework.web.response.Result;
|
||||
import org.wu.framework.web.response.ResultFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.LazyNettyServerRouteApplication;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.application.dto.LazyNettyServerRouteDTO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteRemoveCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteStoryCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteUpdateCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryListCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.netty.server.route.LazyNettyServerRouteQueryOneCommand;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyNettyServerRouteApplication;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyNettyServerRouteDTO;
|
||||
import java.util.List;
|
||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
/**
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyController
|
||||
**/
|
||||
@Tag(name = "服务端路由提供者")
|
||||
@ -40,7 +40,7 @@ public class LazyNettyServerRouteProvider {
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由新增后领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "新增服务端路由")
|
||||
@ -55,7 +55,7 @@ public class LazyNettyServerRouteProvider {
|
||||
* @return {@link Result<List<LazyNettyServerRoute>>} 服务端路由新增后领域对象集合
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "批量新增服务端路由")
|
||||
@ -70,7 +70,7 @@ public class LazyNettyServerRouteProvider {
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "更新服务端路由")
|
||||
@ -85,7 +85,7 @@ public class LazyNettyServerRouteProvider {
|
||||
* @return {@link Result<LazyNettyServerRouteDTO>} 服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "查询单个服务端路由")
|
||||
@ -100,7 +100,7 @@ public class LazyNettyServerRouteProvider {
|
||||
* @return {@link Result<List<LazyNettyServerRouteDTO>>} 服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "查询多个服务端路由")
|
||||
@ -115,7 +115,7 @@ public class LazyNettyServerRouteProvider {
|
||||
* @return {@link Result<LazyPage<LazyNettyServerRouteDTO>>} 分页服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "分页查询多个服务端路由")
|
||||
@ -131,7 +131,7 @@ public class LazyNettyServerRouteProvider {
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Operation(summary = "删除服务端路由")
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.client.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDomain
|
||||
**/
|
||||
@Data
|
@ -1,16 +1,16 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.client.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route;
|
||||
|
||||
import org.wu.framework.web.response.Result;
|
||||
import org.wu.framework.web.response.ResultFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import java.util.List;
|
||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
/**
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDomainRepository
|
||||
**/
|
||||
|
||||
@ -24,7 +24,7 @@ public interface LazyNettyClientRouteRepository {
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则新增后领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyClientRoute> story(LazyNettyClientRoute lazyNettyClientRoute);
|
||||
@ -36,7 +36,7 @@ public interface LazyNettyClientRouteRepository {
|
||||
* @return {@link Result<List<LazyNettyClientRoute>>} 客户端代理路由规则新增后领域对象集合
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<List<LazyNettyClientRoute>> batchStory(List<LazyNettyClientRoute> lazyNettyClientRouteList);
|
||||
@ -48,7 +48,7 @@ public interface LazyNettyClientRouteRepository {
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyClientRoute> findOne(LazyNettyClientRoute lazyNettyClientRoute);
|
||||
@ -60,7 +60,7 @@ public interface LazyNettyClientRouteRepository {
|
||||
* @return {@link Result<List<LazyNettyClientRoute>>} 客户端代理路由规则DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<List<LazyNettyClientRoute>> findList(LazyNettyClientRoute lazyNettyClientRoute);
|
||||
@ -74,7 +74,7 @@ public interface LazyNettyClientRouteRepository {
|
||||
* @return {@link Result<LazyPage<LazyNettyClientRoute>>} 分页客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyPage<LazyNettyClientRoute>> findPage(int size,int current,LazyNettyClientRoute lazyNettyClientRoute);
|
||||
@ -86,7 +86,7 @@ public interface LazyNettyClientRouteRepository {
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyClientRoute> remove(LazyNettyClientRoute lazyNettyClientRoute);
|
||||
@ -98,7 +98,7 @@ public interface LazyNettyClientRouteRepository {
|
||||
* @return {@link Result<Boolean>} 客户端代理路由规则是否存在
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<Boolean> exists(LazyNettyClientRoute lazyNettyClientRoute);
|
@ -28,6 +28,13 @@ public interface LazyNettyClientStateRepository {
|
||||
|
||||
Result<LazyNettyClientState> story(LazyNettyClientState lazyNettyClientState);
|
||||
|
||||
/**
|
||||
* 更新数据
|
||||
* @param lazyNettyClientState 客户端
|
||||
* @return
|
||||
*/
|
||||
Result<LazyNettyClientState> updateOne(LazyNettyClientState lazyNettyClientState);
|
||||
|
||||
/**
|
||||
* describe 批量新增客户端状态
|
||||
*
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.server.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -11,7 +11,7 @@ import java.lang.Boolean;
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDomain
|
||||
**/
|
||||
@Data
|
@ -1,16 +1,16 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.server.route;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route;
|
||||
|
||||
import org.wu.framework.web.response.Result;
|
||||
import org.wu.framework.web.response.ResultFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import java.util.List;
|
||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
/**
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDomainRepository
|
||||
**/
|
||||
|
||||
@ -24,7 +24,7 @@ public interface LazyNettyServerRouteRepository {
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由新增后领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyServerRoute> story(LazyNettyServerRoute lazyNettyServerRoute);
|
||||
@ -36,7 +36,7 @@ public interface LazyNettyServerRouteRepository {
|
||||
* @return {@link Result<List<LazyNettyServerRoute>>} 服务端路由新增后领域对象集合
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<List<LazyNettyServerRoute>> batchStory(List<LazyNettyServerRoute> lazyNettyServerRouteList);
|
||||
@ -48,7 +48,7 @@ public interface LazyNettyServerRouteRepository {
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyServerRoute> findOne(LazyNettyServerRoute lazyNettyServerRoute);
|
||||
@ -60,7 +60,7 @@ public interface LazyNettyServerRouteRepository {
|
||||
* @return {@link Result<List<LazyNettyServerRoute>>} 服务端路由DTO对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<List<LazyNettyServerRoute>> findList(LazyNettyServerRoute lazyNettyServerRoute);
|
||||
@ -74,7 +74,7 @@ public interface LazyNettyServerRouteRepository {
|
||||
* @return {@link Result<LazyPage<LazyNettyServerRoute>>} 分页服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyPage<LazyNettyServerRoute>> findPage(int size,int current,LazyNettyServerRoute lazyNettyServerRoute);
|
||||
@ -86,7 +86,7 @@ public interface LazyNettyServerRouteRepository {
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<LazyNettyServerRoute> remove(LazyNettyServerRoute lazyNettyServerRoute);
|
||||
@ -98,7 +98,7 @@ public interface LazyNettyServerRouteRepository {
|
||||
* @return {@link Result<Boolean>} 服务端路由是否存在
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
Result<Boolean> exists(LazyNettyServerRoute lazyNettyServerRoute);
|
@ -1,14 +1,14 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.converter;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.converter;
|
||||
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.entity.LazyNettyClientRouteDO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity.LazyNettyClientRouteDO;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
import org.mapstruct.Mapper;
|
||||
/**
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureConverter
|
||||
**/
|
||||
@Mapper
|
||||
@ -22,7 +22,7 @@ public interface LazyNettyClientRouteConverter {
|
||||
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyClientRouteConverter INSTANCE = Mappers.getMapper(LazyNettyClientRouteConverter.class);
|
||||
/**
|
||||
@ -32,7 +32,7 @@ public interface LazyNettyClientRouteConverter {
|
||||
* @return {@link LazyNettyClientRoute} 客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyClientRoute toLazyNettyClientRoute(LazyNettyClientRouteDO lazyNettyClientRouteDO);
|
||||
/**
|
||||
@ -42,7 +42,7 @@ public interface LazyNettyClientRouteConverter {
|
||||
* @return {@link LazyNettyClientRouteDO} 客户端代理路由规则实体对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyClientRouteDO fromLazyNettyClientRoute(LazyNettyClientRoute lazyNettyClientRoute);
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.converter;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.converter;
|
||||
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.entity.LazyNettyServerRouteDO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity.LazyNettyServerRouteDO;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
import org.mapstruct.Mapper;
|
||||
/**
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureConverter
|
||||
**/
|
||||
@Mapper
|
||||
@ -22,7 +22,7 @@ public interface LazyNettyServerRouteConverter {
|
||||
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyServerRouteConverter INSTANCE = Mappers.getMapper(LazyNettyServerRouteConverter.class);
|
||||
/**
|
||||
@ -32,7 +32,7 @@ public interface LazyNettyServerRouteConverter {
|
||||
* @return {@link LazyNettyServerRoute} 服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyServerRoute toLazyNettyServerRoute(LazyNettyServerRouteDO lazyNettyServerRouteDO);
|
||||
/**
|
||||
@ -42,7 +42,7 @@ public interface LazyNettyServerRouteConverter {
|
||||
* @return {@link LazyNettyServerRouteDO} 服务端路由实体对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
LazyNettyServerRouteDO fromLazyNettyServerRoute(LazyNettyServerRoute lazyNettyServerRoute);
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.entity;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -19,7 +19,7 @@ import java.lang.Boolean;
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureEntity
|
||||
**/
|
||||
@Data
|
@ -1,4 +1,4 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.entity;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
@ -19,7 +19,7 @@ import java.lang.Boolean;
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureEntity
|
||||
**/
|
||||
@Data
|
@ -1,13 +1,13 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.jpa.lazy;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.jpa.lazy;
|
||||
|
||||
import org.wu.framework.lazy.orm.database.jpa.repository.LazyJpaRepository;
|
||||
import org.wu.framework.lazy.orm.database.jpa.repository.annotation.*;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.entity.LazyNettyClientRouteDO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity.LazyNettyClientRouteDO;
|
||||
/**
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureLazyJpa
|
||||
**/
|
||||
@LazyRepository
|
@ -1,13 +1,13 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.jpa.lazy;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.jpa.lazy;
|
||||
|
||||
import org.wu.framework.lazy.orm.database.jpa.repository.LazyJpaRepository;
|
||||
import org.wu.framework.lazy.orm.database.jpa.repository.annotation.*;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.entity.LazyNettyServerRouteDO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity.LazyNettyServerRouteDO;
|
||||
/**
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureLazyJpa
|
||||
**/
|
||||
@LazyRepository
|
@ -1,10 +1,10 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.mapper;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.mapper;
|
||||
|
||||
/**
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureMapper
|
||||
**/
|
||||
|
@ -1,10 +1,10 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.mapper;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.mapper;
|
||||
|
||||
/**
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureMapper
|
||||
**/
|
||||
|
@ -1,9 +1,9 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.persistence;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.persistence;
|
||||
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.entity.LazyNettyClientRouteDO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.converter.LazyNettyClientRouteConverter;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.mapper.LazyNettyClientRouteMapper;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.client.route.LazyNettyClientRouteRepository;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity.LazyNettyClientRouteDO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.converter.LazyNettyClientRouteConverter;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.mapper.LazyNettyClientRouteMapper;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route.LazyNettyClientRouteRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@ -12,7 +12,7 @@ import org.wu.framework.lazy.orm.database.lambda.stream.wrapper.LazyWrappers;
|
||||
import org.wu.framework.web.response.Result;
|
||||
import org.wu.framework.web.response.ResultFactory;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.client.route.LazyNettyClientRoute;
|
||||
import org.wu.framework.lazy.orm.database.lambda.stream.lambda.LazyLambdaStream;
|
||||
import java.util.List;
|
||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
@ -20,7 +20,7 @@ import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
* describe 客户端代理路由规则
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructurePersistence
|
||||
**/
|
||||
@Repository
|
||||
@ -36,7 +36,7 @@ public class LazyNettyClientRouteRepositoryImpl implements LazyNettyClientRout
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则新增后领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -53,7 +53,7 @@ public class LazyNettyClientRouteRepositoryImpl implements LazyNettyClientRout
|
||||
* @return {@link Result<List<LazyNettyClientRoute>>} 客户端代理路由规则新增后领域对象集合
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -70,7 +70,7 @@ public class LazyNettyClientRouteRepositoryImpl implements LazyNettyClientRout
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -87,7 +87,7 @@ public class LazyNettyClientRouteRepositoryImpl implements LazyNettyClientRout
|
||||
* @return {@link Result<List<LazyNettyClientRoute>>} 客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -106,7 +106,7 @@ public class LazyNettyClientRouteRepositoryImpl implements LazyNettyClientRout
|
||||
* @return {@link Result<LazyPage<LazyNettyClientRoute>>} 分页客户端代理路由规则领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -124,7 +124,7 @@ public class LazyNettyClientRouteRepositoryImpl implements LazyNettyClientRout
|
||||
* @return {@link Result<LazyNettyClientRoute>} 客户端代理路由规则
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -147,7 +147,7 @@ public class LazyNettyClientRouteRepositoryImpl implements LazyNettyClientRout
|
||||
* @return {@link Result<Boolean>} 是否存在 true 存在,false 不存在
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
@ -10,6 +10,7 @@ import org.springframework.stereotype.Repository;
|
||||
import org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructurePersistence;
|
||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
import org.wu.framework.lazy.orm.database.lambda.stream.lambda.LazyLambdaStream;
|
||||
import org.wu.framework.lazy.orm.database.lambda.stream.wrapper.LazyUpdateSetValueWrappers;
|
||||
import org.wu.framework.lazy.orm.database.lambda.stream.wrapper.LazyWrappers;
|
||||
import org.wu.framework.web.response.Result;
|
||||
import org.wu.framework.web.response.ResultFactory;
|
||||
@ -47,6 +48,27 @@ public class LazyNettyClientStateRepositoryImpl implements LazyNettyClientStateR
|
||||
return ResultFactory.successOf();
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新数据
|
||||
*
|
||||
* @param lazyNettyClientState 客户端
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public Result<LazyNettyClientState> updateOne(LazyNettyClientState lazyNettyClientState) {
|
||||
LazyNettyClientStateDO lazyNettyClientStateDO = LazyNettyClientStateConverter.INSTANCE.fromNettyClientState(lazyNettyClientState);
|
||||
lazyLambdaStream.update(LazyUpdateSetValueWrappers.
|
||||
<LazyNettyClientStateDO>lambdaWrapperBeanIgnoreEmpty(lazyNettyClientStateDO)
|
||||
,
|
||||
|
||||
LazyWrappers
|
||||
.<LazyNettyClientStateDO>lambdaWrapper()
|
||||
.eq(LazyNettyClientStateDO::getId, lazyNettyClientState.getId())
|
||||
|
||||
);
|
||||
return ResultFactory.successOf();
|
||||
}
|
||||
|
||||
/**
|
||||
* describe 批量新增客户端状态
|
||||
*
|
||||
|
@ -1,9 +1,9 @@
|
||||
package org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.persistence;
|
||||
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.persistence;
|
||||
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.entity.LazyNettyServerRouteDO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.converter.LazyNettyServerRouteConverter;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.mapper.LazyNettyServerRouteMapper;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.server.route.LazyNettyServerRouteRepository;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity.LazyNettyServerRouteDO;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.converter.LazyNettyServerRouteConverter;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.mapper.LazyNettyServerRouteMapper;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route.LazyNettyServerRouteRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@ -12,7 +12,7 @@ import org.wu.framework.lazy.orm.database.lambda.stream.wrapper.LazyWrappers;
|
||||
import org.wu.framework.web.response.Result;
|
||||
import org.wu.framework.web.response.ResultFactory;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.framework.lazy.cloud.network.heartbeat.protocol.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.netty.server.route.LazyNettyServerRoute;
|
||||
import org.wu.framework.lazy.orm.database.lambda.stream.lambda.LazyLambdaStream;
|
||||
import java.util.List;
|
||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
@ -20,7 +20,7 @@ import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||
* describe 服务端路由
|
||||
*
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructurePersistence
|
||||
**/
|
||||
@Repository
|
||||
@ -36,7 +36,7 @@ public class LazyNettyServerRouteRepositoryImpl implements LazyNettyServerRout
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由新增后领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -53,7 +53,7 @@ public class LazyNettyServerRouteRepositoryImpl implements LazyNettyServerRout
|
||||
* @return {@link Result<List<LazyNettyServerRoute>>} 服务端路由新增后领域对象集合
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -70,7 +70,7 @@ public class LazyNettyServerRouteRepositoryImpl implements LazyNettyServerRout
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -87,7 +87,7 @@ public class LazyNettyServerRouteRepositoryImpl implements LazyNettyServerRout
|
||||
* @return {@link Result<List<LazyNettyServerRoute>>} 服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -106,7 +106,7 @@ public class LazyNettyServerRouteRepositoryImpl implements LazyNettyServerRout
|
||||
* @return {@link Result<LazyPage<LazyNettyServerRoute>>} 分页服务端路由领域对象
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -124,7 +124,7 @@ public class LazyNettyServerRouteRepositoryImpl implements LazyNettyServerRout
|
||||
* @return {@link Result<LazyNettyServerRoute>} 服务端路由
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
||||
@ -147,7 +147,7 @@ public class LazyNettyServerRouteRepositoryImpl implements LazyNettyServerRout
|
||||
* @return {@link Result<Boolean>} 是否存在 true 存在,false 不存在
|
||||
|
||||
* @author Jia wei Wu
|
||||
* @date 2025/04/05 05:57 下午
|
||||
* @date 2025/04/05 09:00 晚上
|
||||
**/
|
||||
|
||||
@Override
|
@ -1,8 +1,8 @@
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.mapper.LazyNettyClientRouteMapper">
|
||||
<resultMap id="BaseResultMap" type="org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.entity.LazyNettyClientRouteDO">
|
||||
<mapper namespace="org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.mapper.LazyNettyClientRouteMapper">
|
||||
<resultMap id="BaseResultMap" type="org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity.LazyNettyClientRouteDO">
|
||||
<result column="`describe`" property="describe" />
|
||||
<result column="create_time" property="createTime" />
|
||||
<id column="id" property="id" />
|
@ -1,8 +1,8 @@
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.mapper.LazyNettyServerRouteMapper">
|
||||
<resultMap id="BaseResultMap" type="org.framework.lazy.cloud.network.heartbeat.protocol.infrastructure.entity.LazyNettyServerRouteDO">
|
||||
<mapper namespace="org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.mapper.LazyNettyServerRouteMapper">
|
||||
<resultMap id="BaseResultMap" type="org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity.LazyNettyServerRouteDO">
|
||||
<result column="`describe`" property="describe" />
|
||||
<result column="create_time" property="createTime" />
|
||||
<id column="id" property="id" />
|
Loading…
x
Reference in New Issue
Block a user