You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
596 B
30 lines
596 B
2 years ago
|
'use strict';
|
||
|
|
||
|
async function alarmList (ctx) {
|
||
|
try {
|
||
|
const { models } = ctx.fs.dc;
|
||
|
const { clickHouse } = ctx.app.fs
|
||
|
|
||
|
// const alarmRes= await clickHouse.vcmp.query(`
|
||
|
// SELECT
|
||
|
// *
|
||
|
// FROM
|
||
|
// camera_status_alarm
|
||
|
// LEFT JOIN
|
||
|
|
||
|
// `).toPromise()
|
||
|
|
||
|
ctx.status = 200;
|
||
|
ctx.body = []
|
||
|
} catch (error) {
|
||
|
ctx.fs.logger.error(`path: ${ctx.path}, error: error`);
|
||
|
ctx.status = 400;
|
||
|
ctx.body = {
|
||
|
message: typeof error == 'string' ? error : undefined
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
|
||
|
};
|