feat: account manage api
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user