package com.eactive.eai.rms.onl.apim.portalInquiry;

import com.eactive.apim.portal.qna.entity.InquiryComment;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;

import java.util.List;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface PortalInquiryCommentUIMapper {

    @Mapping(target = "inquiryId", source = "inquiry.id")
    PortalInquiryCommentUI toVo(InquiryComment entity);

    List<PortalInquiryCommentUI> toVoList(List<InquiryComment> entities);
}
