### What problem does this PR solve? feat: Bind data to TenantTable #2846 feat: Add TenantTable ### Type of change - [x] New Feature (non-breaking change which adds functionality)
87 lines
1.5 KiB
TypeScript
87 lines
1.5 KiB
TypeScript
export interface IUserInfo {
|
|
access_token: string;
|
|
avatar?: any;
|
|
color_schema: string;
|
|
create_date: string;
|
|
create_time: number;
|
|
email: string;
|
|
id: string;
|
|
is_active: string;
|
|
is_anonymous: string;
|
|
is_authenticated: string;
|
|
is_superuser: boolean;
|
|
language: string;
|
|
last_login_time: string;
|
|
login_channel: string;
|
|
nickname: string;
|
|
password: string;
|
|
status: string;
|
|
update_date: string;
|
|
update_time: number;
|
|
}
|
|
|
|
export type TaskExecutorElapsed = Record<string, number[]>;
|
|
|
|
export interface ISystemStatus {
|
|
es: Es;
|
|
storage: Storage;
|
|
database: Database;
|
|
redis: Redis;
|
|
task_executor: {
|
|
error?: string;
|
|
status: string;
|
|
elapsed?: TaskExecutorElapsed;
|
|
};
|
|
}
|
|
|
|
interface Redis {
|
|
status: string;
|
|
elapsed: number;
|
|
error: string;
|
|
pending: number;
|
|
}
|
|
|
|
export interface Storage {
|
|
status: string;
|
|
elapsed: number;
|
|
error: string;
|
|
}
|
|
|
|
export interface Database {
|
|
status: string;
|
|
elapsed: number;
|
|
error: string;
|
|
}
|
|
|
|
interface Es {
|
|
status: string;
|
|
elapsed: number;
|
|
error: string;
|
|
number_of_nodes: number;
|
|
active_shards: number;
|
|
}
|
|
|
|
export interface ITenantUser {
|
|
avatar: null;
|
|
delta_seconds: number;
|
|
email: string;
|
|
is_active: string;
|
|
is_anonymous: string;
|
|
is_authenticated: string;
|
|
is_superuser: boolean;
|
|
nickname: string;
|
|
role: string;
|
|
status: string;
|
|
update_date: string;
|
|
user_id: string;
|
|
}
|
|
|
|
export interface ITenant {
|
|
avatar: string;
|
|
delta_seconds: number;
|
|
email: string;
|
|
nickname: string;
|
|
role: string;
|
|
tenant_id: string;
|
|
update_date: string;
|
|
}
|