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.
24 lines
1.2 KiB
24 lines
1.2 KiB
'use strict';
|
|
|
|
const salesDistribution = require('../../controllers/salesDistribution');
|
|
|
|
module.exports = function (app, router, opts) {
|
|
|
|
app.fs.api.logAttr['GET/sales/member/list'] = { content: '查询销售人员列表', visible: true };
|
|
router.get('/sales/member/list', salesDistribution.salesList);
|
|
|
|
app.fs.api.logAttr['POST/sales/member/add'] = { content: '添加销售人员信息', visible: true };
|
|
router.post('/sales/member/add', salesDistribution.add);
|
|
|
|
app.fs.api.logAttr['PUT/sales/member/modify'] = { content: '编辑销售人员信息', visible: true };
|
|
router.put('/sales/member/modify', salesDistribution.edit);
|
|
|
|
app.fs.api.logAttr['DEL/sales/member/del'] = { content: '删除销售人员信息', visible: true };
|
|
router.del('/sales/member/del', salesDistribution.del);
|
|
|
|
app.fs.api.logAttr['POST/add/sales/members/bulk'] = { content: '导入销售人员信息', visible: true };
|
|
router.post('/add/sales/members/bulk', salesDistribution.addSalesMemberBulk);
|
|
|
|
app.fs.api.logAttr['GET/sales/members/export'] = { content: '导出销售人员信息', visible: true };
|
|
router.get('/sales/members/export', salesDistribution.exportData);
|
|
};
|