package com.zioinfo.cms.uiws.system.mapper;

import com.zioinfo.cms.uiws.system.model.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/** 메뉴(tb_uiws_menu) 매퍼. 원본 SysMenuRepository 변환. */
@Mapper
public interface UiwsSystemMenuMapper {
    List<SysMenu> searchAll(@Param("offset") int offset, @Param("size") int size);
    long countAll();
    List<SysMenu> search(@Param("keyword") String keyword);
    List<SysMenu> findAllOrdered();
    SysMenu findById(@Param("menuId") String menuId);
    boolean existsById(@Param("menuId") String menuId);
    boolean existsByParentMenuId(@Param("parentMenuId") String parentMenuId);
    boolean existsByProgramId(@Param("programId") String programId);
    int insert(SysMenu menu);
    int update(SysMenu menu);
    int deleteById(@Param("menuId") String menuId);
}
