package com.dk.mdm.infrastructure.convert.ivt;

import com.dk.mdm.model.pojo.ivt.OutboundItem;
import com.dk.mdm.model.response.ivt.OutboundItemResponse;
import com.dk.mdm.model.vo.ivt.OutboundItemVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @desc   : OutboundItem转换类
 * @author : 付斌
 * @date   : 2024-02-28 10:18
 */
@Mapper(componentModel = "spring")
public interface OutboundItemConvert {

    /**
     * @desc   : 转换vo为pojo
     * @author : 付斌
     * @date   : 2024-02-28 15:25
     */
    OutboundItem convertToPo(OutboundItemVO outboundVO);

    /**
     * @desc   : 转换Res为VO
     * @date   : 2024/3/29 11:10
     * @author : 寇珊珊
     */
    OutboundItemVO convertResToVO(OutboundItemResponse outboundItemResponse);

    /**
     * @desc   : 转换ResList为VOList
     * @date   : 2024/3/29 11:10
     * @author : 寇珊珊
     */
    List<OutboundItemVO> convertResListToVOList(List<OutboundItemResponse> outboundItemResponse);
}
