✨ feat(api): 更新后端API getIDsByHPath
This commit is contained in:
parent
8e841a4a90
commit
962f879fa2
1 changed files with 10 additions and 0 deletions
10
src/api.ts
10
src/api.ts
|
@ -131,6 +131,16 @@ export async function getHPathByID(id: BlockId): Promise<string> {
|
||||||
return request(url, data);
|
return request(url, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export async function getIDsByHPath(notebook: NotebookId, path: string): Promise<BlockId[]> {
|
||||||
|
let data = {
|
||||||
|
notebook: notebook,
|
||||||
|
path: path
|
||||||
|
};
|
||||||
|
let url = '/api/filetree/getIDsByHPath';
|
||||||
|
return request(url, data);
|
||||||
|
}
|
||||||
|
|
||||||
// **************************************** Asset Files ****************************************
|
// **************************************** Asset Files ****************************************
|
||||||
|
|
||||||
export async function upload(assetsDirPath: string, files: any[]): Promise<IResUpload> {
|
export async function upload(assetsDirPath: string, files: any[]): Promise<IResUpload> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue