{
  "info": {
    "name": "客户管理",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "获取客户列表",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/customers",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "customers"
          ],
          "query": [
            {
              "key": "pageNum",
              "value": "",
              "description": "页码，默认1"
            },
            {
              "key": "pageSize",
              "value": "",
              "description": "每页数量，默认10"
            },
            {
              "key": "name",
              "value": "",
              "description": "客户名称关键词"
            },
            {
              "key": "status",
              "value": "",
              "description": "状态过滤"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "获取客户详情",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/customers/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "customers",
            "{id}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "创建客户",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"string｜必填，客户名称\",\n  \"contactName\": \"string｜可选，联系人姓名\",\n  \"contactPhone\": \"string｜可选，联系人电话\",\n  \"status\": \"number｜可选，状态：1-合作中，0-已终止\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/customers",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "customers"
          ]
        }
      },
      "response": []
    },
    {
      "name": "更新客户",
      "request": {
        "method": "PUT",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"string｜必填，客户名称\",\n  \"contactName\": \"string｜可选，联系人姓名\",\n  \"contactPhone\": \"string｜可选，联系人电话\",\n  \"status\": \"number｜可选，状态：1-合作中，0-已终止\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{baseUrl}}/api/customers/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "customers",
            "{id}"
          ]
        }
      },
      "response": []
    },
    {
      "name": "删除客户",
      "request": {
        "method": "DELETE",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/customers/{id}",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "customers",
            "{id}"
          ]
        }
      },
      "response": []
    }
  ]
}