com.nbsaas.boot.system.ext.apis.MenuExtApi Maven / Gradle / Ivy
package com.nbsaas.boot.system.ext.apis;
import com.nbsaas.boot.rest.response.ListResponse;
import com.nbsaas.boot.rest.response.ResponseObject;
import com.nbsaas.boot.system.ext.domain.request.MenuDragRequest;
import com.nbsaas.boot.system.ext.domain.request.UpdateRoleMenuRequest;
import com.nbsaas.boot.system.ext.domain.simple.MenuExtSimple;
import java.util.List;
public interface MenuExtApi {
ListResponse tree(Long userId, Integer version);
/**
* 获取系统的菜单树
*
* @return
*/
ListResponse root();
/**
* 根据角色获取系统菜单
*
* @param role
* @return
*/
ListResponse findByRole(Long role);
/**
* 获取某个角色的菜单id集合
*
* @param role
* @return
*/
ListResponse selectForPermission(Long role);
/**
* 获取这个角色的权限集合
*
* @param role
* @return
*/
List permissions(Long role);
/**
* 获取某个用户的权限
*
* @param userId
* @return
*/
ListResponse selectPermissionByUser(Long userId);
/**
* 更新角色的菜单
*
* @param request
* @return
*/
ResponseObject> updateRoleMenus(UpdateRoleMenuRequest request);
/**
* 菜单拖动
*
* @param request
* @return
*/
ResponseObject> drag(MenuDragRequest request);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy