feat(api): 更新后端API getIDsByHPath

This commit is contained in:
frostime 2023-11-19 12:30:11 +08:00
parent 8e841a4a90
commit 962f879fa2

View file

@ -131,6 +131,16 @@ export async function getHPathByID(id: BlockId): Promise<string> {
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 ****************************************
export async function upload(assetsDirPath: string, files: any[]): Promise<IResUpload> {