index.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import express from 'express'
  2. import SourceControl from "../control/source-control.js";
  3. import ParamsControl from "../control/params-control.js";
  4. import ParamsDictControl from "../control/params-dict-control.js";
  5. import TrackControl from "../control/track-control.js";
  6. import ShipFilterControl from "../control/ship-filter-control.js";
  7. const shipTestRouter = express.Router()
  8. // 数据源
  9. shipTestRouter.post('/source/list', SourceControl.list)
  10. shipTestRouter.post('/source/page', SourceControl.page)
  11. shipTestRouter.get('/source/info/:id', SourceControl.info)
  12. shipTestRouter.post('/source/add', SourceControl.add)
  13. shipTestRouter.put('/source/edit', SourceControl.edit)
  14. shipTestRouter.delete('/source/del/:ids', SourceControl.del)
  15. // 参数配置
  16. shipTestRouter.post('/params/list', ParamsControl.list)
  17. shipTestRouter.post('/params/page', ParamsControl.page)
  18. shipTestRouter.get('/params/info/:id', ParamsControl.info)
  19. shipTestRouter.post('/params/add', ParamsControl.add)
  20. shipTestRouter.put('/params/edit', ParamsControl.edit)
  21. shipTestRouter.delete('/params/del/:ids', ParamsControl.del)
  22. // 参数配置-字典
  23. shipTestRouter.post('/params/dict/list', ParamsDictControl.list)
  24. shipTestRouter.post('/params/dict/page', ParamsDictControl.page)
  25. shipTestRouter.get('/params/dict/info/:id', ParamsDictControl.info)
  26. shipTestRouter.post('/params/dict/add', ParamsDictControl.add)
  27. shipTestRouter.put('/params/dict/edit', ParamsDictControl.edit)
  28. shipTestRouter.delete('/params/dict/del/:ids', ParamsDictControl.del)
  29. shipTestRouter.get('/params/dict/enabled/:ids', ParamsDictControl.enabled)
  30. shipTestRouter.get('/params/dict/disabled/:ids', ParamsDictControl.disabled)
  31. // 轨迹配置
  32. shipTestRouter.post('/track/list', TrackControl.list)
  33. shipTestRouter.post('/track/page', TrackControl.page)
  34. shipTestRouter.get('/track/info/:id', TrackControl.info)
  35. shipTestRouter.post('/track/add', TrackControl.add)
  36. shipTestRouter.put('/track/edit', TrackControl.edit)
  37. shipTestRouter.get('/track/infoBySourceId/:sourceId', TrackControl.infoBySourceId)
  38. // 船筛
  39. shipTestRouter.get('/ship-filter/get-config', ShipFilterControl.getConfig)
  40. export default shipTestRouter