### What problem does this PR solve? fix: cannot save the system model setting #468 feat: rename file in FileManager feat: add FileManager feat: override useSelector type ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
30
web/src/interfaces/database/file-manager.ts
Normal file
30
web/src/interfaces/database/file-manager.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
export interface IFile {
|
||||
create_date: string;
|
||||
create_time: number;
|
||||
created_by: string;
|
||||
id: string;
|
||||
kb_ids: string[];
|
||||
location: string;
|
||||
name: string;
|
||||
parent_id: string;
|
||||
size: number;
|
||||
tenant_id: string;
|
||||
type: string;
|
||||
update_date: string;
|
||||
update_time: number;
|
||||
}
|
||||
|
||||
export interface IFolder {
|
||||
create_date: string;
|
||||
create_time: number;
|
||||
created_by: string;
|
||||
id: string;
|
||||
location: string;
|
||||
name: string;
|
||||
parent_id: string;
|
||||
size: number;
|
||||
tenant_id: string;
|
||||
type: string;
|
||||
update_date: string;
|
||||
update_time: number;
|
||||
}
|
||||
7
web/src/interfaces/request/base.ts
Normal file
7
web/src/interfaces/request/base.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface IPaginationRequestBody {
|
||||
keywords?: string;
|
||||
page?: number;
|
||||
page_size?: number; // name|create|doc_num|create_time|update_time,default:create_time
|
||||
orderby?: string;
|
||||
desc?: string;
|
||||
}
|
||||
5
web/src/interfaces/request/file-manager.ts
Normal file
5
web/src/interfaces/request/file-manager.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { IPaginationRequestBody } from './base';
|
||||
|
||||
export interface IFileListRequestBody extends IPaginationRequestBody {
|
||||
parent_id?: string; // folder id
|
||||
}
|
||||
Reference in New Issue
Block a user