change packages & change data in weekly day & add fields to modal add & remove validation from login page

This commit is contained in:
Ehsan
2025-07-13 00:47:06 +03:30
parent c6e2657e45
commit 97802a9fdf
14 changed files with 207 additions and 89 deletions
+7 -11
View File
@@ -1,3 +1,4 @@
import { removeTokenHead } from "@/helper";
import api from "./api";
export const request = {
@@ -8,11 +9,7 @@ export const request = {
mobile,
captcha_token,
},
{
headers: {
Authorization: "",
},
}
removeTokenHead
),
getToken: (grant_type, client_id, client_secret, uuid, code) => {
const formData = new URLSearchParams();
@@ -47,11 +44,7 @@ export const request = {
}),
getUserInfo: (headers) => api.get("oauth/userinfo", headers),
getInsuranceType: () =>
api.get("api/v1/categorys/insurance_type", {
headers: {
Authorization: "",
},
}),
api.get("api/v1/categorys/insurance_type", removeTokenHead),
getAppointmentWeeklySchedule: (uuid) =>
api.get(`api/v1/appointment-settings/weekly-schedule/${uuid}`),
postAppointmentWeeklySchedule: () =>
@@ -61,6 +54,9 @@ export const request = {
deleteAppointmentWeeklySchedule: (uuid) =>
api.delete(`api/v1/appointment-settings/weekly-schedule/${uuid}`),
getAppointment: (doctor_id, date) =>
api.get(`api/v1/appointment?doctor_id=${doctor_id}&date=${date}`),
api.get(
`api/v1/appointment-slots?doctor_id=${doctor_id}&date=${date}`,
removeTokenHead
),
postAppointment: (data) => api.post(`api/v1/appointment`, data),
};