router.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const { router, controller } = app;
  7. router.get('/', controller.home.index);
  8. const profix = '/api/live/';
  9. const vision = 'v0';
  10. router.get(`${profix}${vision}/wxlogin/:site`, controller.weixin.auth);
  11. router.get(`${profix}${vision}/authBack`, controller.weixin.authBack);
  12. router.get(`${profix}${vision}/wxuser/:site`, controller.weixin.wxUser);
  13. router.post(`${profix}${vision}/util`, controller.home.utilMethod);
  14. router.post(`${profix}${vision}/spm`, controller.home.spm);
  15. router.get(`${profix}${vision}/index`, controller.home.indexQuery);
  16. // users
  17. require('./router/users/admin')(app); // 管理员
  18. require('./router/users/personal')(app); // 个人用户
  19. require('./router/users/organization')(app); // 机构用户
  20. require('./router/users/expert')(app); // 专家用户
  21. require('./router/users/product')(app); // 产品
  22. require('./router/users/person_room')(app); // 个人聊天房间
  23. require('./router/users/person_chat')(app); // 个人聊天
  24. require('./router/users/question')(app); // 调研调查
  25. require('./router/users/project_solic')(app); // 项目征集
  26. // system
  27. require('./router/system/menu')(app); // 菜单
  28. require('./router/system/category')(app); // 字典类别
  29. require('./router/system/code')(app); // 字典
  30. require('./router/system/invite_code')(app); // 邀请码
  31. require('./router/system/notice')(app); // 通知管理
  32. require('./router/system/survey')(app); // 建言献策,网上调查
  33. // dock
  34. require('./router/dock/road_show')(app); // 路演
  35. require('./router/dock/interview')(app); // 访谈
  36. require('./router/dock/dock')(app); // 展会
  37. require('./router/dock/dock_video')(app); // 展会-视频
  38. require('./router/dock/dock_imgtxt')(app); // 展会-图文
  39. require('./router/dock/dock_user')(app); // 展会-用户
  40. require('./router/dock/dock_vip')(app); // 展会-vip用户
  41. require('./router/dock/dock_transcation')(app); // 展会-合同
  42. require('./router/dock/train_live')(app); // 培训
  43. require('./router/dock/train_chat')(app); // 展会-聊天
  44. require('./router/dock/channel')(app); // 科技频道
  45. require('./router/dock/channel_video')(app); // 科技频道视频
  46. require('./router/dock/dock_chat')(app); // 展会聊天
  47. require('./router/dock/patent')(app); // e专利
  48. // tecinfo
  49. require('./router/tecinfo/column')(app); // 栏目
  50. require('./router/tecinfo/news')(app); // 信息
  51. require('./router/tecinfo/science')(app); // 科技新闻
  52. require('./router/tecinfo/universal')(app); // 科学普及
  53. require('./router/tecinfo/view_point')(app); // 智库视点
  54. require('./router/tecinfo/dimension')(app); // 专利维权
  55. require('./router/tecinfo/patentnav')(app); // 专利导航
  56. // statistics
  57. require('./router/statistics/index')(app); // 首页统计
  58. // cysci
  59. require('./router/cysci/coupons')(app); // 创新券
  60. require('./router/cysci/coupons_apply')(app); // 创新券申请
  61. require('./router/cysci/declare')(app); // 高企申报
  62. require('./router/cysci/cashing')(app); // 高企申报兑付
  63. require('./router/cysci/reward')(app); // 研发补贴/奖励兑换申领
  64. require('./router/cysci/mechanism')(app); // 机构
  65. // kjzl
  66. require('./router/kjzl/kjzl_mini_video')(app); // 科教之旅-微视频
  67. require('./router/kjzl/kjzl_refute')(app); // 科教之旅-科学辟谣
  68. require('./router/kjzl/kjzl_medium')(app); // 科教之旅-机构
  69. require('./router/kjzl/kjzl_chat')(app); // 科教之旅-评价
  70. require('./router/kjzl/kjzl_order')(app); // 科教之旅-订单表
  71. require('./router/kjzl/kjzl_expert_view')(app); // 科教之旅-专家视点
  72. // 专利运营
  73. // require('./router/patent/disclosure')(app); // 交底表
  74. // require('./router/patent/report')(app); // 评估报告
  75. // require('./router/patent/notice')(app); // 消息通知
  76. // require('./router/patent/sell')(app); // 交易
  77. // require('./router/patent/purchase')(app); // 求购
  78. // require('./router/patent/tradeorder')(app); // 交易订单
  79. // 2021-08-20-重定义
  80. // require('./router/patent/patentroom')(app); // 专利资讯服务房间表
  81. require('./router/patent/patentchat')(app); // 专利资讯服务聊天表
  82. require('./router/patent/patentexamine')(app); // 审核通知表
  83. require('./router/patent/patentnotice')(app); // 通知表
  84. require('./router/patent/patentapply')(app); // 专利申请表-审批单
  85. require('./router/patent/patentwarning')(app); // 专利申请预警表
  86. require('./router/patent/patentanalysis')(app); // 查新检索表-交底单
  87. require('./router/patent/patentassess')(app); // 价值评估表
  88. require('./router/patent/patentinfo')(app); // 专利信息表
  89. require('./router/patent/patentearly')(app); // 专利信息已授权专利预警表
  90. require('./router/patent/patenttrans')(app); // 专利交易表
  91. require('./router/patent/patenttechol')(app); // 专利需求表
  92. require('./router/patent/patentsafeg')(app); // 专利维权表
  93. };