package incheon.ags.ias.role.service;

import incheon.ags.ias.role.vo.RoleSearchVO;
import incheon.ags.ias.role.vo.RoleVO;

import java.util.List;
import java.util.Map;

public interface RoleService {
    List<Map<String,Object>> selectRoleList(RoleSearchVO roleSearchVO);
    RoleVO selectRoleById(RoleVO roleVO);
    int selectRoleCnt(RoleSearchVO roleSearchVO);
    int insertRole(RoleVO roleVO);
    int updateRole(RoleVO roleVO);
    int deleteRole(RoleVO roleVO);
    List<Map<String,Object>> selectSysList();
    RoleVO selectRoleBySysAndType(String sysCd, String roleTypeCd);
    int updateRoleCodeCascadeWithSys(String sysCd, String oldRoleCd, String newRoleCd);

    // 규칙명(IP접근제어) 조회/수정
    String selectRulNm(RoleVO roleVO);
    int updateRulNm(RoleVO roleVO);
}
