ruoyi-plus-soybean/src/typings/api.d.ts

40 lines
755 B
TypeScript
Raw Normal View History

2023-11-17 08:45:00 +08:00
/**
* namespace Api
* @description all backend api type
*/
declare namespace Api {
/**
* namespace Auth
* @description backend api module: "auth"
*/
namespace Auth {
interface LoginToken {
token: string;
refreshToken: string;
}
2023-11-17 08:45:00 +08:00
interface UserInfo {
userId: string;
userName: string;
roles: string[];
}
}
2023-11-17 08:45:00 +08:00
/**
* namespace Route
* @description backend api module: "route"
*/
namespace Route {
type ElegantConstRoute = import('@elegant-router/types').ElegantConstRoute;
interface MenuRoute extends ElegantConstRoute {
id: string;
}
2023-11-17 08:45:00 +08:00
interface UserRoute {
routes: MenuRoute[];
home: import('@elegant-router/types').LastLevelRouteKey;
}
}
}