package com.jwipc.tender.convert;

import com.jwipc.inquiry.dto.CreatePriceInfoDTO;
import com.jwipc.tender.dto.*;
import com.jwipc.tender.entity.Tender;
import com.jwipc.tender.model.po.TenderCostContractPO;
import com.jwipc.tender.model.po.TenderCreatePriceInfoPO;
import com.jwipc.tender.model.po.TenderListPO;
import org.mapstruct.Mapper;

import java.util.List;


@Mapper(componentModel = "spring")
public interface TenderConvert {
    List<TenderListDTO> pos2Dtos(List<TenderListPO> tenderListPOS);

    Tender dto2Entity(TenderBaseDTO tenderDto);

    TenderBaseDTO entity2Dto(Tender tender);

    List<TenderBenchmarksListDTO> pos2Dtos1(List<TenderListPO> list);

    Tender dto2Entity1(SubmitBenchmarksDTO submitBenchmarksDTO);

    List<CreatePriceInfoDTO> po2DtoList(List<TenderCreatePriceInfoPO> createPriceInfoPOS);

    List<TenderCostContractDTO> costContractPOs2DTOs(List<TenderCostContractPO> listPOS);
}
