'use strict'; module.exports = app => { const { router, controller } = app; // 小程序端接口 // 登陆 绑定 解绑 修改密码 router.get('/applet/isExist', controller.appletsController.isExist); router.get('/applet/bing', controller.appletsController.bing); router.get('/applet/unbind', controller.appletsController.unbind); router.get('/applet/updatePwd', controller.appletsController.updatePwd); router.get('/applet/homeStatistics', controller.appletsController.homeStatistics); // 首页地区统计 router.post('/applet/suppleUserInfo', controller.appletsController.suppleUserInfo); // 采集员完善信息 router.get('/applet/findUserInfo', controller.appletsController.findUserInfo); // 采集员信息回显 router.get('/applet/userValue', controller.appletsController.userValue); // 采集员积分排名 router.get('/applet/getToken', controller.appletsController.getToken); // OCR getToken router.get('/user/isPerfect', controller.appletsController.isPerfect); // 是否已完善信息和人脸比对 router.post('/user/getPeople', controller.appletsController.getPeople); // 人脸检测 router.post('/user/getPeopleByBase64', controller.appletsController.getPeopleFaceByBase64); // 人脸检测--CH-2023-6-15-base64格式的人脸检测 router.post('/user/userFaceComparison', controller.appletsController.userFaceComparison); // 人脸比对 // 通知 router.get('/appletNotice/one', controller.noticeController.one); router.get('/appletNotice/list', controller.noticeController.list); router.get('/appletNotice/listForPage', controller.noticeController.listForPage); router.post('/appletNotice/add', controller.noticeController.add); router.post('/appletNotice/update', controller.noticeController.update); router.get('/appletNotice/delete', controller.noticeController.delete); router.get('/appletNotice/listForApplets', controller.noticeController.listForApplets); router.get('/appletNotice/listForAppletsNoread', controller.noticeController.listForAppletsNoread); router.get('/appletNotice/listForAppletsFirst', controller.noticeController.listForAppletsFirst); router.get('/appletNotice/pcListForPage', controller.noticeController.pcListForPage); // 通知中间表 router.post('/readNotice/add', controller.readNoticeController.add); router.get('/readNotice/appList', controller.readNoticeController.appList); // 欢迎语 router.get('/welcomeMessage/one', controller.welcomeMessageController.one); router.get('/welcomeMessage/list', controller.welcomeMessageController.list); router.get('/welcomeMessage/listForPage', controller.welcomeMessageController.listForPage); router.post('/welcomeMessage/add', controller.welcomeMessageController.add); router.post('/welcomeMessage/update', controller.welcomeMessageController.update); router.get('/welcomeMessage/delete', controller.welcomeMessageController.delete); // 轮播图-轮播图这几个接口没用上,且库里面也没有创建这个表-目前形式是轮播图在前端写死的-CH注释掉-2021-10-18 15:37:44。 // router.get('/banner/one', controller.bannerController.one); // router.get('/banner/list', controller.bannerController.list); // router.get('/banner/listForPage', controller.bannerController.listForPage); // router.post('/banner/add', controller.bannerController.add); // router.post('/banner/update', controller.bannerController.update); // router.get('/banner/delete', controller.bannerController.delete); // 意见反馈 router.get('/feedback/one', controller.feedbackController.one); router.get('/feedback/listForPage', controller.feedbackController.listForPage); router.post('/feedback/add', controller.feedbackController.add); router.get('/feedback/delete', controller.feedbackController.delete); // router.get('/apptoken/sendMsg', controller.appTokenController.sendMsg); };