Daniel 2024-05-29 10:20:37 +08:00
parent a31cf35836
commit d9a19bb3dc
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 20 additions and 5 deletions

View file

@ -233,7 +233,11 @@ func checkBlockFold(c *gin.Context) {
}
id := arg["id"].(string)
ret.Data = model.IsBlockFolded(id)
isFolded, isRoot := model.IsBlockFolded(id)
ret.Data = map[string]interface{}{
"isFolded": isFolded,
"isRoot": isRoot,
}
}
func checkBlockExist(c *gin.Context) {