'use strict'; const report = require('../../controllers/report'); module.exports = function (app, router, opts) { router.get('/reports/templates/:templateId/batch-dimension', report.getTemplateBatchDimension, { content: '获取模板主批量维度', visible: true }); router.put('/reports/templates/:templateId/batch-dimension', report.upsertTemplateBatchDimension, { content: '创建或更新模板主批量维度', visible: true }); router.delete('/reports/templates/:templateId/batch-dimension', report.deleteTemplateBatchDimension, { content: '删除模板主批量维度', visible: true }); router.get('/reports/templates/:templateId/blocks/:templateBlockId/batch-binding', report.getTemplateBlockBatchBinding, { content: '获取模板块批量绑定', visible: true }); router.put('/reports/templates/:templateId/blocks/:templateBlockId/batch-binding', report.upsertTemplateBlockBatchBinding, { content: '创建或更新模板块批量绑定', visible: true }); router.delete('/reports/templates/:templateId/blocks/:templateBlockId/batch-binding', report.deleteTemplateBlockBatchBinding, { content: '删除模板块批量绑定', visible: true }); router.post('/reports/templates/:templateId/batch-dimension/values/preview', report.previewTemplateBatchDimensionValues, { content: '预览模板主批量维度值', visible: true }); };