This commit is contained in:
Liang Ding 2022-11-21 22:41:44 +08:00
parent f23cd5005d
commit 5afffdb0f7
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 34 additions and 0 deletions

View file

@ -52,6 +52,20 @@ func swapBlockRef(c *gin.Context) {
}
}
func getHeadingChildrenIDs(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, ok := util.JsonArg(c, ret)
if !ok {
return
}
id := arg["id"].(string)
ids := model.GetHeadingChildrenIDs(id)
ret.Data = ids
}
func getHeadingChildrenDOM(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)