|
|
|
|
@@ -1,144 +1,93 @@
|
|
|
|
|
package org.framework.lazy.cloud.network.heartbeat.client.application.assembler;
|
|
|
|
|
|
|
|
|
|
import org.framework.lazy.cloud.network.heartbeat.client.application.command.lazy.netty.server.properties.*;
|
|
|
|
|
import org.framework.lazy.cloud.network.heartbeat.client.application.dto.LazyNettyServerPropertiesDTO;
|
|
|
|
|
import org.framework.lazy.cloud.network.heartbeat.client.domain.model.lazy.netty.server.properties.LazyNettyServerProperties;
|
|
|
|
|
import org.framework.lazy.cloud.network.heartbeat.client.application.command.lazy.netty.server.properties.LazyNettyServerPropertiesRemoveCommand;
|
|
|
|
|
import org.framework.lazy.cloud.network.heartbeat.client.application.command.lazy.netty.server.properties.LazyNettyServerPropertiesStoryCommand;
|
|
|
|
|
import org.framework.lazy.cloud.network.heartbeat.client.application.command.lazy.netty.server.properties.LazyNettyServerPropertiesUpdateCommand;
|
|
|
|
|
import org.framework.lazy.cloud.network.heartbeat.client.application.command.lazy.netty.server.properties.LazyNettyServerPropertiesQueryListCommand;
|
|
|
|
|
import org.framework.lazy.cloud.network.heartbeat.client.application.command.lazy.netty.server.properties.LazyNettyServerPropertiesQueryOneCommand;
|
|
|
|
|
import org.framework.lazy.cloud.network.heartbeat.client.application.dto.LazyNettyServerPropertiesDTO;
|
|
|
|
|
import org.mapstruct.factory.Mappers;
|
|
|
|
|
|
|
|
|
|
public class LazyNettyServerPropertiesDTOAssembler {
|
|
|
|
|
import org.mapstruct.Mapper;
|
|
|
|
|
/**
|
|
|
|
|
* describe 服务端配置信息
|
|
|
|
|
*
|
|
|
|
|
* @author Jia wei Wu
|
|
|
|
|
* @date 2024/04/03 03:00 下午
|
|
|
|
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyAssembler
|
|
|
|
|
**/
|
|
|
|
|
@Mapper
|
|
|
|
|
public interface LazyNettyServerPropertiesDTOAssembler {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* describe MapStruct 创建的代理对象
|
|
|
|
|
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* @author Jia wei Wu
|
|
|
|
|
* @date 2024/01/24 05:19 下午
|
|
|
|
|
* @date 2024/04/03 03:00 下午
|
|
|
|
|
**/
|
|
|
|
|
public static LazyNettyServerPropertiesDTOAssembler INSTANCE = new LazyNettyServerPropertiesDTOAssembler();
|
|
|
|
|
LazyNettyServerPropertiesDTOAssembler INSTANCE = Mappers.getMapper(LazyNettyServerPropertiesDTOAssembler.class);
|
|
|
|
|
/**
|
|
|
|
|
* describe 应用层存储入参转换成 领域对象
|
|
|
|
|
*
|
|
|
|
|
* @param lazyNettyServerPropertiesStoryCommand 保存服务端配置信息对象
|
|
|
|
|
* @return {@link LazyNettyServerProperties} 服务端配置信息领域对象
|
|
|
|
|
|
|
|
|
|
* @author Jia wei Wu
|
|
|
|
|
* @date 2024/04/03 03:00 下午
|
|
|
|
|
**/
|
|
|
|
|
LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesStoryCommand lazyNettyServerPropertiesStoryCommand);
|
|
|
|
|
/**
|
|
|
|
|
* describe 应用层更新入参转换成 领域对象
|
|
|
|
|
*
|
|
|
|
|
* @param lazyNettyServerPropertiesUpdateCommand 更新服务端配置信息对象
|
|
|
|
|
* @return {@link LazyNettyServerProperties} 服务端配置信息领域对象
|
|
|
|
|
|
|
|
|
|
public LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesStoryCommand lazyNettyServerPropertiesStoryCommand) {
|
|
|
|
|
if ( lazyNettyServerPropertiesStoryCommand == null ) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
* @author Jia wei Wu
|
|
|
|
|
* @date 2024/04/03 03:00 下午
|
|
|
|
|
**/
|
|
|
|
|
LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesUpdateCommand lazyNettyServerPropertiesUpdateCommand);
|
|
|
|
|
/**
|
|
|
|
|
* describe 应用层查询入参转换成 领域对象
|
|
|
|
|
*
|
|
|
|
|
* @param lazyNettyServerPropertiesQueryOneCommand 查询单个服务端配置信息对象参数
|
|
|
|
|
* @return {@link LazyNettyServerProperties} 服务端配置信息领域对象
|
|
|
|
|
|
|
|
|
|
LazyNettyServerProperties lazyNettyServerProperties = new LazyNettyServerProperties();
|
|
|
|
|
* @author Jia wei Wu
|
|
|
|
|
* @date 2024/04/03 03:00 下午
|
|
|
|
|
**/
|
|
|
|
|
LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesQueryOneCommand lazyNettyServerPropertiesQueryOneCommand);
|
|
|
|
|
/**
|
|
|
|
|
* describe 应用层查询入参转换成 领域对象
|
|
|
|
|
*
|
|
|
|
|
* @param lazyNettyServerPropertiesQueryListCommand 查询集合服务端配置信息对象参数
|
|
|
|
|
* @return {@link LazyNettyServerProperties} 服务端配置信息领域对象
|
|
|
|
|
|
|
|
|
|
lazyNettyServerProperties.setClientId( lazyNettyServerPropertiesStoryCommand.getClientId() );
|
|
|
|
|
lazyNettyServerProperties.setConnectStatus( lazyNettyServerPropertiesStoryCommand.getConnectStatus() );
|
|
|
|
|
lazyNettyServerProperties.setCreateTime( lazyNettyServerPropertiesStoryCommand.getCreateTime() );
|
|
|
|
|
lazyNettyServerProperties.setInetHost( lazyNettyServerPropertiesStoryCommand.getInetHost() );
|
|
|
|
|
lazyNettyServerProperties.setInetPort( lazyNettyServerPropertiesStoryCommand.getInetPort() );
|
|
|
|
|
lazyNettyServerProperties.setType( lazyNettyServerPropertiesStoryCommand.getType() );
|
|
|
|
|
lazyNettyServerProperties.setAppKey( lazyNettyServerPropertiesStoryCommand.getAppKey() );
|
|
|
|
|
lazyNettyServerProperties.setAppSecret( lazyNettyServerPropertiesStoryCommand.getAppSecret() );
|
|
|
|
|
lazyNettyServerProperties.setUpdateTime( lazyNettyServerPropertiesStoryCommand.getUpdateTime() );
|
|
|
|
|
* @author Jia wei Wu
|
|
|
|
|
* @date 2024/04/03 03:00 下午
|
|
|
|
|
**/
|
|
|
|
|
LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesQueryListCommand lazyNettyServerPropertiesQueryListCommand);
|
|
|
|
|
/**
|
|
|
|
|
* describe 应用层删除入参转换成 领域对象
|
|
|
|
|
*
|
|
|
|
|
* @param lazyNettyServerPropertiesRemoveCommand 删除服务端配置信息对象参数
|
|
|
|
|
* @return {@link LazyNettyServerProperties} 服务端配置信息领域对象
|
|
|
|
|
|
|
|
|
|
return lazyNettyServerProperties;
|
|
|
|
|
}
|
|
|
|
|
* @author Jia wei Wu
|
|
|
|
|
* @date 2024/04/03 03:00 下午
|
|
|
|
|
**/
|
|
|
|
|
LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesRemoveCommand lazyNettyServerPropertiesRemoveCommand);
|
|
|
|
|
/**
|
|
|
|
|
* describe 持久层领域对象转换成DTO对象
|
|
|
|
|
*
|
|
|
|
|
* @param lazyNettyServerProperties 服务端配置信息领域对象
|
|
|
|
|
* @return {@link LazyNettyServerPropertiesDTO} 服务端配置信息DTO对象
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesUpdateCommand lazyNettyServerPropertiesUpdateCommand) {
|
|
|
|
|
if ( lazyNettyServerPropertiesUpdateCommand == null ) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LazyNettyServerProperties lazyNettyServerProperties = new LazyNettyServerProperties();
|
|
|
|
|
|
|
|
|
|
lazyNettyServerProperties.setClientId( lazyNettyServerPropertiesUpdateCommand.getClientId() );
|
|
|
|
|
lazyNettyServerProperties.setConnectStatus( lazyNettyServerPropertiesUpdateCommand.getConnectStatus() );
|
|
|
|
|
lazyNettyServerProperties.setCreateTime( lazyNettyServerPropertiesUpdateCommand.getCreateTime() );
|
|
|
|
|
lazyNettyServerProperties.setInetHost( lazyNettyServerPropertiesUpdateCommand.getInetHost() );
|
|
|
|
|
lazyNettyServerProperties.setInetPort( lazyNettyServerPropertiesUpdateCommand.getInetPort() );
|
|
|
|
|
lazyNettyServerProperties.setType( lazyNettyServerPropertiesUpdateCommand.getType() );
|
|
|
|
|
lazyNettyServerProperties.setAppKey( lazyNettyServerPropertiesUpdateCommand.getAppKey() );
|
|
|
|
|
lazyNettyServerProperties.setAppSecret( lazyNettyServerPropertiesUpdateCommand.getAppSecret() );
|
|
|
|
|
lazyNettyServerProperties.setUpdateTime( lazyNettyServerPropertiesUpdateCommand.getUpdateTime() );
|
|
|
|
|
|
|
|
|
|
return lazyNettyServerProperties;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesQueryOneCommand lazyNettyServerPropertiesQueryOneCommand) {
|
|
|
|
|
if ( lazyNettyServerPropertiesQueryOneCommand == null ) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LazyNettyServerProperties lazyNettyServerProperties = new LazyNettyServerProperties();
|
|
|
|
|
|
|
|
|
|
lazyNettyServerProperties.setClientId( lazyNettyServerPropertiesQueryOneCommand.getClientId() );
|
|
|
|
|
lazyNettyServerProperties.setConnectStatus( lazyNettyServerPropertiesQueryOneCommand.getConnectStatus() );
|
|
|
|
|
lazyNettyServerProperties.setCreateTime( lazyNettyServerPropertiesQueryOneCommand.getCreateTime() );
|
|
|
|
|
lazyNettyServerProperties.setInetHost( lazyNettyServerPropertiesQueryOneCommand.getInetHost() );
|
|
|
|
|
lazyNettyServerProperties.setInetPort( lazyNettyServerPropertiesQueryOneCommand.getInetPort() );
|
|
|
|
|
lazyNettyServerProperties.setType( lazyNettyServerPropertiesQueryOneCommand.getType() );
|
|
|
|
|
lazyNettyServerProperties.setAppKey( lazyNettyServerPropertiesQueryOneCommand.getAppKey() );
|
|
|
|
|
lazyNettyServerProperties.setAppSecret( lazyNettyServerPropertiesQueryOneCommand.getAppSecret() );
|
|
|
|
|
lazyNettyServerProperties.setUpdateTime( lazyNettyServerPropertiesQueryOneCommand.getUpdateTime() );
|
|
|
|
|
|
|
|
|
|
return lazyNettyServerProperties;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesQueryListCommand lazyNettyServerPropertiesQueryListCommand) {
|
|
|
|
|
if ( lazyNettyServerPropertiesQueryListCommand == null ) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LazyNettyServerProperties lazyNettyServerProperties = new LazyNettyServerProperties();
|
|
|
|
|
|
|
|
|
|
lazyNettyServerProperties.setClientId( lazyNettyServerPropertiesQueryListCommand.getClientId() );
|
|
|
|
|
lazyNettyServerProperties.setConnectStatus( lazyNettyServerPropertiesQueryListCommand.getConnectStatus() );
|
|
|
|
|
lazyNettyServerProperties.setCreateTime( lazyNettyServerPropertiesQueryListCommand.getCreateTime() );
|
|
|
|
|
lazyNettyServerProperties.setInetHost( lazyNettyServerPropertiesQueryListCommand.getInetHost() );
|
|
|
|
|
lazyNettyServerProperties.setInetPort( lazyNettyServerPropertiesQueryListCommand.getInetPort() );
|
|
|
|
|
lazyNettyServerProperties.setType( lazyNettyServerPropertiesQueryListCommand.getType() );
|
|
|
|
|
lazyNettyServerProperties.setAppKey( lazyNettyServerPropertiesQueryListCommand.getAppKey() );
|
|
|
|
|
lazyNettyServerProperties.setAppSecret( lazyNettyServerPropertiesQueryListCommand.getAppSecret() );
|
|
|
|
|
lazyNettyServerProperties.setUpdateTime( lazyNettyServerPropertiesQueryListCommand.getUpdateTime() );
|
|
|
|
|
|
|
|
|
|
return lazyNettyServerProperties;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesRemoveCommand lazyNettyServerPropertiesRemoveCommand) {
|
|
|
|
|
if ( lazyNettyServerPropertiesRemoveCommand == null ) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LazyNettyServerProperties lazyNettyServerProperties = new LazyNettyServerProperties();
|
|
|
|
|
|
|
|
|
|
lazyNettyServerProperties.setClientId( lazyNettyServerPropertiesRemoveCommand.getClientId() );
|
|
|
|
|
lazyNettyServerProperties.setConnectStatus( lazyNettyServerPropertiesRemoveCommand.getConnectStatus() );
|
|
|
|
|
lazyNettyServerProperties.setCreateTime( lazyNettyServerPropertiesRemoveCommand.getCreateTime() );
|
|
|
|
|
lazyNettyServerProperties.setInetHost( lazyNettyServerPropertiesRemoveCommand.getInetHost() );
|
|
|
|
|
lazyNettyServerProperties.setInetPort( lazyNettyServerPropertiesRemoveCommand.getInetPort() );
|
|
|
|
|
lazyNettyServerProperties.setType( lazyNettyServerPropertiesRemoveCommand.getType() );
|
|
|
|
|
lazyNettyServerProperties.setAppKey( lazyNettyServerPropertiesRemoveCommand.getAppKey() );
|
|
|
|
|
lazyNettyServerProperties.setAppSecret( lazyNettyServerPropertiesRemoveCommand.getAppSecret() );
|
|
|
|
|
lazyNettyServerProperties.setUpdateTime( lazyNettyServerPropertiesRemoveCommand.getUpdateTime() );
|
|
|
|
|
|
|
|
|
|
return lazyNettyServerProperties;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public LazyNettyServerPropertiesDTO fromLazyNettyServerProperties(LazyNettyServerProperties lazyNettyServerProperties) {
|
|
|
|
|
if ( lazyNettyServerProperties == null ) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LazyNettyServerPropertiesDTO lazyNettyServerPropertiesDTO = new LazyNettyServerPropertiesDTO();
|
|
|
|
|
|
|
|
|
|
lazyNettyServerPropertiesDTO.setClientId( lazyNettyServerProperties.getClientId() );
|
|
|
|
|
lazyNettyServerPropertiesDTO.setConnectStatus( lazyNettyServerProperties.getConnectStatus() );
|
|
|
|
|
lazyNettyServerPropertiesDTO.setCreateTime( lazyNettyServerProperties.getCreateTime() );
|
|
|
|
|
lazyNettyServerPropertiesDTO.setInetHost( lazyNettyServerProperties.getInetHost() );
|
|
|
|
|
lazyNettyServerPropertiesDTO.setInetPort( lazyNettyServerProperties.getInetPort() );
|
|
|
|
|
lazyNettyServerPropertiesDTO.setType( lazyNettyServerProperties.getType() );
|
|
|
|
|
lazyNettyServerPropertiesDTO.setAppKey( lazyNettyServerProperties.getAppKey() );
|
|
|
|
|
lazyNettyServerPropertiesDTO.setAppSecret( lazyNettyServerProperties.getAppSecret() );
|
|
|
|
|
lazyNettyServerPropertiesDTO.setUpdateTime( lazyNettyServerProperties.getUpdateTime() );
|
|
|
|
|
|
|
|
|
|
return lazyNettyServerPropertiesDTO;
|
|
|
|
|
}
|
|
|
|
|
* @author Jia wei Wu
|
|
|
|
|
* @date 2024/04/03 03:00 下午
|
|
|
|
|
**/
|
|
|
|
|
LazyNettyServerPropertiesDTO fromLazyNettyServerProperties(LazyNettyServerProperties lazyNettyServerProperties);
|
|
|
|
|
}
|