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
}
if err := user.HardDelete(); err != nil {
if err := user.Delete(); err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,
"message": err.Error(),