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

import com.dk.mdm.model.pojo.ivt.Inbound;
import com.dk.mdm.model.pojo.ivt.InboundItem;
import com.dk.mdm.model.response.ivt.InboundItemResponse;
import com.dk.mdm.model.vo.ivt.InboundItemVO;
import com.dk.mdm.model.vo.ivt.InboundVO;
import org.mapstruct.Mapper;

/**
 * @desc   : 入库明细实体类型转换
 * @date   : 2024/3/7 14:30
 * @author : 寇珊珊
 */
@Mapper(componentModel = "spring")
public interface InboundItemConvert {

    /**
     * @desc   : VO转pojo
     * @date   : 2024/3/7 14:31
     * @author : 寇珊珊
     */
    InboundItem convertToPo(InboundItemVO inboundItemVO);

    /**
     * @desc   : res转VO
     * @date   : 2024/3/7 14:31
     * @author : 寇珊珊
     */
    InboundItemVO  convertResTVO(InboundItemResponse inboundItemResponse);

    /**
     * @desc   : vo转res
     * @date   : 2024/4/17 11:00
     * @author : 寇珊珊
     */
    InboundItemResponse  convertVOToRes(InboundItemVO inboundItemVO);
}
