Commit 250031ef by CaIon

fix: 删除用户改为软删除 (close #107)

parent db024636
...@@ -683,7 +683,7 @@ func ManageUser(c *gin.Context) { ...@@ -683,7 +683,7 @@ func ManageUser(c *gin.Context) {
}) })
return return
} }
if err := user.HardDelete(); err != nil { if err := user.Delete(); err != nil {
c.JSON(http.StatusOK, gin.H{ c.JSON(http.StatusOK, gin.H{
"success": false, "success": false,
"message": err.Error(), "message": err.Error(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment