doctor list

This commit is contained in:
Samandar Turgunboyev
2025-11-29 11:49:26 +05:00
parent 83efa1f24a
commit bcf9d7cd2b
20 changed files with 872 additions and 438 deletions

View File

@@ -0,0 +1,20 @@
import type { DoctorListRes } from "@/features/doctors/lib/data";
import httpClient from "@/shared/config/api/httpClient";
import { DOCTOR } from "@/shared/config/api/URLs";
import type { AxiosResponse } from "axios";
export const doctor_api = {
async list(params: {
limit?: number;
offset?: number;
full_name?: string;
district_name?: string;
place_name?: string;
work_place?: string;
sphere?: string;
user?: string;
}): Promise<AxiosResponse<DoctorListRes>> {
const res = await httpClient.get(`${DOCTOR}list/`, { params });
return res;
},
};