初始化版本库,可用
This commit is contained in:
40
types/DatabaseServices/FileServer.d.ts
vendored
Normal file
40
types/DatabaseServices/FileServer.d.ts
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
import { Singleton } from "../Common/Singleton";
|
||||
import { IDirectoryProps } from "../UI/Components/SourceManage/CommonPanel";
|
||||
export interface IFileInfo {
|
||||
file_id?: string;
|
||||
dir_id?: string;
|
||||
name?: string;
|
||||
logo?: string;
|
||||
file?: string;
|
||||
zip_type?: "gzip";
|
||||
update_date?: string;
|
||||
code?: string;
|
||||
}
|
||||
/**
|
||||
* File server
|
||||
* 保存CAD的文件服务,统一由这里经过文件的CRUD操作
|
||||
*/
|
||||
export declare class FileServer extends Singleton {
|
||||
currentFileInfo: {
|
||||
name: string;
|
||||
dir: IDirectoryProps;
|
||||
};
|
||||
m_CurFileId: string;
|
||||
CurrentFileMd5: string;
|
||||
constructor();
|
||||
AddNewFile(): Promise<boolean>;
|
||||
GetFileMD5(fid: string): Promise<string | undefined>;
|
||||
OpenFile(fid: string): Promise<boolean>;
|
||||
ReadFileList(): Promise<IFileInfo[]>;
|
||||
GetFileInfo(fid: string, code?: string): Promise<{
|
||||
name: string;
|
||||
file?: string;
|
||||
code: string;
|
||||
}>;
|
||||
CacheFileInfo(fid: string, info: IFileInfo): Promise<void>;
|
||||
UploadFile(fileInfo: IFileInfo): Promise<import("../Common/Request").IResponseData>;
|
||||
UpdateFile(fileInfo: IFileInfo): Promise<import("../Common/Request").IResponseData>;
|
||||
private SaveCurrentFileInfo;
|
||||
Clear(): void;
|
||||
}
|
||||
//# sourceMappingURL=FileServer.d.ts.map
|
Reference in New Issue
Block a user