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

import com.kamco.cd.kamcoback.menu.dto.MyMenuDto;
import com.kamco.cd.kamcoback.postgres.core.MenuCoreService;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@RequiredArgsConstructor
@Transactional(readOnly = true)
public class MyMenuService {

  private final MenuCoreService menuCoreService;

  /**
   * 권한별 메뉴 목록 조회
   *
   * @param role
   * @return
   */
  public List<MyMenuDto.Basic> getFindByRole(String role) {
    return menuCoreService.getFindByRole(role);
  }
}
