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

import com.eactive.apim.portal.approval.entity.Approver;
import com.eactive.eai.data.mapper.GenericMapper;
import com.eactive.eai.rms.common.acl.user.mapper.UserUIMapper;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;

@Mapper(componentModel = "spring",uses = {UserUIMapper.class}, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface PortalApprovalApproverUIMapper extends GenericMapper<PortalApprovalApproverUI, Approver> {



    @Override
    @Mapping(target = "ordinal", source = "id.ordinal")
    PortalApprovalApproverUI toVo(Approver approver);
}
