四好公路
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.

31 lines
684 B

'use strict';
const moment = require('moment')
async function getAnspectionNotificationPhone (ctx) {
try {
const models = ctx.fs.dc.models;
let findOption = {
where: {
},
order: [['id', 'DESC']]
}
const roadRes = await models.AnspectionNotificationPhone.findAll(findOption)
ctx.status = 200;
ctx.body = roadRes
} catch (error) {
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`);
ctx.status = 400;
ctx.body = {
message: typeof error == 'string' ? error : undefined
}
}
}
module.exports = {
getAnspectionNotificationPhone,
};