wx.js 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. 'use strict';
  2. module.exports = app => {
  3. const { router, controller } = app;
  4. // 微信消息通知
  5. // router.post('/wx/wxMessage', controller.wxController.toWechat);
  6. // router.post('/wx/createMenu', controller.wxController.createMenu);
  7. //
  8. router.get('/wx/getUserInfo', controller.wxController.getUserInfo);
  9. // router.get('/wx/getSign', controller.wxController.getSign);
  10. // 微信提现
  11. router.post('/wx/promotion', controller.wxPayController.promotion);
  12. router.get('/wx/getOpenId', controller.wxController.oauth);
  13. router.get('/wx/getAppletOpenId', controller.wxController.getAppletOpenId);
  14. router.get('/wx/getAppId', controller.wxController.getAppidByCid);
  15. // 微信配置 (业务不需要对外暴露)
  16. // router.post('/wx/wxconfig/add', controller.wxConfigController.add);
  17. // router.post('/wx/wxconfig/update', controller.wxConfigController.update);
  18. //
  19. // router.get('/wx/wxconfig/one', controller.wxConfigController.one);
  20. // router.get('/wx/wxconfig/delete', controller.wxConfigController.delete);
  21. // router.get('/wx/wxconfig/list', controller.wxConfigController.list);
  22. // 微信端接口
  23. router.get('/wxinfo/isExist', controller.wxInfoController.isExist);
  24. router.get('/wxinfo/bing', controller.wxInfoController.bing);
  25. router.get('/wxinfo/unbind', controller.wxInfoController.unbind);
  26. router.post('/wxinfo/updatePwd', controller.wxInfoController.updatePwd);
  27. router.post('/wxinfo/add', controller.infoController.add);
  28. router.post('/wxinfo/update', controller.infoController.update);
  29. router.get('/wxinfo/one', controller.infoController.one);
  30. router.get('/wxinfo/delete', controller.infoController.delete);
  31. router.get('/wxinfo/list', controller.infoController.list);
  32. router.get('/wxinfo/listByOpenid', controller.infoController.listByOpenid);
  33. router.get('/wxinfo/listByFid', controller.infoController.listByFid);
  34. router.get('/wxinfo/listByNumber', controller.infoController.listByNumber);
  35. router.get('/wxinfo/userValue', controller.sysUserController.valueByUserOne);
  36. router.get('/visit/listByInfoId', controller.visitController.listByInfoId);
  37. router.get('/wxinfo/sumUserOne', controller.sysUserController.sumUserOne);
  38. // 国家行政区
  39. router.get('/civilregionalism/deptList', controller.civilregionalismController.deptList);
  40. // 微信端 探访查询
  41. router.get('/wxinfo/visitIsExist', controller.visitController.visitIsExist);
  42. router.get('/wxinfo/visitBing', controller.visitController.visitBing);
  43. router.get('/wxinfo/visitUnbind', controller.visitController.visitUnbind);
  44. router.get('/wxinfo/visitByNumber', controller.visitController.visitByNumber);
  45. router.get('/wxinfo/visitByFid', controller.infoController.visitByFid);
  46. // 小程序端 子女绑定
  47. router.get('/applet/appletVisitIsExist', controller.visitController.appletVisitIsExist);
  48. router.get('/applet/appletVisitBing', controller.visitController.appletVisitBing);
  49. router.get('/applet/appletVisitUnbind', controller.visitController.appletVisitUnbind);
  50. // 未按要求巡访的数据
  51. router.get('/wxinfo/noVisitList', controller.infoController.noVisitList);
  52. // 自主申报
  53. router.post('/wxinfo/ownerAdd', controller.infoController.ownerAdd);
  54. router.post('/wxinfo/ownerUpdate', controller.infoController.ownerUpdate);
  55. router.get('/wxinfo/findOwnerInfo', controller.infoController.findOwnerInfo);
  56. router.get('/wxinfo/ownerStatistics', controller.infoController.ownerStatistics); // 自主填报查询吉林省统计
  57. };