first commit

This commit is contained in:
yy
2026-09-11 17:34:14 +08:00
commit dfb943919d
622 changed files with 26659 additions and 0 deletions
@@ -0,0 +1,65 @@
package com.metalloop.modules.auth.converter;
import com.metalloop.modules.auth.model.req.SysEnterpriseQueryReqDto;
import com.metalloop.modules.auth.model.req.SysEnterpriseReqDto;
import com.metalloop.modules.auth.model.resp.SysEnterpriseRespDto;
import com.metalloop.modules.auth.model.po.SysEnterprise;
import com.metalloop.modules.auth.model.query.SysEnterpriseQuery;
import org.mapstruct.Builder;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
/**
* 企业信息主转换器
*
* @author yy
* @since 2026-09-10
*/
@SuppressWarnings("UnmappedTargetProperties")
@Mapper(builder = @Builder(disableBuilder = true))
public interface SysEnterpriseConverter {
SysEnterpriseConverter INSTANCE = Mappers.getMapper(SysEnterpriseConverter.class);
/**
* 实体转换为响应 DTO
*
* @param sysEnterprise 实体
* @return 转换后的数据
*/
SysEnterpriseRespDto toRespDto(SysEnterprise sysEnterprise);
/**
* 实体列表转换为响应 DTO 列表
*
* @param sysEnterprises 实体列表
* @return 转换后的数据
*/
List<SysEnterpriseRespDto> toRespDto(List<SysEnterprise> sysEnterprises);
/**
* 请求 DTO 转换为实体
*
* @param sysEnterpriseReqDto 请求 DTO
* @return 转换后的数据
*/
SysEnterprise fromReqDto(SysEnterpriseReqDto sysEnterpriseReqDto);
/**
* 请求 DTO 列表转换为实体列表
*
* @param sysEnterpriseReqDtos 请求 DTO 列表
* @return 转换后的数据
*/
List<SysEnterprise> fromReqDto(List<SysEnterpriseReqDto> sysEnterpriseReqDtos);
/**
* 查询请求 DTO 转换为查询对象
*
* @param sysEnterpriseQueryReqDto 查询请求DTO
* @return 转换后的数据
*/
SysEnterpriseQuery fromQueryReqDtoToQuery(SysEnterpriseQueryReqDto sysEnterpriseQueryReqDto);
}