This commit is contained in:
2026-04-18 18:02:21 +07:00
parent 9d35fd3653
commit 300b35190d
14 changed files with 439 additions and 107 deletions

View File

@@ -38,7 +38,6 @@ export const apiUpdateApplicationStatus = async (id: string, payload: any) => {
};
export const apiGetUserById = async (userId: string) => {
// Thay đổi URL sao cho khớp với route Backend của bạn
const response = await api.get(API.Admin.GET_USER_BY_ID(userId));
return response?.data;
};

View File

@@ -12,8 +12,12 @@ export const apiGetCurrentUserApplications = async () => {
return response?.data;
};
export const apiUpdateUser = async (id: number | string, payload: Profile) => {
export const apiUpdateUser = async (id:string, payload: Profile) => {
const response = await api.put(API.User.Update(id), payload);
return response?.data;
};
export const apiUpdateUserCurrent = async (payload: Profile) => {
const response = await api.put(API.User.CURRENT, payload);
return response?.data;
};