mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2026-01-17 04:16:00 +08:00
feat(projects): 重构项目的TS类型架构,去除interface文件夹
This commit is contained in:
10
src/typings/api/auth.d.ts
vendored
10
src/typings/api/auth.d.ts
vendored
@@ -1,10 +0,0 @@
|
||||
/** 后端返回的用户权益相关类型 */
|
||||
declare namespace ApiAuth {
|
||||
/** 返回的token和刷新token */
|
||||
interface Token {
|
||||
token: string;
|
||||
refreshToken: string;
|
||||
}
|
||||
/** 返回的用户信息 */
|
||||
type UserInfo = Auth.UserInfo;
|
||||
}
|
||||
10
src/typings/api/route.d.ts
vendored
10
src/typings/api/route.d.ts
vendored
@@ -1,10 +0,0 @@
|
||||
/** 后端返回的路由相关类型 */
|
||||
declare namespace ApiRoute {
|
||||
/** 后端返回的路由数据类型 */
|
||||
interface Route {
|
||||
/** 动态路由 */
|
||||
routes: AuthRoute.Route[];
|
||||
/** 路由首页对应的key */
|
||||
home: AuthRoute.RouteKey;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user