change packages & change data in weekly day & add fields to modal add & remove validation from login page
This commit is contained in:
+7
-11
@@ -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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user