{
  "module": {
    "module": "审核管理",
    "moduleKey": "auditRecord"
  },
  "api": {
    "title": "审核（通过/拒绝）",
    "method": "POST",
    "path": "/api/audit-records/{id}/review",
    "description": "对待审核记录执行通过或拒绝。通过时按 auditType 调用对应业务执行器：注册类审核会启用账号，若 individualism=true 且 ENABLE_SITE_PROVISIONING 开启则开通独立站点",
    "requestParams": {
      "path": [
        {
          "name": "id",
          "type": "string",
          "required": true,
          "description": "审核记录ID"
        }
      ],
      "body": {
        "status": "number｜必填，1-通过，2-拒绝",
        "auditRemark": "string｜可选，审核备注"
      }
    },
    "responseExample": {
      "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
      }
    },
    "notes": [
      "审核类型 REGISTER_USER / REGISTER_CLIENT 分别对应注册-用户、注册-客户端业务执行器",
      "扩展新审核类型时，在 auditApprovalExecutorRegistry 注册新的执行策略即可"
    ]
  }
}