/// import { AuthDataContext } from "../data-context/"; import http = require("http"); import { Role } from "gateway-entities"; export default class UserController { /** 获取登录用户的角色 */ myRoles(dc: AuthDataContext, currentUserId: string): Promise; /** 退出登录 */ logout(req: http.IncomingMessage, res: http.ServerResponse): Promise; /** 获取指定的用户角色 */ roles(dc: AuthDataContext, d: { userIds: string[]; }): Promise<{ [userId: string]: Role[]; }>; setRoles(dc: AuthDataContext, d: { userId: string; roleIds: string[]; }): Promise<{}>; }