package com.oauth.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.oauth.system.entity.SysRolePermission;

import java.util.List;

public interface ISysRolePermissionService extends IService<SysRolePermission> {

    List<SysRolePermission> selectInPermId(List<Integer> ids);

    List<SysRolePermission>  selectInUser(List<String> roleIds, List<String> permIds);

    /**
     * 保存授权 将上次的权限和这次作比较 差异处理提高效率
     * @param roleId
     * @param permissionIds
     * @param lastPermissionIds
     */
    public void saveRolePermission(String roleId, List<String> permissionIds, List<String> lastPermissionIds);
}
