mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 09:18:49 +01:00
This commit is contained in:
parent
229adee48c
commit
e40bc18d86
2 changed files with 44 additions and 3 deletions
|
|
@ -598,8 +598,16 @@ func getDoc(c *gin.Context) {
|
|||
if nil != s {
|
||||
size = int(s.(float64))
|
||||
}
|
||||
startID := ""
|
||||
endID := ""
|
||||
startIDArg := arg["startID"]
|
||||
endIDArg := arg["endID"]
|
||||
if nil != startIDArg && nil != endIDArg {
|
||||
startID = startIDArg.(string)
|
||||
endID = endIDArg.(string)
|
||||
}
|
||||
|
||||
blockCount, content, parentID, parent2ID, rootID, typ, eof, boxID, docPath, err := model.GetDoc(id, index, keyword, mode, size)
|
||||
blockCount, content, parentID, parent2ID, rootID, typ, eof, boxID, docPath, err := model.GetDoc(startID, endID, id, index, keyword, mode, size)
|
||||
if errors.Is(err, filelock.ErrUnableLockFile) {
|
||||
ret.Code = 2
|
||||
ret.Data = id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue