{
  "openapi": "3.1.0",
  "info": {
    "title": "无忧通行公开测算接口",
    "version": "1.0.0",
    "description": "根据公开设备日服务单价进行确定性初步测算。"
  },
  "servers": [
    { "url": "https://wuyou-tongxing-official.yimi9428406gl.chatgpt.site" }
  ],
  "paths": {
    "/api/v1/estimate": {
      "get": {
        "summary": "读取单价与使用说明",
        "responses": { "200": { "description": "接口说明" } }
      },
      "post": {
        "summary": "计算设备服务费初步估算",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/EstimateInput" }
            }
          }
        },
        "responses": {
          "200": { "description": "测算结果" },
          "400": { "description": "JSON无效" }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "EstimateInput": {
        "type": "object",
        "properties": {
          "recognition": {
            "type": "integer",
            "minimum": 0,
            "description": "车牌识别一体机或核心模组数量，7.5元/台/日"
          },
          "straightGate": {
            "type": "integer",
            "minimum": 0,
            "description": "直杆道闸数量，7.5元/台/日"
          },
          "cardGate": {
            "type": "integer",
            "minimum": 0,
            "description": "卡布道闸数量，10元/台/日"
          },
          "auxCamera": {
            "type": "integer",
            "minimum": 0,
            "description": "辅助相机数量，3.5元/台/日"
          },
          "callUnit": {
            "type": "integer",
            "minimum": 0,
            "description": "主扫呼叫机数量，8元/台/日"
          }
        }
      }
    }
  }
}
