1. 用户管理
comodo-admin-open
  • 系统权限
    • 获取拼图验证码
      GET
    • 用户登录
      POST
    • 请求用户信息
      GET
    • 获取权限菜单
      GET
    • 修改密码
      PUT
    • 退出登录
      POST
    • 根据字典类型查询字典数据
      GET
  • 系统管理
    • 用户管理
      • 获取用户列表
        GET
      • 获取所有角色
        GET
      • 新增用户
        POST
      • 编辑用户
        PUT
      • 删除用户
        DELETE
      • 重置用户密码
        PUT
    • 角色管理
      • 获取角色列表
      • 新增角色
      • 编辑角色
      • 删除角色
    • 菜单管理
      • 获取所有接口列表
      • 获取菜单列表
      • 获取菜单树列表
      • 新增菜单
      • 编辑菜单
      • 删除菜单
    • 接口管理
      • 获取接口列表
      • 新增接口
      • 编辑接口
      • 删除接口
    • 字典管理
      • 字典数据管理
        • 获取字典数据列表
        • 新增字典数据
        • 编辑字典数据
        • 删除字典数据
      • 获取字典列表
      • 新增字典
      • 编辑字典
      • 删除字典
    • 系统日志
      • 登录日志
        • 获取登录日志列表
        • 删除登录日志
      • 操作日志
        • 获取操作日志列表
        • 删除操作日志
  1. 用户管理

获取所有角色

GET
/sys_role/list

请求参数

Header 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/sys_role/list' \
--header 'X-token: {{X-Token}}'

返回响应

🟢200成功
application/json
Body

示例
{"code": 0,
    "message": "success",
    "data": {
        "sys_role_list": [
            {
                "role_id": 31,
                "role_name": "123111",
                "status": 1,
                "role_key": "123111",
                "role_sort": 0,
                "remark": null,
                "create_by": 12,
                "update_by": 12,
                "created_at": "2025-06-17 00:03:07",
                "updated_at": "2025-06-17 00:11:49",
                "check_strictly": 0
            },
            {
                "role_id": 29,
                "role_name": "12fff",
                "status": 1,
                "role_key": "12fff",
                "role_sort": 0,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-16 23:39:00",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 27,
                "role_name": "xi1999",
                "status": 0,
                "role_key": "xi1999",
                "role_sort": 0,
                "remark": null,
                "create_by": 12,
                "update_by": 12,
                "created_at": "2025-06-16 23:16:39",
                "updated_at": "2025-06-16 23:40:33",
                "check_strictly": 0
            },
            {
                "role_id": 26,
                "role_name": "r1",
                "status": 1,
                "role_key": "r1",
                "role_sort": 0,
                "remark": "r1",
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 23:03:26",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 25,
                "role_name": "xi109",
                "status": 1,
                "role_key": "xi109",
                "role_sort": 0,
                "remark": "rrr",
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 23:02:44",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 24,
                "role_name": "xi100",
                "status": 1,
                "role_key": "xi100",
                "role_sort": 0,
                "remark": "remark",
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 23:00:53",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 21,
                "role_name": "xi19",
                "status": 1,
                "role_key": "xi19",
                "role_sort": 0,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 22:56:10",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 7,
                "role_name": "测试角色",
                "status": 1,
                "role_key": "test",
                "role_sort": 1,
                "remark": null,
                "create_by": 12,
                "update_by": 12,
                "created_at": "2024-01-23 22:08:03",
                "updated_at": "2025-05-14 22:54:27",
                "check_strictly": 0
            },
            {
                "role_id": 1,
                "role_name": "超级管理员",
                "status": 1,
                "role_key": "admin",
                "role_sort": 1,
                "remark": "1",
                "create_by": null,
                "update_by": 12,
                "created_at": "2021-08-05 11:00:25",
                "updated_at": "2025-06-20 22:16:41",
                "check_strictly": 0
            },
            {
                "role_id": 11,
                "role_name": "113",
                "status": 1,
                "role_key": "abc1",
                "role_sort": 2,
                "remark": "123",
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-05-16 20:45:38",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 10,
                "role_name": "abc",
                "status": 1,
                "role_key": "abc",
                "role_sort": 2,
                "remark": "123",
                "create_by": 12,
                "update_by": 12,
                "created_at": "2025-05-16 20:45:25",
                "updated_at": "2025-05-16 20:46:42",
                "check_strictly": 0
            },
            {
                "role_id": 30,
                "role_name": "xiii",
                "status": 1,
                "role_key": "xi13i32",
                "role_sort": 10,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-17 00:00:00",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 28,
                "role_name": "xi1332",
                "status": 1,
                "role_key": "xi1332",
                "role_sort": 10,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-16 23:28:01",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 18,
                "role_name": "xi16",
                "status": 0,
                "role_key": "xi16",
                "role_sort": 10,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 22:52:37",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 17,
                "role_name": "xi15",
                "status": 0,
                "role_key": "xi15",
                "role_sort": 10,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 22:41:15",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 16,
                "role_name": "xi13",
                "status": 1,
                "role_key": "xi13",
                "role_sort": 10,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 22:39:48",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 14,
                "role_name": "xi111",
                "status": 1,
                "role_key": "xi111",
                "role_sort": 10,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-14 00:19:25",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 13,
                "role_name": "xi11",
                "status": 1,
                "role_key": "xi11",
                "role_sort": 10,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-14 00:18:18",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 12,
                "role_name": "xi1",
                "status": 1,
                "role_key": "xi1",
                "role_sort": 10,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-14 00:13:34",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 23,
                "role_name": "xi21",
                "status": 0,
                "role_key": "xi21",
                "role_sort": 4294967295,
                "remark": "test",
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 22:57:15",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 22,
                "role_name": "xi20",
                "status": 0,
                "role_key": "xi20",
                "role_sort": 4294967295,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 22:56:36",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 20,
                "role_name": "xi18",
                "status": 0,
                "role_key": "xi18",
                "role_sort": 4294967295,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 22:55:04",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 19,
                "role_name": "xi17",
                "status": 0,
                "role_key": "xi17",
                "role_sort": 4294967295,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 22:54:43",
                "updated_at": null,
                "check_strictly": 0
            },
            {
                "role_id": 15,
                "role_name": "xi12",
                "status": 1,
                "role_key": "xi12",
                "role_sort": 4294967295,
                "remark": null,
                "create_by": 12,
                "update_by": null,
                "created_at": "2025-06-15 22:37:47",
                "updated_at": null,
                "check_strictly": 0
            }
        ]
    }
}
修改于 2026-01-11 12:56:02
上一页
获取用户列表
下一页
新增用户
Built with