'use strict'; const application = require('../../controllers/alarm/app'); module.exports = function (app, router, opts) { // 应用告警 app.fs.api.logAttr['POST/alarm/application/inspection'] = { content: '保存应用巡检信息', visible: true }; router.post('/alarm/application/inspection', application.inspection); app.fs.api.logAttr['GET/alarm/application/inspection'] = { content: '查询应用巡检信息', visible: true }; router.get('/alarm/application/inspection', application.inspectionList); app.fs.api.logAttr['PUT/alarm/application/noted'] = { content: '保存检验状态', visible: true }; router.put('/alarm/application/noted', application.notedInspection); app.fs.api.logAttr['POST/alarm/application/api'] = { content: '保存应用接口/元素错误信息', visible: true }; router.post('/alarm/application/api', application.apiError); app.fs.api.logAttr['GET/alarm/application/api'] = { content: '查询应用接口/元素错误信息', visible: true }; router.get('/alarm/application/api', application.apiErrorList); app.fs.api.logAttr['POST/alarm/application/api_confirm'] = { content: '确认应用接口/元素错误信息', visible: true }; router.post('/alarm/application/api_confirm', application.confirmApiError); };