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

com.didiglobal.logi.security.service.PermissionService Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.didiglobal.logi.security.service;

import com.didiglobal.logi.security.common.dto.permission.PermissionDTO;
import com.didiglobal.logi.security.common.vo.permission.PermissionTreeVO;

import java.util.List;

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

    /**
     * 构建权限树,并标注拥有的权限
     * @param permissionHasList 拥有的权限(只包含权限id)
     * @return PermissionVo 权限树
     */
    PermissionTreeVO buildPermissionTreeWithHas(List permissionHasList);

    /**
     * 构建权限树(返回所有权限点)
     * @return PermissionVo 权限树
     */
    PermissionTreeVO buildPermissionTree();

    /**
     * 根据角色id构建权限树(返回所有权限点)
     * @param roleId 角色id
     * @return PermissionVo 权限树
     */
    PermissionTreeVO buildPermissionTreeByRoleId(Integer roleId);

    /**
     * 保存权限
     * @param permissionDTOList 权限信息
     */
    void savePermission(List permissionDTOList);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy