express-api-template v1
  1. 授权
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删除角色
    • 授权
      • 获取用户角色列表
        GET
      • 修改用户权限
        PUT
  • department机构管理
    • addDept新增机构
      POST
    • getDeptList获取机构列表
      GET
    • deleteDept删除机构
      DELETE
    • updateDept更新机构
      PUT
  1. 授权

修改用户权限

Developing
PUT
/perm/updateUserRole
Last modified:2023-11-23 03:48:39

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
object {0}
Example
{}

Request 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 PUT 'http://127.0.0.1:3001/api/perm/updateUserRole' \
--header 'Content-Type: application/json' \
--data-raw '{}'

Responses

🟢200OK
application/json
Body
object {0}
Example
{}
Modified at 2023-11-23 03:48:39
Previous
获取用户角色列表
Next
addDept新增机构
Built with