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.
10 lines
675 B
10 lines
675 B
'use strict';
|
|
|
|
const report = require('../../controllers/report');
|
|
|
|
module.exports = function (app, router, opts) {
|
|
const { middlewares: { auth, resolveExternalUserId } } = app;
|
|
router.post('/reports/templates/:templateId/instances/batch', auth, resolveExternalUserId, report.createBatchInstancesFromTemplate, { content: '基于模板批量创建报表实例', visible: true });
|
|
router.get('/reports/generation-batches', report.getGenerationBatches, { content: '获取批量生成任务列表', visible: true });
|
|
router.get('/reports/generation-batches/:batchId', report.getGenerationBatchDetail, { content: '获取批量生成任务详情', visible: true });
|
|
};
|
|
|