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
17aeb842db
commit
81e2a74cf1
@ -0,0 +1,109 @@
|
|||||||
|
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.server.standalone.domain.model.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMapping;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingRemoveCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingStoryCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingUpdateCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingQueryListCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingQueryOneCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyInternalNetworkClientPermeateClientMappingDTO;
|
||||||
|
import java.util.List;
|
||||||
|
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyApplication
|
||||||
|
**/
|
||||||
|
|
||||||
|
public interface LazyInternalNetworkClientPermeateClientMappingApplication {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 新增客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingStoryCommand 新增客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射新增后领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<LazyInternalNetworkClientPermeateClientMapping> story(LazyInternalNetworkClientPermeateClientMappingStoryCommand lazyInternalNetworkClientPermeateClientMappingStoryCommand);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 批量新增客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingStoryCommandList 批量新增客户端渗透客户端映射
|
||||||
|
* @return {@link Result<List<LazyInternalNetworkClientPermeateClientMapping>>} 客户端渗透客户端映射新增后领域对象集合
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<List<LazyInternalNetworkClientPermeateClientMapping>> batchStory(List<LazyInternalNetworkClientPermeateClientMappingStoryCommand> lazyInternalNetworkClientPermeateClientMappingStoryCommandList);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 更新客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingUpdateCommand 更新客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<LazyInternalNetworkClientPermeateClientMapping> updateOne(LazyInternalNetworkClientPermeateClientMappingUpdateCommand lazyInternalNetworkClientPermeateClientMappingUpdateCommand);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 查询单个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingQueryOneCommand 查询单个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMappingDTO>} 客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<LazyInternalNetworkClientPermeateClientMappingDTO> findOne(LazyInternalNetworkClientPermeateClientMappingQueryOneCommand lazyInternalNetworkClientPermeateClientMappingQueryOneCommand);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 查询多个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingQueryListCommand 查询多个客户端渗透客户端映射
|
||||||
|
* @return {@link Result <List<LazyInternalNetworkClientPermeateClientMappingDTO>>} 客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result <List<LazyInternalNetworkClientPermeateClientMappingDTO>> findList(LazyInternalNetworkClientPermeateClientMappingQueryListCommand lazyInternalNetworkClientPermeateClientMappingQueryListCommand);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 分页查询多个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingQueryListCommand 分页查询多个客户端渗透客户端映射
|
||||||
|
* @return {@link Result <LazyPage<LazyInternalNetworkClientPermeateClientMappingDTO>>} 分页客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result <LazyPage<LazyInternalNetworkClientPermeateClientMappingDTO>> findPage(int size,int current,LazyInternalNetworkClientPermeateClientMappingQueryListCommand lazyInternalNetworkClientPermeateClientMappingQueryListCommand);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 删除客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingRemoveCommand 删除客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<LazyInternalNetworkClientPermeateClientMapping> remove(LazyInternalNetworkClientPermeateClientMappingRemoveCommand lazyInternalNetworkClientPermeateClientMappingRemoveCommand);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,93 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler;
|
||||||
|
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMapping;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingRemoveCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingStoryCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingUpdateCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingQueryListCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingQueryOneCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyInternalNetworkClientPermeateClientMappingDTO;
|
||||||
|
import org.mapstruct.factory.Mappers;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyAssembler
|
||||||
|
**/
|
||||||
|
@Mapper
|
||||||
|
public interface LazyInternalNetworkClientPermeateClientMappingDTOAssembler {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe MapStruct 创建的代理对象
|
||||||
|
*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
LazyInternalNetworkClientPermeateClientMappingDTOAssembler INSTANCE = Mappers.getMapper(LazyInternalNetworkClientPermeateClientMappingDTOAssembler.class);
|
||||||
|
/**
|
||||||
|
* describe 应用层存储入参转换成 领域对象
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingStoryCommand 保存客户端渗透客户端映射对象
|
||||||
|
* @return {@link LazyInternalNetworkClientPermeateClientMapping} 客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping toLazyInternalNetworkClientPermeateClientMapping(LazyInternalNetworkClientPermeateClientMappingStoryCommand lazyInternalNetworkClientPermeateClientMappingStoryCommand);
|
||||||
|
/**
|
||||||
|
* describe 应用层更新入参转换成 领域对象
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingUpdateCommand 更新客户端渗透客户端映射对象
|
||||||
|
* @return {@link LazyInternalNetworkClientPermeateClientMapping} 客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping toLazyInternalNetworkClientPermeateClientMapping(LazyInternalNetworkClientPermeateClientMappingUpdateCommand lazyInternalNetworkClientPermeateClientMappingUpdateCommand);
|
||||||
|
/**
|
||||||
|
* describe 应用层查询入参转换成 领域对象
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingQueryOneCommand 查询单个客户端渗透客户端映射对象参数
|
||||||
|
* @return {@link LazyInternalNetworkClientPermeateClientMapping} 客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping toLazyInternalNetworkClientPermeateClientMapping(LazyInternalNetworkClientPermeateClientMappingQueryOneCommand lazyInternalNetworkClientPermeateClientMappingQueryOneCommand);
|
||||||
|
/**
|
||||||
|
* describe 应用层查询入参转换成 领域对象
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingQueryListCommand 查询集合客户端渗透客户端映射对象参数
|
||||||
|
* @return {@link LazyInternalNetworkClientPermeateClientMapping} 客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping toLazyInternalNetworkClientPermeateClientMapping(LazyInternalNetworkClientPermeateClientMappingQueryListCommand lazyInternalNetworkClientPermeateClientMappingQueryListCommand);
|
||||||
|
/**
|
||||||
|
* describe 应用层删除入参转换成 领域对象
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingRemoveCommand 删除客户端渗透客户端映射对象参数
|
||||||
|
* @return {@link LazyInternalNetworkClientPermeateClientMapping} 客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping toLazyInternalNetworkClientPermeateClientMapping(LazyInternalNetworkClientPermeateClientMappingRemoveCommand lazyInternalNetworkClientPermeateClientMappingRemoveCommand);
|
||||||
|
/**
|
||||||
|
* describe 持久层领域对象转换成DTO对象
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 客户端渗透客户端映射领域对象
|
||||||
|
* @return {@link LazyInternalNetworkClientPermeateClientMappingDTO} 客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
LazyInternalNetworkClientPermeateClientMappingDTO fromLazyInternalNetworkClientPermeateClientMapping(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
}
|
@ -0,0 +1,101 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.Long;
|
||||||
|
import java.lang.Boolean;
|
||||||
|
import java.lang.Integer;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyQueryListCommand
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@Schema(title = "lazy_internal_network_client_permeate_client_mapping_query_List_command",description = "客户端渗透客户端映射")
|
||||||
|
public class LazyInternalNetworkClientPermeateClientMappingQueryListCommand {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="createTime",example = "")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
@Schema(description ="描述",name ="describe",example = "")
|
||||||
|
private String describe;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* form客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="form客户端ID",name ="formClientId",example = "")
|
||||||
|
private String formClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="id",example = "")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 是否删除 默认否
|
||||||
|
*/
|
||||||
|
@Schema(description ="是否删除 默认否",name ="isDeleted",example = "")
|
||||||
|
private Boolean isDeleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标地址
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标地址",name ="permeateTargetIp",example = "")
|
||||||
|
private String permeateTargetIp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标端口",name ="permeateTargetPort",example = "")
|
||||||
|
private Integer permeateTargetPort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 服务端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="服务端ID",name ="serverId",example = "")
|
||||||
|
private String serverId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* to客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="to客户端ID",name ="toClientId",example = "")
|
||||||
|
private String toClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="updateTime",example = "")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透端口",name ="visitorPort",example = "")
|
||||||
|
private Integer visitorPort;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,101 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.Long;
|
||||||
|
import java.lang.Boolean;
|
||||||
|
import java.lang.Integer;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyQueryOneCommand
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@Schema(title = "lazy_internal_network_client_permeate_client_mapping_query_one_command",description = "客户端渗透客户端映射")
|
||||||
|
public class LazyInternalNetworkClientPermeateClientMappingQueryOneCommand {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="createTime",example = "")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
@Schema(description ="描述",name ="describe",example = "")
|
||||||
|
private String describe;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* form客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="form客户端ID",name ="formClientId",example = "")
|
||||||
|
private String formClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="id",example = "")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 是否删除 默认否
|
||||||
|
*/
|
||||||
|
@Schema(description ="是否删除 默认否",name ="isDeleted",example = "")
|
||||||
|
private Boolean isDeleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标地址
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标地址",name ="permeateTargetIp",example = "")
|
||||||
|
private String permeateTargetIp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标端口",name ="permeateTargetPort",example = "")
|
||||||
|
private Integer permeateTargetPort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 服务端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="服务端ID",name ="serverId",example = "")
|
||||||
|
private String serverId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* to客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="to客户端ID",name ="toClientId",example = "")
|
||||||
|
private String toClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="updateTime",example = "")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透端口",name ="visitorPort",example = "")
|
||||||
|
private Integer visitorPort;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,101 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.Long;
|
||||||
|
import java.lang.Boolean;
|
||||||
|
import java.lang.Integer;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyRemoveCommand
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@Schema(title = "lazy_internal_network_client_permeate_client_mapping_remove_command",description = "客户端渗透客户端映射")
|
||||||
|
public class LazyInternalNetworkClientPermeateClientMappingRemoveCommand {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="createTime",example = "")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
@Schema(description ="描述",name ="describe",example = "")
|
||||||
|
private String describe;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* form客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="form客户端ID",name ="formClientId",example = "")
|
||||||
|
private String formClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="id",example = "")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 是否删除 默认否
|
||||||
|
*/
|
||||||
|
@Schema(description ="是否删除 默认否",name ="isDeleted",example = "")
|
||||||
|
private Boolean isDeleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标地址
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标地址",name ="permeateTargetIp",example = "")
|
||||||
|
private String permeateTargetIp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标端口",name ="permeateTargetPort",example = "")
|
||||||
|
private Integer permeateTargetPort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 服务端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="服务端ID",name ="serverId",example = "")
|
||||||
|
private String serverId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* to客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="to客户端ID",name ="toClientId",example = "")
|
||||||
|
private String toClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="updateTime",example = "")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透端口",name ="visitorPort",example = "")
|
||||||
|
private Integer visitorPort;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,101 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.Long;
|
||||||
|
import java.lang.Boolean;
|
||||||
|
import java.lang.Integer;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyStoryCommand
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@Schema(title = "lazy_internal_network_client_permeate_client_mapping_story_command",description = "客户端渗透客户端映射")
|
||||||
|
public class LazyInternalNetworkClientPermeateClientMappingStoryCommand {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="createTime",example = "")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
@Schema(description ="描述",name ="describe",example = "")
|
||||||
|
private String describe;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* form客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="form客户端ID",name ="formClientId",example = "")
|
||||||
|
private String formClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="id",example = "")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 是否删除 默认否
|
||||||
|
*/
|
||||||
|
@Schema(description ="是否删除 默认否",name ="isDeleted",example = "")
|
||||||
|
private Boolean isDeleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标地址
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标地址",name ="permeateTargetIp",example = "")
|
||||||
|
private String permeateTargetIp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标端口",name ="permeateTargetPort",example = "")
|
||||||
|
private Integer permeateTargetPort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 服务端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="服务端ID",name ="serverId",example = "")
|
||||||
|
private String serverId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* to客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="to客户端ID",name ="toClientId",example = "")
|
||||||
|
private String toClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="updateTime",example = "")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透端口",name ="visitorPort",example = "")
|
||||||
|
private Integer visitorPort;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,101 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.Long;
|
||||||
|
import java.lang.Boolean;
|
||||||
|
import java.lang.Integer;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyUpdateCommand
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@Schema(title = "lazy_internal_network_client_permeate_client_mapping_update_command",description = "客户端渗透客户端映射")
|
||||||
|
public class LazyInternalNetworkClientPermeateClientMappingUpdateCommand {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="createTime",example = "")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
@Schema(description ="描述",name ="describe",example = "")
|
||||||
|
private String describe;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* form客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="form客户端ID",name ="formClientId",example = "")
|
||||||
|
private String formClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="id",example = "")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 是否删除 默认否
|
||||||
|
*/
|
||||||
|
@Schema(description ="是否删除 默认否",name ="isDeleted",example = "")
|
||||||
|
private Boolean isDeleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标地址
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标地址",name ="permeateTargetIp",example = "")
|
||||||
|
private String permeateTargetIp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标端口",name ="permeateTargetPort",example = "")
|
||||||
|
private Integer permeateTargetPort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 服务端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="服务端ID",name ="serverId",example = "")
|
||||||
|
private String serverId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* to客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="to客户端ID",name ="toClientId",example = "")
|
||||||
|
private String toClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="updateTime",example = "")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透端口",name ="visitorPort",example = "")
|
||||||
|
private Integer visitorPort;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,101 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.Long;
|
||||||
|
import java.lang.Boolean;
|
||||||
|
import java.lang.Integer;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDTO
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@Schema(title = "lazy_internal_network_client_permeate_client_mapping_command_dto",description = "客户端渗透客户端映射")
|
||||||
|
public class LazyInternalNetworkClientPermeateClientMappingDTO {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="createTime",example = "")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
@Schema(description ="描述",name ="describe",example = "")
|
||||||
|
private String describe;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* form客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="form客户端ID",name ="formClientId",example = "")
|
||||||
|
private String formClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="id",example = "")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 是否删除 默认否
|
||||||
|
*/
|
||||||
|
@Schema(description ="是否删除 默认否",name ="isDeleted",example = "")
|
||||||
|
private Boolean isDeleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标地址
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标地址",name ="permeateTargetIp",example = "")
|
||||||
|
private String permeateTargetIp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标端口",name ="permeateTargetPort",example = "")
|
||||||
|
private Integer permeateTargetPort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 服务端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="服务端ID",name ="serverId",example = "")
|
||||||
|
private String serverId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* to客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="to客户端ID",name ="toClientId",example = "")
|
||||||
|
private String toClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="updateTime",example = "")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透端口",name ="visitorPort",example = "")
|
||||||
|
private Integer visitorPort;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,144 @@
|
|||||||
|
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.server.standalone.application.LazyInternalNetworkClientPermeateClientMappingApplication;
|
||||||
|
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.server.standalone.domain.model.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMapping;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingRemoveCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingStoryCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingUpdateCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingQueryListCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingQueryOneCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.assembler.LazyInternalNetworkClientPermeateClientMappingDTOAssembler;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyInternalNetworkClientPermeateClientMappingDTO;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingRepository;
|
||||||
|
import java.util.List;
|
||||||
|
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyApplicationImpl
|
||||||
|
**/
|
||||||
|
@LazyApplication
|
||||||
|
public class LazyInternalNetworkClientPermeateClientMappingApplicationImpl implements LazyInternalNetworkClientPermeateClientMappingApplication {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
LazyInternalNetworkClientPermeateClientMappingRepository lazyInternalNetworkClientPermeateClientMappingRepository;
|
||||||
|
/**
|
||||||
|
* describe 新增客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingStoryCommand 新增客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射新增后领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<LazyInternalNetworkClientPermeateClientMapping> story(LazyInternalNetworkClientPermeateClientMappingStoryCommand lazyInternalNetworkClientPermeateClientMappingStoryCommand) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping = LazyInternalNetworkClientPermeateClientMappingDTOAssembler.INSTANCE.toLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMappingStoryCommand);
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingRepository.story(lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* describe 批量新增客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingStoryCommandList 批量新增客户端渗透客户端映射
|
||||||
|
* @return {@link Result<List<LazyInternalNetworkClientPermeateClientMapping>>} 客户端渗透客户端映射新增后领域对象集合
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<List<LazyInternalNetworkClientPermeateClientMapping>> batchStory(List<LazyInternalNetworkClientPermeateClientMappingStoryCommand> lazyInternalNetworkClientPermeateClientMappingStoryCommandList) {
|
||||||
|
List<LazyInternalNetworkClientPermeateClientMapping> lazyInternalNetworkClientPermeateClientMappingList = lazyInternalNetworkClientPermeateClientMappingStoryCommandList.stream().map( LazyInternalNetworkClientPermeateClientMappingDTOAssembler.INSTANCE::toLazyInternalNetworkClientPermeateClientMapping).collect(Collectors.toList());
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingRepository.batchStory(lazyInternalNetworkClientPermeateClientMappingList);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* describe 更新客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingUpdateCommand 更新客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<LazyInternalNetworkClientPermeateClientMapping> updateOne(LazyInternalNetworkClientPermeateClientMappingUpdateCommand lazyInternalNetworkClientPermeateClientMappingUpdateCommand) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping = LazyInternalNetworkClientPermeateClientMappingDTOAssembler.INSTANCE.toLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMappingUpdateCommand);
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingRepository.story(lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 查询单个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingQueryOneCommand 查询单个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMappingDTO>} 客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<LazyInternalNetworkClientPermeateClientMappingDTO> findOne(LazyInternalNetworkClientPermeateClientMappingQueryOneCommand lazyInternalNetworkClientPermeateClientMappingQueryOneCommand) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping = LazyInternalNetworkClientPermeateClientMappingDTOAssembler.INSTANCE.toLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMappingQueryOneCommand);
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingRepository.findOne(lazyInternalNetworkClientPermeateClientMapping).convert(LazyInternalNetworkClientPermeateClientMappingDTOAssembler.INSTANCE::fromLazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 查询多个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingQueryListCommand 查询多个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<List<LazyInternalNetworkClientPermeateClientMappingDTO>>} 客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<List<LazyInternalNetworkClientPermeateClientMappingDTO>> findList(LazyInternalNetworkClientPermeateClientMappingQueryListCommand lazyInternalNetworkClientPermeateClientMappingQueryListCommand) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping = LazyInternalNetworkClientPermeateClientMappingDTOAssembler.INSTANCE.toLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMappingQueryListCommand);
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingRepository.findList(lazyInternalNetworkClientPermeateClientMapping) .convert(lazyInternalNetworkClientPermeateClientMappings -> lazyInternalNetworkClientPermeateClientMappings.stream().map(LazyInternalNetworkClientPermeateClientMappingDTOAssembler.INSTANCE::fromLazyInternalNetworkClientPermeateClientMapping).collect(Collectors.toList())) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 分页查询多个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingQueryListCommand 分页查询多个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyPage<LazyInternalNetworkClientPermeateClientMappingDTO>>} 分页客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<LazyPage<LazyInternalNetworkClientPermeateClientMappingDTO>> findPage(int size,int current,LazyInternalNetworkClientPermeateClientMappingQueryListCommand lazyInternalNetworkClientPermeateClientMappingQueryListCommand) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping = LazyInternalNetworkClientPermeateClientMappingDTOAssembler.INSTANCE.toLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMappingQueryListCommand);
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingRepository.findPage(size,current,lazyInternalNetworkClientPermeateClientMapping) .convert(page -> page.convert(LazyInternalNetworkClientPermeateClientMappingDTOAssembler.INSTANCE::fromLazyInternalNetworkClientPermeateClientMapping)) ;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 删除客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingRemoveCommand 删除客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<LazyInternalNetworkClientPermeateClientMapping> remove(LazyInternalNetworkClientPermeateClientMappingRemoveCommand lazyInternalNetworkClientPermeateClientMappingRemoveCommand) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping = LazyInternalNetworkClientPermeateClientMappingDTOAssembler.INSTANCE.toLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMappingRemoveCommand);
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingRepository.remove(lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,142 @@
|
|||||||
|
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;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import org.wu.framework.web.spring.EasyController;
|
||||||
|
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 jakarta.annotation.Resource;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMapping;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingRemoveCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingStoryCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingUpdateCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingQueryListCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingQueryOneCommand;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.LazyInternalNetworkClientPermeateClientMappingApplication;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyInternalNetworkClientPermeateClientMappingDTO;
|
||||||
|
import java.util.List;
|
||||||
|
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyController
|
||||||
|
**/
|
||||||
|
@Tag(name = "客户端渗透客户端映射提供者")
|
||||||
|
@EasyController("/lazy/internal/network/client/permeate/client/mapping")
|
||||||
|
public class LazyInternalNetworkClientPermeateClientMappingProvider {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private LazyInternalNetworkClientPermeateClientMappingApplication lazyInternalNetworkClientPermeateClientMappingApplication;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 新增客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingStoryCommand 新增客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射新增后领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Operation(summary = "新增客户端渗透客户端映射")
|
||||||
|
@PostMapping("/story")
|
||||||
|
public Result<LazyInternalNetworkClientPermeateClientMapping> story(@RequestBody LazyInternalNetworkClientPermeateClientMappingStoryCommand lazyInternalNetworkClientPermeateClientMappingStoryCommand){
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingApplication.story(lazyInternalNetworkClientPermeateClientMappingStoryCommand);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* describe 批量新增客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingStoryCommandList 批量新增客户端渗透客户端映射
|
||||||
|
* @return {@link Result<List<LazyInternalNetworkClientPermeateClientMapping>>} 客户端渗透客户端映射新增后领域对象集合
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Operation(summary = "批量新增客户端渗透客户端映射")
|
||||||
|
@PostMapping("/batchStory")
|
||||||
|
public Result<List<LazyInternalNetworkClientPermeateClientMapping>> batchStory(@RequestBody List<LazyInternalNetworkClientPermeateClientMappingStoryCommand> lazyInternalNetworkClientPermeateClientMappingStoryCommandList){
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingApplication.batchStory(lazyInternalNetworkClientPermeateClientMappingStoryCommandList);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* describe 更新客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingUpdateCommand 更新客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Operation(summary = "更新客户端渗透客户端映射")
|
||||||
|
@PutMapping("/updateOne")
|
||||||
|
public Result<LazyInternalNetworkClientPermeateClientMapping> updateOne(@RequestBody LazyInternalNetworkClientPermeateClientMappingUpdateCommand lazyInternalNetworkClientPermeateClientMappingUpdateCommand){
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingApplication.updateOne(lazyInternalNetworkClientPermeateClientMappingUpdateCommand);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* describe 查询单个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingQueryOneCommand 查询单个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMappingDTO>} 客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Operation(summary = "查询单个客户端渗透客户端映射")
|
||||||
|
@GetMapping("/findOne")
|
||||||
|
public Result<LazyInternalNetworkClientPermeateClientMappingDTO> findOne(@ModelAttribute LazyInternalNetworkClientPermeateClientMappingQueryOneCommand lazyInternalNetworkClientPermeateClientMappingQueryOneCommand){
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingApplication.findOne(lazyInternalNetworkClientPermeateClientMappingQueryOneCommand);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* describe 查询多个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingQueryListCommand 查询多个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<List<LazyInternalNetworkClientPermeateClientMappingDTO>>} 客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Operation(summary = "查询多个客户端渗透客户端映射")
|
||||||
|
@GetMapping("/findList")
|
||||||
|
public Result<List<LazyInternalNetworkClientPermeateClientMappingDTO>> findList(@ModelAttribute LazyInternalNetworkClientPermeateClientMappingQueryListCommand lazyInternalNetworkClientPermeateClientMappingQueryListCommand){
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingApplication.findList(lazyInternalNetworkClientPermeateClientMappingQueryListCommand);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* describe 分页查询多个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingQueryListCommand 分页查询多个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyPage<LazyInternalNetworkClientPermeateClientMappingDTO>>} 分页客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Operation(summary = "分页查询多个客户端渗透客户端映射")
|
||||||
|
@GetMapping("/findPage")
|
||||||
|
public Result<LazyPage<LazyInternalNetworkClientPermeateClientMappingDTO>> findPage(@Parameter(description ="分页大小") @RequestParam(defaultValue = "10", value = "size") int size,
|
||||||
|
@Parameter(description ="当前页数") @RequestParam(defaultValue = "1", value = "current") int current,@ModelAttribute LazyInternalNetworkClientPermeateClientMappingQueryListCommand lazyInternalNetworkClientPermeateClientMappingQueryListCommand){
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingApplication.findPage(size,current,lazyInternalNetworkClientPermeateClientMappingQueryListCommand);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* describe 删除客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingRemoveCommand 删除客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Operation(summary = "删除客户端渗透客户端映射")
|
||||||
|
@DeleteMapping("/remove")
|
||||||
|
public Result<LazyInternalNetworkClientPermeateClientMapping> remove(@ModelAttribute LazyInternalNetworkClientPermeateClientMappingRemoveCommand lazyInternalNetworkClientPermeateClientMappingRemoveCommand){
|
||||||
|
return lazyInternalNetworkClientPermeateClientMappingApplication.remove(lazyInternalNetworkClientPermeateClientMappingRemoveCommand);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,101 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.internal.network.client.permeate.client.mapping;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.lang.String;
|
||||||
|
import java.lang.Long;
|
||||||
|
import java.lang.Boolean;
|
||||||
|
import java.lang.Integer;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDomain
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@Schema(title = "lazy_internal_network_client_permeate_client_mapping",description = "客户端渗透客户端映射")
|
||||||
|
public class LazyInternalNetworkClientPermeateClientMapping {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="createTime",example = "")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
@Schema(description ="描述",name ="describe",example = "")
|
||||||
|
private String describe;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* form客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="form客户端ID",name ="formClientId",example = "")
|
||||||
|
private String formClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="id",example = "")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 是否删除 默认否
|
||||||
|
*/
|
||||||
|
@Schema(description ="是否删除 默认否",name ="isDeleted",example = "")
|
||||||
|
private Boolean isDeleted;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标地址
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标地址",name ="permeateTargetIp",example = "")
|
||||||
|
private String permeateTargetIp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透目标端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透目标端口",name ="permeateTargetPort",example = "")
|
||||||
|
private Integer permeateTargetPort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 服务端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="服务端ID",name ="serverId",example = "")
|
||||||
|
private String serverId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* to客户端ID
|
||||||
|
*/
|
||||||
|
@Schema(description ="to客户端ID",name ="toClientId",example = "")
|
||||||
|
private String toClientId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Schema(description ="",name ="updateTime",example = "")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 渗透端口
|
||||||
|
*/
|
||||||
|
@Schema(description ="渗透端口",name ="visitorPort",example = "")
|
||||||
|
private Integer visitorPort;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,106 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.internal.network.client.permeate.client.mapping;
|
||||||
|
|
||||||
|
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.server.standalone.domain.model.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMapping;
|
||||||
|
import java.util.List;
|
||||||
|
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyDomainRepository
|
||||||
|
**/
|
||||||
|
|
||||||
|
public interface LazyInternalNetworkClientPermeateClientMappingRepository {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 新增客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 新增客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射新增后领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<LazyInternalNetworkClientPermeateClientMapping> story(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 批量新增客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingList 批量新增客户端渗透客户端映射
|
||||||
|
* @return {@link Result<List<LazyInternalNetworkClientPermeateClientMapping>>} 客户端渗透客户端映射新增后领域对象集合
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<List<LazyInternalNetworkClientPermeateClientMapping>> batchStory(List<LazyInternalNetworkClientPermeateClientMapping> lazyInternalNetworkClientPermeateClientMappingList);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 查询单个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 查询单个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<LazyInternalNetworkClientPermeateClientMapping> findOne(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 查询多个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 查询多个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<List<LazyInternalNetworkClientPermeateClientMapping>>} 客户端渗透客户端映射DTO对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<List<LazyInternalNetworkClientPermeateClientMapping>> findList(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 分页查询多个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param size 当前页数
|
||||||
|
* @param current 当前页
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 分页查询多个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyPage<LazyInternalNetworkClientPermeateClientMapping>>} 分页客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<LazyPage<LazyInternalNetworkClientPermeateClientMapping>> findPage(int size,int current,LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 删除客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 删除客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<LazyInternalNetworkClientPermeateClientMapping> remove(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 是否存在客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 是否存在客户端渗透客户端映射
|
||||||
|
* @return {@link Result<Boolean>} 客户端渗透客户端映射是否存在
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
Result<Boolean> exists(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.converter;
|
||||||
|
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMapping;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity.LazyInternalNetworkClientPermeateClientMappingDO;
|
||||||
|
import org.mapstruct.factory.Mappers;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureConverter
|
||||||
|
**/
|
||||||
|
@Mapper
|
||||||
|
public interface LazyInternalNetworkClientPermeateClientMappingConverter {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe MapStruct 创建的代理对象
|
||||||
|
*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
LazyInternalNetworkClientPermeateClientMappingConverter INSTANCE = Mappers.getMapper(LazyInternalNetworkClientPermeateClientMappingConverter.class);
|
||||||
|
/**
|
||||||
|
* describe 实体对象 转换成领域对象
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingDO 客户端渗透客户端映射实体对象
|
||||||
|
* @return {@link LazyInternalNetworkClientPermeateClientMapping} 客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping toLazyInternalNetworkClientPermeateClientMapping(LazyInternalNetworkClientPermeateClientMappingDO lazyInternalNetworkClientPermeateClientMappingDO);
|
||||||
|
/**
|
||||||
|
* describe 领域对象 转换成实体对象
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 客户端渗透客户端映射领域对象
|
||||||
|
* @return {@link LazyInternalNetworkClientPermeateClientMappingDO} 客户端渗透客户端映射实体对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
LazyInternalNetworkClientPermeateClientMappingDO fromLazyInternalNetworkClientPermeateClientMapping(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
}
|
@ -0,0 +1,18 @@
|
|||||||
|
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.server.standalone.infrastructure.entity.LazyInternalNetworkClientPermeateClientMappingDO;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureLazyJpa
|
||||||
|
**/
|
||||||
|
@LazyRepository
|
||||||
|
public interface LazyInternalNetworkClientPermeateClientMappingLazyJpaRepository extends LazyJpaRepository<LazyInternalNetworkClientPermeateClientMappingDO,Long> {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructureMapper
|
||||||
|
**/
|
||||||
|
|
||||||
|
public interface LazyInternalNetworkClientPermeateClientMappingMapper {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,152 @@
|
|||||||
|
package org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.persistence;
|
||||||
|
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity.LazyInternalNetworkClientPermeateClientMappingDO;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.converter.LazyInternalNetworkClientPermeateClientMappingConverter;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.mapper.LazyInternalNetworkClientPermeateClientMappingMapper;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMappingRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
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.server.standalone.domain.model.lazy.internal.network.client.permeate.client.mapping.LazyInternalNetworkClientPermeateClientMapping;
|
||||||
|
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;
|
||||||
|
/**
|
||||||
|
* describe 客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
* @see org.wu.framework.lazy.orm.core.persistence.reverse.lazy.ddd.DefaultDDDLazyInfrastructurePersistence
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public class LazyInternalNetworkClientPermeateClientMappingRepositoryImpl implements LazyInternalNetworkClientPermeateClientMappingRepository {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
LazyLambdaStream lazyLambdaStream;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 新增客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 新增客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射新增后领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<LazyInternalNetworkClientPermeateClientMapping> story(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMappingDO lazyInternalNetworkClientPermeateClientMappingDO = LazyInternalNetworkClientPermeateClientMappingConverter.INSTANCE.fromLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
lazyLambdaStream.upsert(lazyInternalNetworkClientPermeateClientMappingDO);
|
||||||
|
return ResultFactory.successOf();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 批量新增客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMappingList 批量新增客户端渗透客户端映射
|
||||||
|
* @return {@link Result<List<LazyInternalNetworkClientPermeateClientMapping>>} 客户端渗透客户端映射新增后领域对象集合
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<List<LazyInternalNetworkClientPermeateClientMapping>> batchStory(List<LazyInternalNetworkClientPermeateClientMapping> lazyInternalNetworkClientPermeateClientMappingList) {
|
||||||
|
List<LazyInternalNetworkClientPermeateClientMappingDO> lazyInternalNetworkClientPermeateClientMappingDOList = lazyInternalNetworkClientPermeateClientMappingList.stream().map(LazyInternalNetworkClientPermeateClientMappingConverter.INSTANCE::fromLazyInternalNetworkClientPermeateClientMapping).collect(Collectors.toList());
|
||||||
|
lazyLambdaStream.upsert(lazyInternalNetworkClientPermeateClientMappingDOList);
|
||||||
|
return ResultFactory.successOf();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 查询单个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 查询单个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<LazyInternalNetworkClientPermeateClientMapping> findOne(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMappingDO lazyInternalNetworkClientPermeateClientMappingDO = LazyInternalNetworkClientPermeateClientMappingConverter.INSTANCE.fromLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMappingOne = lazyLambdaStream.selectOne(LazyWrappers.lambdaWrapperBean(lazyInternalNetworkClientPermeateClientMappingDO), LazyInternalNetworkClientPermeateClientMapping.class);
|
||||||
|
return ResultFactory.successOf(lazyInternalNetworkClientPermeateClientMappingOne);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 查询多个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 查询多个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<List<LazyInternalNetworkClientPermeateClientMapping>>} 客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<List<LazyInternalNetworkClientPermeateClientMapping>> findList(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMappingDO lazyInternalNetworkClientPermeateClientMappingDO = LazyInternalNetworkClientPermeateClientMappingConverter.INSTANCE.fromLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
List<LazyInternalNetworkClientPermeateClientMapping> lazyInternalNetworkClientPermeateClientMappingList = lazyLambdaStream.selectList(LazyWrappers.lambdaWrapperBean(lazyInternalNetworkClientPermeateClientMappingDO), LazyInternalNetworkClientPermeateClientMapping.class);
|
||||||
|
return ResultFactory.successOf(lazyInternalNetworkClientPermeateClientMappingList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 分页查询多个客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param size 当前页数
|
||||||
|
* @param current 当前页
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 分页查询多个客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyPage<LazyInternalNetworkClientPermeateClientMapping>>} 分页客户端渗透客户端映射领域对象
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<LazyPage<LazyInternalNetworkClientPermeateClientMapping>> findPage(int size,int current,LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMappingDO lazyInternalNetworkClientPermeateClientMappingDO = LazyInternalNetworkClientPermeateClientMappingConverter.INSTANCE.fromLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
LazyPage<LazyInternalNetworkClientPermeateClientMapping> lazyPage = new LazyPage<>(current,size);
|
||||||
|
LazyPage<LazyInternalNetworkClientPermeateClientMapping> lazyInternalNetworkClientPermeateClientMappingLazyPage = lazyLambdaStream.selectPage(LazyWrappers.lambdaWrapperBean(lazyInternalNetworkClientPermeateClientMappingDO),lazyPage, LazyInternalNetworkClientPermeateClientMapping.class);
|
||||||
|
return ResultFactory.successOf(lazyInternalNetworkClientPermeateClientMappingLazyPage);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 删除客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 删除客户端渗透客户端映射
|
||||||
|
* @return {@link Result<LazyInternalNetworkClientPermeateClientMapping>} 客户端渗透客户端映射
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<LazyInternalNetworkClientPermeateClientMapping> remove(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMappingDO lazyInternalNetworkClientPermeateClientMappingDO = LazyInternalNetworkClientPermeateClientMappingConverter.INSTANCE.fromLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
// lazyLambdaStream.delete(LazyWrappers.lambdaWrapperBean(lazyInternalNetworkClientPermeateClientMappingDO));
|
||||||
|
return ResultFactory.successOf();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* describe 是否存在客户端渗透客户端映射
|
||||||
|
*
|
||||||
|
* @param lazyInternalNetworkClientPermeateClientMapping 客户端渗透客户端映射领域对象
|
||||||
|
* @return {@link Result<Boolean>} 是否存在 true 存在,false 不存在
|
||||||
|
|
||||||
|
* @author Jia wei Wu
|
||||||
|
* @date 2024/09/17 09:55 晚上
|
||||||
|
**/
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Result<Boolean> exists(LazyInternalNetworkClientPermeateClientMapping lazyInternalNetworkClientPermeateClientMapping) {
|
||||||
|
LazyInternalNetworkClientPermeateClientMappingDO lazyInternalNetworkClientPermeateClientMappingDO = LazyInternalNetworkClientPermeateClientMappingConverter.INSTANCE.fromLazyInternalNetworkClientPermeateClientMapping(lazyInternalNetworkClientPermeateClientMapping);
|
||||||
|
Boolean exists=lazyLambdaStream.exists(LazyWrappers.lambdaWrapperBean(lazyInternalNetworkClientPermeateClientMappingDO));
|
||||||
|
return ResultFactory.successOf(exists);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
<?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.server.standalone.infrastructure.mapper.LazyInternalNetworkClientPermeateClientMappingMapper">
|
||||||
|
<resultMap id="BaseResultMap" type="org.framework.lazy.cloud.network.heartbeat.server.standalone.infrastructure.entity.LazyInternalNetworkClientPermeateClientMappingDO">
|
||||||
|
<result column="create_time" property="createTime" />
|
||||||
|
<result column="`describe`" property="describe" />
|
||||||
|
<result column="form_client_id" property="formClientId" />
|
||||||
|
<id column="id" property="id" />
|
||||||
|
<result column="is_deleted" property="isDeleted" />
|
||||||
|
<result column="permeate_target_ip" property="permeateTargetIp" />
|
||||||
|
<result column="permeate_target_port" property="permeateTargetPort" />
|
||||||
|
<result column="server_id" property="serverId" />
|
||||||
|
<result column="to_client_id" property="toClientId" />
|
||||||
|
<result column="update_time" property="updateTime" />
|
||||||
|
<result column="visitor_port" property="visitorPort" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
x
Reference in New Issue
Block a user