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_role) 매퍼. 원본 RoleRepository 변환. */
@Mapper
public interface RoleMapper {
    List<SysRole> search(@Param("keyword") String keyword,
                         @Param("offset") int offset, @Param("size") int size);
    long countSearch(@Param("keyword") String keyword);
    SysRole findById(@Param("roleId") String roleId);
    boolean existsById(@Param("roleId") String roleId);
    int insert(SysRole role);
    int update(SysRole role);
    int deleteById(@Param("roleId") String roleId);
}
