feat: add notification log creation and retrieval functionality

This commit is contained in:
2025-12-22 14:34:14 +07:00
parent d19f555c7c
commit bee196e299
2 changed files with 141 additions and 48 deletions

View File

@@ -27,4 +27,29 @@ const getNotificationDetail = async (id) => {
return response.data;
};
export { getAllNotification, getNotificationById, getNotificationDetail };
// Create new notification log
const createNotificationLog = async (data) => {
const response = await SendRequest({
method: 'post',
prefix: 'notification-log',
params: data,
});
return response.data;
};
// Get notification logs by notification_error_id
const getNotificationLogByNotificationId = async (notificationId) => {
const response = await SendRequest({
method: 'get',
prefix: `notification-log/notification_error/${notificationId}`,
});
return response.data;
};
export {
getAllNotification,
getNotificationById,
getNotificationDetail,
createNotificationLog,
getNotificationLogByNotificationId
};