Files
yuyueguahao/docs/api/v1/hospital.md
T
2026-07-05 14:43:34 +08:00

987 B

Hospital · 医院信息

接口表

Method Path 鉴权 说明
GET /api/v1/hospitals - 医院列表
GET /api/v1/hospitals/:id - 医院详情

GET /api/v1/hospitals

响应示例

{
  "code": 0,
  "message": "ok",
  "data": [
    {
      "id": "h-001",
      "name": "苏州肛泰中医院",
      "level": "三甲",
      "address": "苏州市姑苏区吴中西路 888 号",
      "phone": "0512-6586-3999",
      "intro": "胃肠肛肠专科医院 · 三甲名医亲诊",
      "description": "...",
      "banner": "https://...",
      "logo": "https://...",
      "established": "1998",
      "departments": 12,
      "doctors": 35,
      "beds": 200,
      "createdAt": "2024-01-01T00:00:00.000Z",
      "updatedAt": "2024-01-01T00:00:00.000Z"
    }
  ]
}

GET /api/v1/hospitals/:id

路径参数

  • id (string, 必填) - 医院 ID

错误响应

  • 404 医院不存在
  • 500 服务器内部错误