🎨 Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-28 18:42:50 +08:00
parent 10fb34ab88
commit 6c70144d7c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 98 additions and 4 deletions

View file

@ -28,6 +28,16 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func removeUnusedAttributeViews(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
paths := model.RemoveUnusedAttributeViews()
ret.Data = map[string]interface{}{
"paths": paths,
}
}
func getUnusedAttributeViews(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)