fix user create and delete handling (#4818)

This commit is contained in:
Baiyuan Chiu
2026-05-19 16:14:11 +08:00
committed by GitHub
parent 04b4483d7d
commit 8ae095c3b8
2 changed files with 17 additions and 4 deletions
+6 -4
View File
@@ -782,12 +782,14 @@ func DeleteUser(c *gin.Context) {
}
err = model.HardDeleteUserById(id)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": true,
"message": "",
})
common.ApiError(c, err)
return
}
c.JSON(http.StatusOK, gin.H{
"success": true,
"message": "",
})
return
}
func DeleteSelf(c *gin.Context) {