You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
993 B
47 lines
993 B
/**
|
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
|
*
|
|
* https://www.renren.io
|
|
*
|
|
* 版权所有,侵权必究!
|
|
*/
|
|
|
|
package com.epmet.service;
|
|
|
|
import com.epmet.commons.mybatis.service.BaseService;
|
|
import com.epmet.entity.SysRoleMenuEntity;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 角色菜单关系
|
|
*
|
|
* @author Mark sunlightcs@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
public interface SysRoleMenuService extends BaseService<SysRoleMenuEntity> {
|
|
|
|
/**
|
|
* 根据角色ID,获取菜单ID列表
|
|
*/
|
|
List<Long> getMenuIdList(Long roleId);
|
|
|
|
/**
|
|
* 保存或修改
|
|
* @param roleId 角色ID
|
|
* @param menuIdList 菜单ID列表
|
|
*/
|
|
void saveOrUpdate(Long roleId, List<Long> menuIdList);
|
|
|
|
/**
|
|
* 根据角色id,删除角色菜单关系
|
|
* @param roleId 角色id
|
|
*/
|
|
void deleteByRoleId(Long roleId);
|
|
|
|
/**
|
|
* 根据菜单id,删除角色菜单关系
|
|
* @param menuId 菜单id
|
|
*/
|
|
void deleteByMenuId(Long menuId);
|
|
}
|
|
|