添加修改用户信息功能
This commit is contained in:
parent
c6c6dbe971
commit
c7be07d22a
|
|
@ -48,7 +48,7 @@ func UpdateUser(user_id int, req proto.UpdateUserInfoReq) (int, error) {
|
|||
dao.UpdateUserByID2(user_id, req)
|
||||
return user_id, nil
|
||||
} else if cur_user.Role == "admin" {
|
||||
dao.UpdateUserByID2(user_id, req)
|
||||
dao.UpdateUserByID2(req.ID, req)
|
||||
return req.ID, nil
|
||||
} else {
|
||||
return 0, nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue