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

import com.eactive.apim.portal.qna.entity.Inquiry;
import org.mapstruct.*;

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

	@Mapping(target = "inquirer", source = "inquirer")
	@Mapping(target = "responderId", source = "responder.userid")
	@Mapping(target = "responderName", source = "responder.username")
	PortalInquiryUI toVo(Inquiry entity);

}
