applets.js 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. 'use strict';
  2. module.exports = app => {
  3. const { router, controller } = app;
  4. // 小程序端接口
  5. // 登陆 绑定 解绑 修改密码
  6. router.get('/applet/isExist', controller.appletsController.isExist);
  7. router.get('/applet/bing', controller.appletsController.bing);
  8. router.get('/applet/unbind', controller.appletsController.unbind);
  9. router.get('/applet/updatePwd', controller.appletsController.updatePwd);
  10. router.get('/applet/homeStatistics', controller.appletsController.homeStatistics); // 首页地区统计
  11. router.post('/applet/suppleUserInfo', controller.appletsController.suppleUserInfo); // 采集员完善信息
  12. router.get('/applet/findUserInfo', controller.appletsController.findUserInfo); // 采集员信息回显
  13. router.get('/applet/userValue', controller.appletsController.userValue); // 采集员积分排名
  14. router.get('/applet/getToken', controller.appletsController.getToken); // OCR getToken
  15. router.get('/user/isPerfect', controller.appletsController.isPerfect); // 是否已完善信息和人脸比对
  16. router.post('/user/getPeople', controller.appletsController.getPeople); // 人脸检测
  17. router.post('/user/getPeopleByBase64', controller.appletsController.getPeopleFaceByBase64); // 人脸检测--CH-2023-6-15-base64格式的人脸检测
  18. router.post('/user/userFaceComparison', controller.appletsController.userFaceComparison); // 人脸比对
  19. // 通知
  20. router.get('/appletNotice/one', controller.noticeController.one);
  21. router.get('/appletNotice/list', controller.noticeController.list);
  22. router.get('/appletNotice/listForPage', controller.noticeController.listForPage);
  23. router.post('/appletNotice/add', controller.noticeController.add);
  24. router.post('/appletNotice/update', controller.noticeController.update);
  25. router.get('/appletNotice/delete', controller.noticeController.delete);
  26. router.get('/appletNotice/listForApplets', controller.noticeController.listForApplets);
  27. router.get('/appletNotice/listForAppletsNoread', controller.noticeController.listForAppletsNoread);
  28. router.get('/appletNotice/listForAppletsFirst', controller.noticeController.listForAppletsFirst);
  29. router.get('/appletNotice/pcListForPage', controller.noticeController.pcListForPage);
  30. // 通知中间表
  31. router.post('/readNotice/add', controller.readNoticeController.add);
  32. router.get('/readNotice/appList', controller.readNoticeController.appList);
  33. // 欢迎语
  34. router.get('/welcomeMessage/one', controller.welcomeMessageController.one);
  35. router.get('/welcomeMessage/list', controller.welcomeMessageController.list);
  36. router.get('/welcomeMessage/listForPage', controller.welcomeMessageController.listForPage);
  37. router.post('/welcomeMessage/add', controller.welcomeMessageController.add);
  38. router.post('/welcomeMessage/update', controller.welcomeMessageController.update);
  39. router.get('/welcomeMessage/delete', controller.welcomeMessageController.delete);
  40. // 轮播图-轮播图这几个接口没用上,且库里面也没有创建这个表-目前形式是轮播图在前端写死的-CH注释掉-2021-10-18 15:37:44。
  41. // router.get('/banner/one', controller.bannerController.one);
  42. // router.get('/banner/list', controller.bannerController.list);
  43. // router.get('/banner/listForPage', controller.bannerController.listForPage);
  44. // router.post('/banner/add', controller.bannerController.add);
  45. // router.post('/banner/update', controller.bannerController.update);
  46. // router.get('/banner/delete', controller.bannerController.delete);
  47. // 意见反馈
  48. router.get('/feedback/one', controller.feedbackController.one);
  49. router.get('/feedback/listForPage', controller.feedbackController.listForPage);
  50. router.post('/feedback/add', controller.feedbackController.add);
  51. router.get('/feedback/delete', controller.feedbackController.delete);
  52. // router.get('/apptoken/sendMsg', controller.appTokenController.sendMsg);
  53. };