package com.kamco.cd.kamcoback.menu.service;

import com.kamco.cd.kamcoback.menu.dto.MenuDto;
import com.kamco.cd.kamcoback.postgres.core.MenuCoreService;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class MenuService {
  private final MenuCoreService menuCoreService;

  @Cacheable(value = "menuFindAll")
  public List<MenuDto.Basic> getFindAll() {
    return menuCoreService.getFindAll();
  }
}
