{
  "info": {
    "name": "用户管理",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "获取用户列表",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/users",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "users"
          ],
          "query": [
            {
              "key": "pageNum",
              "value": "",
              "description": "页码，默认1"
            },
            {
              "key": "pageSize",
              "value": "",
              "description": "每页数量，默认10"
            },
            {
              "key": "name",
              "value": "",
              "description": "用户姓名（模糊搜索）"
            },
            {
              "key": "phone",
              "value": "",
              "description": "手机号（模糊搜索）"
            },
            {
              "key": "status",
              "value": "",
              "description": "状态：1-正常，0-禁用"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "获取用户详情",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/users/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "users",
            "{id}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "创建用户",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"string｜必填，用户姓名\",\n  \"phone\": \"string｜必填，手机号，唯一\",\n  \"password\": \"string｜必填，登录密码\",\n  \"roles\": \"array｜可选，绑定角色ID数组\",\n  \"status\": \"number｜可选，状态：1-启用，0-禁用\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/users",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "users"
          ]
        }
      },
      "response": []
    },
    {
      "name": "更新用户",
      "request": {
        "method": "PUT",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"string｜必填，用户姓名\",\n  \"phone\": \"string｜必填，手机号，唯一\",\n  \"password\": \"string｜必填，登录密码\",\n  \"roles\": \"array｜可选，绑定角色ID数组\",\n  \"status\": \"number｜可选，状态：1-启用，0-禁用\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/users/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "users",
            "{id}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "删除用户",
      "request": {
        "method": "DELETE",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/users/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "users",
            "{id}"
          ]
        }
      },
      "response": []
    }
  ]
}