| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 | /** * Created by Zhong on 2017/12/21. */import express from 'express';import CompleViewController from '../controllers/compleViewController';import CompleSectionTreeController from '../controllers/compleSectionTreeController';import CompleRationController from '../controllers/compleRationController';import GljController from '../../complementary_glj_lib/controllers/gljController';import SearchController from '../controllers/searchController'let router = express.Router();let compleViewController = new CompleViewController();let compleSectionTreeController = new CompleSectionTreeController();let compleRationController = new CompleRationController();let gljController = new GljController();let searchController = new SearchController();module.exports = function (app) {    //app.get('/complementaryRation/main', compleViewController.init, compleViewController.redirectMain);    app.get('/complementaryRation/ration', compleViewController.init, compleViewController.redirectRation);    app.get('/complementaryRation/glj', compleViewController.init, compleViewController.redirectGljList);    app.get('/complementaryRation/coe', compleViewController.init, compleViewController.redirectCoeList);    app.get('/complementaryRation/installation', compleViewController.init, compleViewController.redirectInstallation);    router.post('/getRationLib', compleViewController.init, compleViewController.getRationLib);    router.post('/getRationLibs', compleViewController.init, compleViewController.getRationLibs);    router.post('/getNewTreeID', compleSectionTreeController.init, compleSectionTreeController.getNewTreeID);    router.post('/getRationTree', compleSectionTreeController.init, compleSectionTreeController.getRationTree);    router.post('/updateRationSection', compleSectionTreeController.init, compleSectionTreeController.updateRationSection);    router.post('/getRationItems', compleRationController.init, compleRationController.getRationItems);    router.post('/mixUpdateRationItems', compleRationController.init, compleRationController.mixUpdateRationItems);    router.post('/getGljDistType', gljController.init, gljController.getGljDistType);    router.post('/getGljTree', gljController.init, gljController.getGljTree);    router.post('/getGljItems', compleRationController.init, compleRationController.getGljItems);    router.post('/getGljItemsOccupied', compleRationController.init, compleRationController.getGljItemsOccupied);    router.post('/getRationsCodes', compleRationController.init, compleRationController.getRationsCodes);    router.post('/getGljItemsByIds', compleRationController.init, compleRationController.getGljItemsByIds);    router.post('/getGljItemsByCodes', compleRationController.init, compleRationController.getGljItemsByCodes);    router.post('/getCoeList', compleRationController.init, compleRationController.getCoeList);    router.post('/getCoeItemsByIDs', compleRationController.init, compleRationController.getCoeItemsByIDs);    router.post('/getCoeItemsByNos', compleRationController.init, compleRationController.getCoeItemsByNos);    //安装增加费    router.post('/getInstallation', compleRationController.init, compleRationController.getInstallation);    //造价书定额库    router.post('/getRationItem', searchController.init, searchController.getRationItem);    router.post('/findRation', searchController.init, searchController.findRation);    router.post('/getRationGljItemsBySection', compleRationController.init, compleRationController.getRationGljItemsBySection);    app.use('/complementaryRation/api', router);};
 |