{
  "info": {
    "name": "角色管理",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "获取角色列表",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/roles",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles"
          ],
          "query": [
            {
              "key": "pageNum",
              "value": "",
              "description": "页码，默认1"
            },
            {
              "key": "pageSize",
              "value": "",
              "description": "每页数量，默认10"
            },
            {
              "key": "name",
              "value": "",
              "description": "角色名称关键词"
            },
            {
              "key": "code",
              "value": "",
              "description": "角色编码"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "获取角色详情",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/roles/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles",
            "{id}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "创建角色",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"string｜必填，角色名称\",\n  \"code\": \"string｜必填，角色编码，唯一\",\n  \"status\": \"number｜可选，状态：1-启用，0-禁用\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/roles",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles"
          ]
        }
      },
      "response": []
    },
    {
      "name": "更新角色",
      "request": {
        "method": "PUT",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"string｜必填，角色名称\",\n  \"code\": \"string｜必填，角色编码，唯一\",\n  \"status\": \"number｜可选，状态：1-启用，0-禁用\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/roles/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles",
            "{id}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "删除角色",
      "request": {
        "method": "DELETE",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/roles/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles",
            "{id}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "绑定角色权限",
      "request": {
        "method": "PUT",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"string｜必填，角色名称\",\n  \"code\": \"string｜必填，角色编码，唯一\",\n  \"status\": \"number｜可选，状态：1-启用，0-禁用\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/roles/{id}/permissions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles",
            "{id}",
            "permissions"
          ]
        }
      },
      "response": []
    },
    {
      "name": "绑定角色资源",
      "request": {
        "method": "PUT",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"string｜必填，角色名称\",\n  \"code\": \"string｜必填，角色编码，唯一\",\n  \"status\": \"number｜可选，状态：1-启用，0-禁用\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/roles/{id}/resources",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "roles",
            "{id}",
            "resources"
          ]
        }
      },
      "response": []
    }
  ]
}