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

627 B

Department · 科室

接口表

Method Path 鉴权 说明
GET /api/v1/departments - 科室列表

GET /api/v1/departments

Query 参数

  • hospitalId (string, 可选) - 按医院过滤
  • enabled ('true' | 'false', 可选) - 按启用状态过滤

响应示例

{
  "code": 0,
  "message": "ok",
  "data": [
    {
      "id": "d-001",
      "name": "肛肠中心",
      "icon": "🩺",
      "description": "肛肠疾病专科",
      "doctorCount": 5,
      "sort": 1,
      "enabled": true,
      "createdAt": "...",
      "updatedAt": "..."
    }
  ]
}