'use strict'; const aichat = require('../controllers/aichat'); module.exports = function (app, router, opts) { const { middlewares: { auth } } = app router.get('/aichat/knowledge', aichat.getKnowledgeList, { content: '转发获取知识库列表', visible: true }); router.post('/aichat/quote/optimize', aichat.optimizeQuoteData, { content: '优化引用数据', visible: true }); router.post('/aichat/downloadScheme', aichat.downloadScheme, { content: '下载方案', visible: true }); router.post('/aichat/workingHoursEstimate', aichat.downloadWorkingHoursEstimate, { content: '下载工时评估表', visible: true }); };