日照智慧社区接口服务
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.
 
 
 
 
 

66 lines
1.3 KiB

/**
* Copyright (c) 2018 人人开源 All rights reserved.
*
* https://www.renren.io
*
* 版权所有,侵权必究!
*/
package com.epmet.service;
import com.epmet.commons.mybatis.service.BaseService;
import com.epmet.commons.tools.security.user.UserDetail;
import com.epmet.dto.SysMenuDTO;
import com.epmet.entity.SysMenuEntity;
import java.util.List;
import java.util.Set;
/**
* 菜单管理
*
* @author Mark sunlightcs@gmail.com
* @since 1.0.0
*/
public interface SysMenuService extends BaseService<SysMenuEntity> {
SysMenuDTO get(Long id);
void save(SysMenuDTO dto);
void update(SysMenuDTO dto);
void delete(Long id);
/**
* 菜单列表
*
* @param type 菜单类型
*/
List<SysMenuDTO> getMenuList(Integer type);
/**
* 用户菜单列表
*
* @param userDetail 用户信息
* @param type 菜单类型
*/
List<SysMenuDTO> getUserMenuList(UserDetail userDetail, Integer type);
/**
* 用户菜单导航
* @param userDetail 用户信息
*/
List<SysMenuDTO> getUserMenuNavList(UserDetail userDetail);
/**
* 获取用户权限标识
*/
Set<String> getUserPermissions(UserDetail userDetail);
/**
* 根据父菜单,查询子菜单
* @param pid 父菜单ID
*/
List<SysMenuDTO> getListPid(Long pid);
}