Files
ragflow/web/src/interfaces/database/base.ts
Zhichang Yu 185c6a0c71 Unified API response json schema (#3170)
### What problem does this PR solve?

Unified API response json schema

### Type of change

- [x] Refactoring
2024-11-05 11:02:31 +08:00

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;
}