政务数据资源中心(Government data Resource center) 03专项3期主要建设内容
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.

27 lines
1.1 KiB

'use strict';
const task = require('../../controllers/metadataAcquisition/task');
module.exports = function (app, router, opts, AuthCode) {
app.fs.api.logAttr['POST/meta/acq/task'] = { content: '增加采集任务信息', visible: true };
router.post('/meta/acq/task', task.addAcquisitionTask(app))
//获取采集任务列表
app.fs.api.logAttr['GET/meta/acq/tasks'] = { content: '获取采集任务列表', visible: true };
router.get('/meta/acq/tasks', task.getAcquisitionTask(opts));
// 修改采集任务信息
app.fs.api.logAttr['PUT/acq/task/:id'] = { content: '修改采集任务信息', visible: true };
router.put('/acq/task/:id', task.editAcquisitionTask(app))
// 删除采集任务信息
app.fs.api.logAttr['DEL/acq/task/:id'] = { content: '删除采集任务信息', visible: true };
router.del('acq/task/:id', task.deleteAcquisitionTask(app))
//任务立即执行
app.fs.api.logAttr['POST/run/acq/task'] = { content: '任务立即执行', visible: true };
router.post('/run/acq/task', task.runAcqTask(app))
};