package com.jwipc.order.client.convert;

import com.jwipc.order.clent.dto.PurchaseDetailDTO;
import com.jwipc.order.entity.PurchaseOrderDetail;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author wt
 * @version 1.0
 * @since 2024/3/9
 */
@Mapper(componentModel = "spring")
public interface PurchaseOrderDetailClientConvert {
    List<PurchaseOrderDetail> dtoToEntityList(List<PurchaseDetailDTO> detailQuery);

    List<PurchaseDetailDTO> entityToDtoList(List<PurchaseOrderDetail> details);

    PurchaseDetailDTO entityToDTO(PurchaseOrderDetail purchaseOrderDetail);
}
