mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🧑💻 Improve kernel API /api/filetree/getPathByID https://github.com/siyuan-note/siyuan/issues/14275
This commit is contained in:
parent
2d2420794c
commit
f8e6f02df8
4 changed files with 17 additions and 7 deletions
|
|
@ -368,13 +368,16 @@ func getPathByID(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
_path, err := model.GetPathByID(id)
|
||||
p, notebook, err := model.GetPathByID(id)
|
||||
if err != nil {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
return
|
||||
}
|
||||
ret.Data = _path
|
||||
ret.Data = map[string]interface{}{
|
||||
"path": p,
|
||||
"notebook": notebook,
|
||||
}
|
||||
}
|
||||
|
||||
func getFullHPathByID(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue