VuePressVuePress
  • Introduction
  • Getting Started
  • Users

    • 身份验证
  • 客户前台

    • 前台接口
  • 管理后台

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

    • 身份验证
  • 客户前台

    • 前台接口
  • 管理后台

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

    • 用户管理
    • 角色管理
    • 权限管理
    • 操作日志
    • 用户余额
    • 余额明细
    • 银行管理
    • 银行卡管理
    • 充值记录
    • 提现记录
    • 游戏管理
    • 开奖记录
    • 投注记录
    • 结算记录
    • 退款记录
    • 第三方游戏供应商
    • 第三方游戏
    • 第三方游戏投注记录
    • 设置

用户管理

用户列表

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
角色管理