mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-16 18:35:05 +08:00
Revert "[fix] 修复native打包与mapper不兼容问题,切换至自定义bean拷贝"
This reverts commit 6c6584fdb9
.
This commit is contained in:
@ -1,144 +1,93 @@
|
|||||||
package org.framework.lazy.cloud.network.heartbeat.client.application.assembler;
|
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.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;
|
import org.mapstruct.factory.Mappers;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
public class LazyNettyServerPropertiesDTOAssembler {
|
/**
|
||||||
|
* 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 创建的代理对象
|
* describe MapStruct 创建的代理对象
|
||||||
*
|
*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* @author Jia wei Wu
|
* @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) {
|
* @author Jia wei Wu
|
||||||
if ( lazyNettyServerPropertiesStoryCommand == null ) {
|
* @date 2024/04/03 03:00 下午
|
||||||
return null;
|
**/
|
||||||
}
|
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() );
|
* @author Jia wei Wu
|
||||||
lazyNettyServerProperties.setConnectStatus( lazyNettyServerPropertiesStoryCommand.getConnectStatus() );
|
* @date 2024/04/03 03:00 下午
|
||||||
lazyNettyServerProperties.setCreateTime( lazyNettyServerPropertiesStoryCommand.getCreateTime() );
|
**/
|
||||||
lazyNettyServerProperties.setInetHost( lazyNettyServerPropertiesStoryCommand.getInetHost() );
|
LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesQueryListCommand lazyNettyServerPropertiesQueryListCommand);
|
||||||
lazyNettyServerProperties.setInetPort( lazyNettyServerPropertiesStoryCommand.getInetPort() );
|
/**
|
||||||
lazyNettyServerProperties.setType( lazyNettyServerPropertiesStoryCommand.getType() );
|
* describe 应用层删除入参转换成 领域对象
|
||||||
lazyNettyServerProperties.setAppKey( lazyNettyServerPropertiesStoryCommand.getAppKey() );
|
*
|
||||||
lazyNettyServerProperties.setAppSecret( lazyNettyServerPropertiesStoryCommand.getAppSecret() );
|
* @param lazyNettyServerPropertiesRemoveCommand 删除服务端配置信息对象参数
|
||||||
lazyNettyServerProperties.setUpdateTime( lazyNettyServerPropertiesStoryCommand.getUpdateTime() );
|
* @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对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
public LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesUpdateCommand lazyNettyServerPropertiesUpdateCommand) {
|
* @date 2024/04/03 03:00 下午
|
||||||
if ( lazyNettyServerPropertiesUpdateCommand == null ) {
|
**/
|
||||||
return null;
|
LazyNettyServerPropertiesDTO fromLazyNettyServerProperties(LazyNettyServerProperties lazyNettyServerProperties);
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -0,0 +1,144 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.client.application.assembler;
|
||||||
|
|
||||||
|
import javax.annotation.processing.Generated;
|
||||||
|
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.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.dto.LazyNettyServerPropertiesDTO;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.client.domain.model.lazy.netty.server.properties.LazyNettyServerProperties;
|
||||||
|
|
||||||
|
@Generated(
|
||||||
|
value = "org.mapstruct.ap.MappingProcessor",
|
||||||
|
date = "2025-06-03T16:10:52+0800",
|
||||||
|
comments = "version: 1.6.3, compiler: javac, environment: Java 21.0.2 (Oracle Corporation)"
|
||||||
|
)
|
||||||
|
public class LazyNettyServerPropertiesDTOAssemblerImpl implements LazyNettyServerPropertiesDTOAssembler {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesStoryCommand lazyNettyServerPropertiesStoryCommand) {
|
||||||
|
if ( lazyNettyServerPropertiesStoryCommand == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
LazyNettyServerProperties lazyNettyServerProperties = new 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() );
|
||||||
|
|
||||||
|
return lazyNettyServerProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
@ -2,60 +2,47 @@ package org.framework.lazy.cloud.network.heartbeat.client.infrastructure.convert
|
|||||||
|
|
||||||
import org.framework.lazy.cloud.network.heartbeat.client.domain.model.lazy.netty.server.properties.LazyNettyServerProperties;
|
import org.framework.lazy.cloud.network.heartbeat.client.domain.model.lazy.netty.server.properties.LazyNettyServerProperties;
|
||||||
import org.framework.lazy.cloud.network.heartbeat.client.infrastructure.entity.LazyNettyServerPropertiesDO;
|
import org.framework.lazy.cloud.network.heartbeat.client.infrastructure.entity.LazyNettyServerPropertiesDO;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
|
import org.mapstruct.factory.Mappers;
|
||||||
public class LazyNettyServerPropertiesConverter {
|
/**
|
||||||
|
* describe 服务端配置信息
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/04/03 03:00 下午
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureConverter
|
||||||
|
**/
|
||||||
|
@Mapper
|
||||||
|
public interface LazyNettyServerPropertiesConverter {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* describe MapStruct 创建的代理对象
|
* describe MapStruct 创建的代理对象
|
||||||
*
|
*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* @author Jia wei Wu
|
* @author Jia wei Wu
|
||||||
* @date 2024/01/24 05:19 下午
|
* @date 2024/04/03 03:00 下午
|
||||||
**/
|
**/
|
||||||
public static LazyNettyServerPropertiesConverter INSTANCE = new LazyNettyServerPropertiesConverter();
|
LazyNettyServerPropertiesConverter INSTANCE = Mappers.getMapper(LazyNettyServerPropertiesConverter.class);
|
||||||
|
/**
|
||||||
|
* describe 实体对象 转换成领域对象
|
||||||
|
*
|
||||||
|
* @param lazyNettyServerPropertiesDO 服务端配置信息实体对象
|
||||||
|
* @return {@link LazyNettyServerProperties} 服务端配置信息领域对象
|
||||||
|
|
||||||
public LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesDO lazyNettyServerPropertiesDO) {
|
* @author Jia wei Wu
|
||||||
if (lazyNettyServerPropertiesDO == null) {
|
* @date 2024/04/03 03:00 下午
|
||||||
return null;
|
**/
|
||||||
}
|
LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesDO lazyNettyServerPropertiesDO);
|
||||||
|
/**
|
||||||
|
* describe 领域对象 转换成实体对象
|
||||||
|
*
|
||||||
|
* @param lazyNettyServerProperties 服务端配置信息领域对象
|
||||||
|
* @return {@link LazyNettyServerPropertiesDO} 服务端配置信息实体对象
|
||||||
|
|
||||||
LazyNettyServerProperties lazyNettyServerProperties = new LazyNettyServerProperties();
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/04/03 03:00 下午
|
||||||
lazyNettyServerProperties.setClientId(lazyNettyServerPropertiesDO.getClientId());
|
**/
|
||||||
lazyNettyServerProperties.setConnectStatus(lazyNettyServerPropertiesDO.getConnectStatus());
|
LazyNettyServerPropertiesDO fromLazyNettyServerProperties(LazyNettyServerProperties lazyNettyServerProperties);
|
||||||
lazyNettyServerProperties.setCreateTime(lazyNettyServerPropertiesDO.getCreateTime());
|
|
||||||
lazyNettyServerProperties.setInetHost(lazyNettyServerPropertiesDO.getInetHost());
|
|
||||||
lazyNettyServerProperties.setInetPort(lazyNettyServerPropertiesDO.getInetPort());
|
|
||||||
lazyNettyServerProperties.setType(lazyNettyServerPropertiesDO.getType());
|
|
||||||
lazyNettyServerProperties.setProtocolType(lazyNettyServerPropertiesDO.getProtocolType());
|
|
||||||
lazyNettyServerProperties.setAppKey(lazyNettyServerPropertiesDO.getAppKey());
|
|
||||||
lazyNettyServerProperties.setAppSecret(lazyNettyServerPropertiesDO.getAppSecret());
|
|
||||||
lazyNettyServerProperties.setUpdateTime(lazyNettyServerPropertiesDO.getUpdateTime());
|
|
||||||
|
|
||||||
return lazyNettyServerProperties;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public LazyNettyServerPropertiesDO fromLazyNettyServerProperties(LazyNettyServerProperties lazyNettyServerProperties) {
|
|
||||||
if (lazyNettyServerProperties == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
LazyNettyServerPropertiesDO lazyNettyServerPropertiesDO = new LazyNettyServerPropertiesDO();
|
|
||||||
|
|
||||||
lazyNettyServerPropertiesDO.setClientId(lazyNettyServerProperties.getClientId());
|
|
||||||
lazyNettyServerPropertiesDO.setConnectStatus(lazyNettyServerProperties.getConnectStatus());
|
|
||||||
lazyNettyServerPropertiesDO.setCreateTime(lazyNettyServerProperties.getCreateTime());
|
|
||||||
lazyNettyServerPropertiesDO.setInetHost(lazyNettyServerProperties.getInetHost());
|
|
||||||
lazyNettyServerPropertiesDO.setInetPort(lazyNettyServerProperties.getInetPort());
|
|
||||||
lazyNettyServerPropertiesDO.setAppKey(lazyNettyServerProperties.getAppKey());
|
|
||||||
lazyNettyServerPropertiesDO.setAppSecret(lazyNettyServerProperties.getAppSecret());
|
|
||||||
lazyNettyServerPropertiesDO.setType(lazyNettyServerProperties.getType());
|
|
||||||
lazyNettyServerPropertiesDO.setProtocolType(lazyNettyServerProperties.getProtocolType());
|
|
||||||
lazyNettyServerPropertiesDO.setUpdateTime(lazyNettyServerProperties.getUpdateTime());
|
|
||||||
|
|
||||||
return lazyNettyServerPropertiesDO;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -0,0 +1,57 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.client.infrastructure.converter;
|
||||||
|
|
||||||
|
import javax.annotation.processing.Generated;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.client.domain.model.lazy.netty.server.properties.LazyNettyServerProperties;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.client.infrastructure.entity.LazyNettyServerPropertiesDO;
|
||||||
|
|
||||||
|
@Generated(
|
||||||
|
value = "org.mapstruct.ap.MappingProcessor",
|
||||||
|
date = "2025-06-03T16:10:52+0800",
|
||||||
|
comments = "version: 1.6.3, compiler: javac, environment: Java 21.0.2 (Oracle Corporation)"
|
||||||
|
)
|
||||||
|
public class LazyNettyServerPropertiesConverterImpl implements LazyNettyServerPropertiesConverter {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public LazyNettyServerProperties toLazyNettyServerProperties(LazyNettyServerPropertiesDO lazyNettyServerPropertiesDO) {
|
||||||
|
if ( lazyNettyServerPropertiesDO == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
LazyNettyServerProperties lazyNettyServerProperties = new LazyNettyServerProperties();
|
||||||
|
|
||||||
|
lazyNettyServerProperties.setClientId( lazyNettyServerPropertiesDO.getClientId() );
|
||||||
|
lazyNettyServerProperties.setConnectStatus( lazyNettyServerPropertiesDO.getConnectStatus() );
|
||||||
|
lazyNettyServerProperties.setCreateTime( lazyNettyServerPropertiesDO.getCreateTime() );
|
||||||
|
lazyNettyServerProperties.setInetHost( lazyNettyServerPropertiesDO.getInetHost() );
|
||||||
|
lazyNettyServerProperties.setInetPort( lazyNettyServerPropertiesDO.getInetPort() );
|
||||||
|
lazyNettyServerProperties.setType( lazyNettyServerPropertiesDO.getType() );
|
||||||
|
lazyNettyServerProperties.setProtocolType( lazyNettyServerPropertiesDO.getProtocolType() );
|
||||||
|
lazyNettyServerProperties.setAppKey( lazyNettyServerPropertiesDO.getAppKey() );
|
||||||
|
lazyNettyServerProperties.setAppSecret( lazyNettyServerPropertiesDO.getAppSecret() );
|
||||||
|
lazyNettyServerProperties.setUpdateTime( lazyNettyServerPropertiesDO.getUpdateTime() );
|
||||||
|
|
||||||
|
return lazyNettyServerProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public LazyNettyServerPropertiesDO fromLazyNettyServerProperties(LazyNettyServerProperties lazyNettyServerProperties) {
|
||||||
|
if ( lazyNettyServerProperties == null ) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
LazyNettyServerPropertiesDO lazyNettyServerPropertiesDO = new LazyNettyServerPropertiesDO();
|
||||||
|
|
||||||
|
lazyNettyServerPropertiesDO.setClientId( lazyNettyServerProperties.getClientId() );
|
||||||
|
lazyNettyServerPropertiesDO.setConnectStatus( lazyNettyServerProperties.getConnectStatus() );
|
||||||
|
lazyNettyServerPropertiesDO.setCreateTime( lazyNettyServerProperties.getCreateTime() );
|
||||||
|
lazyNettyServerPropertiesDO.setInetHost( lazyNettyServerProperties.getInetHost() );
|
||||||
|
lazyNettyServerPropertiesDO.setInetPort( lazyNettyServerProperties.getInetPort() );
|
||||||
|
lazyNettyServerPropertiesDO.setAppKey( lazyNettyServerProperties.getAppKey() );
|
||||||
|
lazyNettyServerPropertiesDO.setAppSecret( lazyNettyServerProperties.getAppSecret() );
|
||||||
|
lazyNettyServerPropertiesDO.setType( lazyNettyServerProperties.getType() );
|
||||||
|
lazyNettyServerPropertiesDO.setProtocolType( lazyNettyServerProperties.getProtocolType() );
|
||||||
|
lazyNettyServerPropertiesDO.setUpdateTime( lazyNettyServerProperties.getUpdateTime() );
|
||||||
|
|
||||||
|
return lazyNettyServerPropertiesDO;
|
||||||
|
}
|
||||||
|
}
|
@ -2,8 +2,8 @@ package org.framework.lazy.cloud.network.heartbeat.client.infrastructure.persist
|
|||||||
|
|
||||||
import org.framework.lazy.cloud.network.heartbeat.client.domain.model.lazy.netty.server.properties.LazyNettyServerProperties;
|
import org.framework.lazy.cloud.network.heartbeat.client.domain.model.lazy.netty.server.properties.LazyNettyServerProperties;
|
||||||
import org.framework.lazy.cloud.network.heartbeat.client.domain.model.lazy.netty.server.properties.LazyNettyServerPropertiesRepository;
|
import org.framework.lazy.cloud.network.heartbeat.client.domain.model.lazy.netty.server.properties.LazyNettyServerPropertiesRepository;
|
||||||
import org.framework.lazy.cloud.network.heartbeat.client.infrastructure.converter.LazyNettyServerPropertiesConverter;
|
|
||||||
import org.framework.lazy.cloud.network.heartbeat.client.infrastructure.entity.LazyNettyServerPropertiesDO;
|
import org.framework.lazy.cloud.network.heartbeat.client.infrastructure.entity.LazyNettyServerPropertiesDO;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.client.infrastructure.converter.LazyNettyServerPropertiesConverter;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
Reference in New Issue
Block a user