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

@@ -11,4 +11,19 @@ export const region_api = {
}): Promise<AxiosResponse<RegionListRes>> {
return await httpClient.get(`${REGIONS}list/`, { params });
},
async create(body: { name: string }) {
const res = await httpClient.post(`${REGIONS}create/`, body);
return res;
},
async update({ body, id }: { id: number; body: { name: string } }) {
const res = await httpClient.patch(`${REGIONS}${id}/update/`, body);
return res;
},
async delete(id: number) {
const res = await httpClient.delete(`${REGIONS}${id}/delete/`);
return res;
},
};