feat(clinic): update filtering logic to use clinic address for city/state

This commit is contained in:
hamed
2026-06-18 09:06:36 +03:30
parent 404dd03247
commit fa41c15bb6
3 changed files with 135 additions and 6 deletions
+5 -1
View File
@@ -180,7 +180,11 @@ List clinics with pagination.
| `page` | integer | ❌ | Default: 1 |
| `limit` | integer | ❌ | Default: 20 |
| `name` | string | ❌ | Search by clinic name |
| `city` | string | ❌ | Filter by city |
| `city` | integer | ❌ | City id — filters by the **clinic address's** city |
| `state` | integer | ❌ | Province id — filters by the **clinic address's** province |
| `specialty` | integer | ❌ | Specialty id |
> `city`/`state` are matched against the clinic's address (`DoctorAddress` linked by `clinic_id`), not a field on the clinic itself.
### Response `200`
```json