package com.qqchen.deploy.backend.system.service;

import com.qqchen.deploy.backend.framework.service.IBaseService;
import com.qqchen.deploy.backend.system.entity.Menu;
import com.qqchen.deploy.backend.system.model.MenuDTO;
import com.qqchen.deploy.backend.system.model.query.MenuQuery;
import com.qqchen.deploy.backend.system.model.response.MenuPermissionTreeResponse;
import com.qqchen.deploy.backend.system.model.response.MenuResponse;

import java.util.List;

public interface IMenuService extends IBaseService<Menu, MenuDTO, MenuQuery, Long> {

    /**
     * 获取菜单树
     * @return 菜单树
     */
    List<MenuResponse> getMenuTree();

    /**
     * 获取当前用户的菜单
     * @return 用户菜单
     */
    List<MenuResponse> getUserMenus();


    List<MenuPermissionTreeResponse> getPermissionTree();

}