VuePressVuePress
  • Introduction
  • Getting Started
  • Users

    • 身份验证
  • 管理后台

    • 用户管理
    • 角色管理
    • 权限管理
    • 操作日志
  • English
  • 简体中文
  • Introduction
  • Getting Started
  • Users

    • 身份验证
  • 管理后台

    • 用户管理
    • 角色管理
    • 权限管理
    • 操作日志
  • English
  • 简体中文
  • Users

    • 身份验证
  • 后台

    • 用户管理
    • 角色管理
    • 权限管理
    • 操作日志

用户管理

用户列表

GET /api/admin/users

添加用户

POST /api/admin/users

axios.post(`/api/admin/users`, {
    email: "test@example.com",
    name: "Test User",
    password: "password"
}).then(response => {
    console.log(response)
}).catch(error => {
    console.error(error)
})

用户详情

GET /api/admin/users/:user

修改用户

PUT /api/admin/users/:user

const user = 1;

axios.put(`/api/admin/users/${user}`, {
    email: "test@example.com",
    name: "Test User",
    password: "password"
}).then(response => {
    console.log(response)
}).catch(error => {
    console.error(error)
})

删除用户

DELETE /api/admin/users/:user

Last Updated:
Contributors: jinfakeji168
Next
角色管理