api history list alarm

This commit is contained in:
2025-10-25 23:50:49 +07:00
parent 02a2561274
commit 2fa263e9e4
5 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
const HistoryValue = require('../services/history_value.service');
const { setResponsePaging } = require('../helpers/utils');
class HistoryValueController {
// Get all units
static async getAllHistoryAlarm(req, res) {
const queryParams = req.query;
const results = await HistoryValue.getAllHistoryAlarm(queryParams);
const response = await setResponsePaging(queryParams, results, 'Unit found');
res.status(response.statusCode).json(response);
}
}
module.exports = HistoryValueController;