package org.jeecg.modules.resManager.roleRescatalog.service;

import org.jeecg.modules.resManager.roleRescatalog.entity.RoleRescatalog;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: 角色资源表
 * @Author: jeecg-boot
 * @Date:   2022-07-20
 * @Version: V1.0
 */
public interface IRoleRescatalogService extends IService<RoleRescatalog> {
    /**
     * 保存授权/先删后增
     * @param roleId
     * @param rescatalogIds
     */
    public void saveRolePermission(String roleId,String rescatalogIds);

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

}
