///
import { WebsiteConfig } from "../types";
import http = require("http");
import { AuthDataContext } from "../data-context/data-context";
declare type MyMenuItem = WebsiteConfig["menuItems"][0] & {
stationPath?: string;
};
export declare class MenuController {
/**
* 获取菜单项列表
* @param d.roleId 角色编号,如果指定 roleId,返回指定角色的可以访问的菜单项
*/
list(req: http.IncomingMessage, dc: AuthDataContext, d?: {
roleId?: string;
userId?: string;
}): Promise;
private findMenuItem;
/** 获取我的权限 */
my(req: http.IncomingMessage, res: http.ServerResponse, dc: AuthDataContext, currentUserId: string): Promise;
setRolePermission(dc: AuthDataContext, d: {
roleId: string;
resourceIds: string[];
}): Promise<{
id: string;
}>;
add(d: {}): void;
}
export {};