feat(clinic): implement doctor detachment functionality with API endpoint and confirmation dialog

This commit is contained in:
hamed
2026-06-19 01:10:06 +03:30
parent b3883a6e90
commit dd1ca98cb4
4 changed files with 106 additions and 0 deletions
+25
View File
@@ -303,6 +303,31 @@ Get doctors associated with a clinic.
---
## DELETE `/api/v1/admin/clinic/{clinicUuid}/doctor/{doctorUuid}`
Detach a doctor from a clinic. This removes the clinic↔doctor link only (the `clinic_doctors` association); it does **not** delete the doctor or change the doctor's own `active` appointment flag.
**Permission:** `ROLE_ADMIN`
### Path Parameters
| Param | Type | Description |
|-------|------|-------------|
| `clinicUuid` | string (UUID) | Clinic UUID |
| `doctorUuid` | string (UUID) | Doctor UUID |
### Response `200`
```json
{ "success": true, "data": { "message": "پزشک از کلینیک جدا شد" } }
```
### Errors
| Code | HTTP | Description |
|------|------|-------------|
| `ERR_VALIDATION_002` | 404 | Clinic not found |
| `ERR_NOT_FOUND_001` | 404 | Doctor not found, or doctor not linked to this clinic |
---
## POST `/file/upload/clinic_pro/clinic/field_clinic_logo`
Upload clinic logo.