cloudAjaxRouter.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * Created by MyPC on 2019/11/5.
  3. */
  4. var express = require('express');
  5. var router = express.Router();
  6. var cloudAjaxController=require('./controller/cloudEditionAjaxController');
  7. router.get('/cloud/curing/ajax/curingInfo/:mobile', function(req, res, next) {
  8. cloudAjaxController.getCuringInfo(req, res);
  9. });
  10. router.get('/cloud/curing/ajax/getCuringByCompilationId/:compilation_id', function(req, res, next) {
  11. cloudAjaxController.getCuringByCompilationId(req, res);
  12. });
  13. router.get('/cloud/curing/ajax/getCuringByCompilationId', function(req, res, next) {
  14. cloudAjaxController.getCuringByCompilationId(req, res);
  15. });
  16. //养护分页
  17. router.get('/cloud/curing/ajax/getCuringPage/:currentPage', function(req, res, next) {
  18. cloudAjaxController.getCuringPage(req, res);
  19. });
  20. router.get('/cloud/curing/ajax/checkMobile/:mobile', function(req, res, next) {
  21. cloudAjaxController.checkMobile(req, res);
  22. });
  23. //根据通行证ID获得养护用户信息
  24. router.get('/cloud/curing/ajax/getCuringBySsoid', function(req, res, next) {
  25. cloudAjaxController.getCuringBySsoid(req, res);
  26. });
  27. //养护详情页 数据
  28. router.get('/cloud/curing/ajax/getCuringById/:sso_id', function(req, res, next) {
  29. cloudAjaxController.getCuringById(req, res);
  30. });
  31. //养护用写入CLD,并升级养护产品
  32. router.post('/cloud/curing/ajax/upCuringDo', function(req, res, next) {
  33. cloudAjaxController.upCuringDo(req, res);
  34. });
  35. //养护用户关联CLD客户
  36. router.post('/cloud/curing/ajax/relevanceClientDo', function(req, res, next) {
  37. cloudAjaxController.relevanceClientDo(req, res);
  38. });
  39. //养护用户移除CLD客户
  40. router.post('/cloud/curing/ajax/relieveClientDo', function(req, res, next) {
  41. cloudAjaxController.relieveClientDo(req, res);
  42. });
  43. module.exports = router;