All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.didiglobal.logi.security.dao.RolePermissionDao Maven / Gradle / Ivy

Go to download

logi-security 提供项目大多都需要的一些基础功能(用户、角色、权限、登录、注册、操作记录)

There is a newer version: 2.10.19
Show newest version
package com.didiglobal.logi.security.dao;

import com.didiglobal.logi.security.common.entity.RolePermission;

import java.util.List;

/**
 * @author cjm
 */
public interface RolePermissionDao {

    /**
     * 批量插入
     * @param rolePermissionList 角色与权限关联信息
     */
    void insertBatch(List rolePermissionList);

    /**
     * 根据角色id,删除角色权限关联信息
     * @param roleId 角色id
     */
    void deleteByRoleId(Integer roleId);

    /**
     * 获取角色拥有的权限idList
     * @param roleId 角色id
     * @return 权限idList
     */
    List selectPermissionIdListByRoleId(Integer roleId);

    /**
     * 根据角色idList,获取权限idList
     * @param roleIdList 角色idList
     * @return 权限idList
     */
    List selectPermissionIdListByRoleIdList(List roleIdList);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy