添加修改用户信息功能

This commit is contained in:
junleea 2024-10-06 16:41:29 +08:00
parent c6c6dbe971
commit c7be07d22a
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func UpdateUser(user_id int, req proto.UpdateUserInfoReq) (int, error) {
dao.UpdateUserByID2(user_id, req) dao.UpdateUserByID2(user_id, req)
return user_id, nil return user_id, nil
} else if cur_user.Role == "admin" { } else if cur_user.Role == "admin" {
dao.UpdateUserByID2(user_id, req) dao.UpdateUserByID2(req.ID, req)
return req.ID, nil return req.ID, nil
} else { } else {
return 0, nil return 0, nil