feat: enhance notification fetching with pagination and filtering options

This commit is contained in:
2025-11-26 11:44:50 +07:00
parent 309d191bce
commit 14f8a5d472
2 changed files with 242 additions and 202 deletions

View File

@@ -1,9 +1,21 @@
import { SendRequest } from '../components/Global/ApiRequest';
export const getAllNotification = async () => {
const getAllNotification = async (queryParams) => {
const response = await SendRequest({
method: 'get',
prefix: 'notification',
prefix: `notification?${queryParams.toString()}`,
});
return response.data;
};
const getNotificationById = async (id) => {
const response = await SendRequest({
method: 'get',
prefix: `notification/${id}`,
});
return response.data;
};
export { getAllNotification, getNotificationById };