feat(api): add API for resend chat user

This commit is contained in:
zain94rif
2026-01-05 14:08:02 +07:00
parent 98057beb0f
commit 5b4485d20d
2 changed files with 28 additions and 3 deletions

View File

@@ -55,6 +55,24 @@ const resendNotificationToUser = async (notificationId, userId) => {
return response.data;
};
// Resend Chat by User
const resendChatByUser = async (notificationId, userPhone) => {
const response = await SendRequest({
method: 'put',
prefix: `notification-user/resend/${notificationId}/${userPhone}`,
});
return response.data;
};
// Resend Chat All User
const resendChatAllUser = async (notificationId) => {
const response = await SendRequest({
method: 'post',
prefix: `notification-user/resend/${notificationId}`,
});
return response.data;
};
export {
getAllNotification,
getNotificationById,
@@ -62,4 +80,6 @@ export {
createNotificationLog,
getNotificationLogByNotificationId,
resendNotificationToUser,
resendChatByUser,
resendChatAllUser,
};