🎨 集市支持已安装的包单独显示 https://github.com/siyuan-note/siyuan/issues/5678

This commit is contained in:
Liang Ding 2022-09-01 19:37:33 +08:00
parent a563861ab8
commit 29021c8d02
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 109 additions and 35 deletions

View file

@ -165,6 +165,15 @@ func getBazaarTemplate(c *gin.Context) {
}
}
func getInstalledTemplate(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
ret.Data = map[string]interface{}{
"packages": bazaar.InstalledTemplates(),
}
}
func installBazaarTemplate(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)