integration api history alarm and event alarm

This commit is contained in:
2025-10-25 23:54:22 +07:00
parent a86795fdf6
commit 5a8e2dee2f
3 changed files with 86 additions and 34 deletions

21
src/api/history-value.jsx Normal file
View File

@@ -0,0 +1,21 @@
import { SendRequest } from '../components/Global/ApiRequest';
const getAllHistoryAlarm = async (queryParams) => {
const response = await SendRequest({
method: 'get',
prefix: `history/alarm?${queryParams.toString()}`,
});
return response.data;
};
const getAllHistoryEvent = async (queryParams) => {
const response = await SendRequest({
method: 'get',
prefix: `history/event?${queryParams.toString()}`,
});
return response.data;
};
export { getAllHistoryAlarm, getAllHistoryEvent };