package com.jwipc.sys.convert;

import com.jwipc.sys.dto.ProductApiDTO;
import com.jwipc.sys.dto.ProductStockApiDTO;
import com.jwipc.sys.entity.ProductInfo;
import com.jwipc.sys.entity.ProductStock;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/3/18 13:30
 * @desc
 */
@Mapper(componentModel = "spring")
public interface ProductApiConvert {
    ProductInfo productApiDTO2Entity(ProductApiDTO productApiDTO);

    ProductStock productStockApiDTO2Entity(ProductStockApiDTO productStockApiDTO);

    List<ProductStock> productStockApiDTO2Entities(List<ProductStockApiDTO> productStockApiDTOList);
}
