feat: account manage api

This commit is contained in:
Noah Hsu
2022-06-26 20:00:36 +08:00
parent cab498e376
commit 5783aa99f1
4 changed files with 110 additions and 7 deletions

View File

@ -52,7 +52,7 @@ func UpdateUser(c *gin.Context) {
}
user, err := db.GetUserById(req.ID)
if err != nil {
common.ErrorResp(c, err, 500)
common.ErrorResp(c, err, 500, true)
return
}
if user.Role != req.Role {