mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-24 15:36:50 +08:00
### What problem does this PR solve? Unified API response json schema ### Type of change - [x] Refactoring
18 lines
292 B
TypeScript
18 lines
292 B
TypeScript
export interface ResponseType<T = any> {
|
|
code: number;
|
|
data: T;
|
|
message: string;
|
|
status: number;
|
|
}
|
|
|
|
export interface ResponseGetType<T = any> {
|
|
data: T;
|
|
loading?: boolean;
|
|
}
|
|
|
|
export interface ResponsePostType<T = any> {
|
|
data: T;
|
|
loading?: boolean;
|
|
[key: string]: unknown;
|
|
}
|