package com.jwipc.order.client.convert;

import com.jwipc.order.clent.dto.PurchaseDetailDTO;
import com.jwipc.order.clent.dto.PurchaseOrderDTO;
import com.jwipc.order.entity.PurchaseOrder;
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 PurchaseOrderClientConvert {

    PurchaseOrderDTO entityToDTO(PurchaseOrder purchaseOrder);

    List<PurchaseOrderDTO> entityToDTOList(List<PurchaseOrder> purchaseOrder);
}
