siyuan-community / ideas

3 stars 0 forks source link

Block-Level Data History | 块级数据历史 #11

Closed zxhd863943427 closed 1 year ago

zxhd863943427 commented 1 year ago

思源已经支持文档级历史的简单接口,故简单地实现块级数据历史成为可能(仅本文档)

需要使用的接口:

  1. /api/history/searchHistory ,搜索文档的历史
  2. /api/history/getHistoryItems,获得数据历史的文件路径
  3. /api/history/getDocHistoryContent,获得历史文档的内容

接着就是在内容中搜索对应的块,并展示出来,这可以自由实现