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

This commit is contained in:
CaIon 2024-03-11 14:13:45 +08:00
parent 7ab6c6c303
commit bf241b218f

View File

@ -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(),