init
This commit is contained in:
6
frontend/src/types/api.ts
Normal file
6
frontend/src/types/api.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface ApiResponse<T> {
|
||||
code: number;
|
||||
message: string;
|
||||
data: T;
|
||||
traceId: string;
|
||||
}
|
||||
27
frontend/src/types/route.ts
Normal file
27
frontend/src/types/route.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
export type LayoutType = "DEFAULT" | "SIDEBAR";
|
||||
|
||||
export interface RouteMeta {
|
||||
title: string;
|
||||
icon?: string;
|
||||
permissionCodes?: string[];
|
||||
hidden?: boolean;
|
||||
}
|
||||
|
||||
export interface RouteNode {
|
||||
id: string;
|
||||
path: string;
|
||||
name: string;
|
||||
component: string;
|
||||
layout: LayoutType;
|
||||
meta: RouteMeta;
|
||||
children: RouteNode[];
|
||||
}
|
||||
|
||||
export interface CurrentRouteUser {
|
||||
userId: string;
|
||||
username: string;
|
||||
displayName: string;
|
||||
tenantId: string;
|
||||
deptId: string;
|
||||
permissionCodes: string[];
|
||||
}
|
||||
Reference in New Issue
Block a user