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

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

/** 부서-권한 매핑(tb_uiws_dept_role) 매퍼. 원본 DeptRoleRepository 변환. */
@Mapper
public interface DeptRoleMapper {
    List<String> findRoleIdsByDeptId(@Param("deptId") String deptId);
    boolean exists(@Param("deptId") String deptId, @Param("roleId") String roleId);
    boolean existsByRoleId(@Param("roleId") String roleId);
    int insert(@Param("deptId") String deptId, @Param("roleId") String roleId, @Param("actor") String actor);
    int delete(@Param("deptId") String deptId, @Param("roleId") String roleId);
}
