{
  "openapi": "3.0.3",
  "info": {
    "title": "审核管理 - 审核（通过/拒绝）",
    "version": "1.0.0",
    "description": "审核管理相关接口文档"
  },
  "paths": {
    "/api/audit-records/{id}/review": {
      "post": {
        "summary": "审核（通过/拒绝）",
        "description": "对待审核记录执行通过或拒绝。通过时按 auditType 调用对应业务执行器：注册类审核会启用账号，若 individualism=true 且 ENABLE_SITE_PROVISIONING 开启则开通独立站点",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "审核记录ID"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "number",
                    "description": "number｜必填，1-通过，2-拒绝"
                  },
                  "auditRemark": {
                    "type": "string",
                    "description": "string｜可选，审核备注"
                  }
                },
                "required": [
                  "status"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "成功响应",
            "content": {
              "application/json": {
                "example": {
                  "success": {
                    "code": "0000",
                    "message": "审核通过",
                    "data": {
                      "record": {
                        "id": 1,
                        "code": "AR0001",
                        "status": 1,
                        "auditTime": "2025-01-01T11:00:00.000Z",
                        "auditor": "13800000000"
                      },
                      "executionResult": {
                        "accountType": "company",
                        "site": {
                          "siteKey": "A1B2C3D4-xxxx"
                        }
                      }
                    }
                  },
                  "failure": {
                    "code": "4090",
                    "message": "该审核记录已处理，无法重复审核",
                    "data": null
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}