progress history report

This commit is contained in:
2025-10-27 10:28:42 +07:00
parent 5a8e2dee2f
commit 39d8be10cc
6 changed files with 344 additions and 169 deletions

View File

@@ -18,4 +18,37 @@ const getAllHistoryEvent = async (queryParams) => {
return response.data;
};
export { getAllHistoryAlarm, getAllHistoryEvent };
const getAllHistoryValueReport = async (queryParams) => {
const response = await SendRequest({
method: 'get',
prefix: `history/value-report?${queryParams.toString()}`,
});
return response.data;
};
const getAllHistoryValueReportPivot = async (queryParams) => {
const response = await SendRequest({
method: 'get',
prefix: `history/value-report-pivot?${queryParams.toString()}`,
});
return response.data;
};
const getAllHistoryValueTrendingPivot = async (queryParams) => {
const response = await SendRequest({
method: 'get',
prefix: `history/value-trending?${queryParams.toString()}`,
});
return response.data;
};
export {
getAllHistoryAlarm,
getAllHistoryEvent,
getAllHistoryValueReport,
getAllHistoryValueReportPivot,
getAllHistoryValueTrendingPivot,
};