政务数据资源中心(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.

23 lines
918 B

'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(opts))
//获取采集任务列表
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(opts, app))
// 删除采集任务信息
app.fs.api.logAttr['DEL/acq/task/:id'] = { content: '删除采集任务信息', visible: true };
router.del('acq/task/:id', task.deleteAcquisitionTask(opts))
};