package com.intelligentHealthCare.service.impl;
import com.intelligentHealthCare.config.CacheNameConfig;
import com.intelligentHealthCare.dto.MenuDto;
import com.intelligentHealthCare.entity.*;
import com.intelligentHealthCare.exception.BizException;
import com.intelligentHealthCare.interceptor.AccountInfoInterceptor;
import com.intelligentHealthCare.repository.AccountRepository;
import com.intelligentHealthCare.repository.MenuRepository;
import com.intelligentHealthCare.repository.RoleMenuPermissionRepository;
import com.intelligentHealthCare.service.MenuService;
import com.intelligentHealthCare.service.RoleMenuPermissionService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import java.util.*;
import java.util.stream.Collectors;
@Service
@CacheConfig(cacheNames = {CacheNameConfig.PLATFORM_MENU_ACCOUNT, CacheNameConfig.PLATFORM_MENU})
public class MenuServiceImpl extends AbstractSimpleJpaService