'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 = { };