package com.lxzn.ucenter.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.lxzn.framework.domain.ucenter.Button;
|
import com.lxzn.framework.domain.ucenter.Menu;
|
import com.lxzn.framework.domain.ucenter.ext.MenuExt;
|
import com.lxzn.framework.domain.ucenter.request.MenuRequest;
|
import com.lxzn.framework.model.response.CommonJsonTree;
|
import com.lxzn.framework.model.response.QueryPageResponseResult;
|
|
import java.util.List;
|
|
public interface IMenuService extends IService<Menu> {
|
|
/**
|
* 根据用户id获取用户权限菜单
|
* @param userId
|
* @return
|
*/
|
List<Menu> findByUserId(String userId);
|
|
/**
|
* 新增菜单
|
* @param menu
|
* @return
|
*/
|
boolean addMenu(Menu menu);
|
|
/**
|
* 根据权限码查找菜单
|
* @param permCode
|
* @return
|
*/
|
Menu getByPermCode(String permCode);
|
|
/**
|
* 获取所有菜单
|
* 调试使用接口
|
* @return
|
*/
|
List<MenuExt> findAll();
|
|
/**
|
* 指定菜单的按钮
|
* @param menuId
|
* @param buttonList
|
* @return
|
*/
|
boolean assignButton(String menuId, List<Button> buttonList);
|
|
/**
|
* 编辑菜单
|
* @param id
|
* @param menu
|
* @return
|
*/
|
boolean editMenu( String id, Menu menu);
|
|
/**
|
* 删除菜单
|
* @param id
|
* @return
|
*/
|
boolean deleteMenuById(String id);
|
|
/**
|
* 根据编号查询数据
|
* @param parentId
|
* @return
|
*/
|
List<Menu> findSunLint(String parentId);
|
|
/**
|
* 分页查询
|
* @param page
|
* @param size
|
* @param menuRequest
|
* @return
|
*/
|
QueryPageResponseResult<Menu> findPageList(int page, int size, MenuRequest menuRequest);
|
|
/**
|
* 结果树
|
* @return
|
*/
|
List<CommonJsonTree> loadTree();
|
|
/**
|
* 获取第三级的菜单
|
* @return
|
*/
|
List<Menu> getLeafMenuList();
|
}
|