//package com.eactive.eai.rms.onl.apim.template.mapper;
//
//import org.mapstruct.Mapper;
//import org.mapstruct.Named;
//import org.mapstruct.ReportingPolicy;
//import org.springframework.stereotype.Component;
//
//import com.eactive.eai.rms.data.entity.onl.apim.template.MessageTemplate;
//import com.eactive.eai.rms.onl.apim.template.dto.MessageTemplateUI;
//
//@Mapper(componentModel = "spring",
////        uses = {CommonMapper.class, StaffUserMapper.class},
//        unmappedTargetPolicy = ReportingPolicy.IGNORE)
//@Component
//public abstract class MessageTemplateMapper {
//
////    @Autowired
////    StaffUserMapper staffUserMapper;
//
////    @Mapping(source = "enabled", target = "useYn", qualifiedByName = "booleanToYN")
////    @Mapping(source = "userIds", target = "users", qualifiedByName = "byEsntlIds")
////    public abstract MessageTemplate map(MessageTemplateDTO dto);
////
////
////    @Mapping(source = "useYn", target = "useYn", qualifiedByName = "strToBool")
////    @Mapping(source = "users", target = "userIds", qualifiedByName = "toStringEsntlId")
//    public abstract MessageTemplateUI map(MessageTemplate entity);
//
//    @Named("booleanToYN")
//    String booleanToYN(boolean value) {
//        return value ? "Y" : "N";
//    }
//
//    @Named("strToBool")
//    boolean strToBool(String value) {
//        return "Y".equals(value);
//    }
//
////    @Named("byEsntlIds")
////    List<StaffUser> byIds(List<String> userIds) {
////        return staffUserMapper.byIds(userIds);
////    }
////
////    @Named("toStringEsntlId")
////    List<String> toStringId(List<StaffUser> users) {
////        return users.stream().map(StaffUser::getEsntlId).collect(Collectors.toList());
////    }
//}
