{
  "openapi": "3.0.3",
  "info": {
    "title": "认证模块 - 客户端用户登录",
    "version": "1.1.0",
    "description": "认证模块相关接口文档"
  },
  "paths": {
    "/auth/client/login": {
      "post": {
        "summary": "客户端用户登录",
        "description": "客户端用户登录接口。如果用户有多个可用站点，会返回站点列表供前端选择。",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "phone": {
                    "type": "string",
                    "description": "string｜必填，手机号"
                  },
                  "password": {
                    "type": "string",
                    "description": "string｜必填，登录密码"
                  }
                },
                "required": [
                  "phone",
                  "password"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "example": {
                  "success": {
                    "code": "0000",
                    "message": "登录成功",
                    "data": {
                      "token": "jwt-token",
                      "user": {
                        "id": "CU0001",
                        "name": "客户端管理员"
                      },
                      "scopeKeys": [
                        {
                          "key": "uuid-personal",
                          "type": "personal",
                          "label": "个人"
                        },
                        {
                          "key": "uuid-org",
                          "type": "organization",
                          "organizationId": 1,
                          "label": "示例公司"
                        }
                      ],
                      "defaultScopeKey": "uuid-org"
                    }
                  },
                  "failure": {
                    "code": "4000",
                    "message": "登录失败",
                    "data": null
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}