package incheon.product.common.theme.mapper;

import incheon.com.config.annotation.ExternalDB;
import incheon.product.common.theme.vo.ThemeCategoryVO;
import incheon.product.common.theme.vo.ThemeLayerVO;
import incheon.product.common.theme.vo.ThemeVO;
import org.apache.ibatis.annotations.Param;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;

import java.util.List;

/**
 * 공통 주제도 매퍼. 2D/3D 공통 주제도/레이어/카테고리 데이터를 조회한다.
 */
@Mapper("commonThemeMapper")
@ExternalDB
public interface CommonThemeMapper {

    /** 카테고리 목록 조회 */
    List<ThemeCategoryVO> selectCategories();

    /** 주제도 목록 조회 */
    List<ThemeVO> selectThemes();

    /** 주제도 상세 조회 */
    ThemeVO selectThemeById(@Param("themeId") String themeId);

    /** 주제도별 레이어 목록 조회 */
    List<ThemeLayerVO> selectLayersByThemeId(@Param("themeId") String themeId);
}
