integration api history alarm and event alarm
This commit is contained in:
21
src/api/history-value.jsx
Normal file
21
src/api/history-value.jsx
Normal 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 };
|
||||
Reference in New Issue
Block a user