VuePressVuePress
  • Introduction
  • Getting Started
  • Users

    • 身份验证
  • 客户前台

    • 前台接口
  • 管理后台

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

    • 身份验证
  • 客户前台

    • 前台接口
  • 管理后台

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

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

角色管理

角色列表

GET /api/admin/roles

添加角色

POST /api/admin/roles

axios.post(`/api/admin/roles`, {
    name: "admin"
}).then(response => {
    console.log(response)
}).catch(error => {
    console.error(error)
})

角色详情

GET /api/admin/roles/:role

修改角色

PUT /api/admin/roles/:role

const role = 1;

axios.put(`/api/admin/roles/${role}`, {
    name: "player"
}).then(response => {
    console.log(response)
}).catch(error => {
    console.error(error)
})

删除角色

DELETE /api/admin/roles/:role

Last Updated:
Contributors: jinfakeji168
Prev
用户管理
Next
权限管理