{
  "info": {
    "name": "权限管理",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "获取权限列表",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/permissions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "permissions"
          ],
          "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/permissions/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "permissions",
            "{id}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "创建权限",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"string｜必填，权限名称\",\n  \"code\": \"string｜必填，权限编码，唯一\",\n  \"type\": \"string｜可选，权限类型，例如menu/button\",\n  \"status\": \"number｜可选，状态：1-启用，0-禁用\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/permissions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "permissions"
          ]
        }
      },
      "response": []
    },
    {
      "name": "更新权限",
      "request": {
        "method": "PUT",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"string｜必填，权限名称\",\n  \"code\": \"string｜必填，权限编码，唯一\",\n  \"type\": \"string｜可选，权限类型，例如menu/button\",\n  \"status\": \"number｜可选，状态：1-启用，0-禁用\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/permissions/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "permissions",
            "{id}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "删除权限",
      "request": {
        "method": "DELETE",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/permissions/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "permissions",
            "{id}"
          ]
        }
      },
      "response": []
    }
  ]
}