✨ feat: add foldBlock
api
This commit is contained in:
parent
a2a615aae2
commit
74d62ac1aa
1 changed files with 18 additions and 0 deletions
18
src/api.ts
18
src/api.ts
|
@ -224,6 +224,24 @@ export async function moveBlock(id: BlockId, previousID?: PreviousID, parentID?:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export async function foldBlock(id: BlockId) {
|
||||||
|
let data = {
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
let url = '/api/block/foldBlock';
|
||||||
|
return request(url, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export async function unfoldBlock(id: BlockId) {
|
||||||
|
let data = {
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
let url = '/api/block/unfoldBlock';
|
||||||
|
return request(url, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
export async function getBlockKramdown(id: BlockId): Promise<IResGetBlockKramdown> {
|
export async function getBlockKramdown(id: BlockId): Promise<IResGetBlockKramdown> {
|
||||||
let data = {
|
let data = {
|
||||||
id: id
|
id: id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue