package com.jwipc.sys.convert;

import com.jwipc.sys.dto.DealtWithTargetInfoDTO;
import com.jwipc.sys.dto.DealtWithTargetTypeDTO;
import com.jwipc.sys.entity.DealtWithTargetInfo;
import com.jwipc.sys.entity.DealtWithTargetType;
import com.jwipc.sys.model.po.DealtWithTargetInfoPO;
import com.jwipc.sys.model.po.DealtWithTargetTypePO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/1/30 12:10
 * @desc
 */
@Mapper(componentModel = "spring")
public interface DealtInfoConvert {
    List<DealtWithTargetInfoDTO> po2DTOList(List<DealtWithTargetInfoPO> dealtWithTargetTypePOS);

    DealtWithTargetInfoDTO entity2DTO(DealtWithTargetInfo info);

    DealtWithTargetInfoDTO po2DTO(DealtWithTargetInfoPO info);

    DealtWithTargetInfo dto2Entity(DealtWithTargetInfoDTO param);
}
