init
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# Department · 科室
|
||||
|
||||
## 接口表
|
||||
|
||||
| Method | Path | 鉴权 | 说明 |
|
||||
|---|---|---|---|
|
||||
| GET | `/api/v1/departments` | - | 科室列表 |
|
||||
|
||||
## GET /api/v1/departments
|
||||
|
||||
**Query 参数**
|
||||
- `hospitalId` (string, 可选) - 按医院过滤
|
||||
- `enabled` ('true' | 'false', 可选) - 按启用状态过滤
|
||||
|
||||
**响应示例**
|
||||
```json
|
||||
{
|
||||
"code": 0,
|
||||
"message": "ok",
|
||||
"data": [
|
||||
{
|
||||
"id": "d-001",
|
||||
"name": "肛肠中心",
|
||||
"icon": "🩺",
|
||||
"description": "肛肠疾病专科",
|
||||
"doctorCount": 5,
|
||||
"sort": 1,
|
||||
"enabled": true,
|
||||
"createdAt": "...",
|
||||
"updatedAt": "..."
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user