upd: notifikasi

Deskripsi:
- list notifikasi
- tanda notifikasi
- entiti user login

NO Issues
This commit is contained in:
amel
2025-06-26 12:28:36 +08:00
parent ed08953a14
commit 76c0ba0535
9 changed files with 231 additions and 156 deletions

View File

@@ -643,4 +643,14 @@ export const apiRegisteredToken = async (data: { user: string, token: string })
export const apiUnregisteredToken = async (data: { user: string, token: string }) => {
const response = await api.put(`/mobile/auth-token/`, data)
return response.data;
};
export const apiGetNotification = async ({ user, page }: { user: string, page?: number }) => {
const response = await api.get(`mobile/home/notification?user=${user}&page=${page}`);
return response.data;
};
export const apiReadOneNotification = async (data: { user: string, id: string }) => {
const response = await api.put(`/mobile/home/notification/`, data)
return response.data;
};