express-api-template v1
  1. user用户
express-api-template v1
  • 项目说明
  • user用户
    • loginByWechat微信一键登录
      POST
    • register注册
      POST
    • loginByUsercode登录
      POST
    • getCaptcha获取验证码
      GET
    • getUserProfile获取用户信息
      GET
    • verifyCaptcha校验验证码
      POST
    • getUserList获取用户列表
      GET
    • updateUserProfile更新用户信息
      PUT
    • updateUserStatus更新用户状态
      PUT
    • changeUserPassword修改用户密码
      PUT
    • uploadBio上传头像
      POST
  • permission权限
    • 权限相关说明
    • role角色
      • 新增角色
      • 获取角色列表
      • updateRole修改角色
      • deleteRole删除角色
    • 授权
      • 获取用户角色列表
      • 修改用户权限
  • department机构管理
    • addDept新增机构
      POST
    • getDeptList获取机构列表
      GET
    • deleteDept删除机构
      DELETE
    • updateDept更新机构
      PUT
  1. user用户

getUserProfile获取用户信息

GET
/user/getUserProfile
Last modified:2023-09-30 09:53:23

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:3001/api/user/getUserProfile?uid=95989d71-d927-4a06-999c-7b3f10f39edf' \
--header 'Authorization: Bearer <token>'

Responses

🟢200OK
application/json
Body

Example
{"success":true,"message":"获取用户信息成功","data":[{"uid":"6c07233c-2b45-447c-921e-bf13af9a0d1d","userName":"丁仪","gender":"2","idCard":"35078119640307368X","brith":"19640307","city":"北京","email":"foo@gmail.com","mobile":"13045670000","address":"北京市北京市市辖区东城区朝阳门街道236号","createdAt":"2023-06-11T18:58:35.000Z","updatedAt":"2023-06-11T19:21:03.000Z","bio":""}]}
Modified at 2023-09-30 09:53:23
Previous
getCaptcha获取验证码
Next
verifyCaptcha校验验证码
Built with