{
  "openapi": "3.0.3",
  "info": {
    "title": "客户管理 - 客户授权",
    "version": "1.0.0",
    "description": "客户管理相关接口文档"
  },
  "paths": {
    "/api/customers/authorize": {
      "post": {
        "summary": "客户授权",
        "description": "将指定客户授权给目标用户",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "customerIds": {
                    "type": "array",
                    "description": "array｜必填，客户ID列表"
                  },
                  "targetUserId": {
                    "type": "string",
                    "description": "string｜必填，接收授权的用户ID"
                  },
                  "targetUserType": {
                    "type": "string",
                    "description": "string｜可选，用户类型（User/ClientUser）"
                  }
                },
                "required": [
                  "customerIds",
                  "targetUserId"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "example": {
                  "success": {
                    "code": "0000",
                    "message": "客户授权成功",
                    "data": {
                      "createdCount": 2,
                      "skippedCount": 1
                    }
                  },
                  "failure": {
                    "code": "4000",
                    "message": "客户授权失败",
                    "data": null
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}