/**
 * Created by MyPC on 2019/11/5.
 */
var express = require('express');
var router = express.Router();
var cloudAjaxController=require('./controller/cloudEditionAjaxController');

router.get('/cloud/curing/ajax/curingInfo/:mobile', function(req, res, next) {
    cloudAjaxController.getCuringInfo(req, res);
});

//------------用户列表界面相关----------------
/**
 * 编办筛选
 */
//router.get('/cloud/curing/ajax/getCuringByCompilationId', function(req, res, next) {
//	cloudAjaxController.refreshCuringPage(req, res);
//});
router.get('/cloud/curing/ajax/refreshCuringPage', function(req, res, next) {
    cloudAjaxController.refreshCuringPage(req, res);
});












//������ҳ
router.get('/cloud/curing/ajax/getCuringPage/:currentPage', function(req, res, next) {
    cloudAjaxController.getCuringPage(req, res);
});

router.get('/cloud/curing/ajax/checkMobile/:mobile', function(req, res, next) {
    cloudAjaxController.checkMobile(req, res);
});

//����ͨ��֤ID��������û���Ϣ
router.get('/cloud/curing/ajax/getCuringBySsoid', function(req, res, next) {
    cloudAjaxController.getCuringBySsoid(req, res);
});

//��������ҳ ����
router.get('/cloud/curing/ajax/getCuringById/:sso_id', function(req, res, next) {
    cloudAjaxController.getCuringById(req, res);
});
//������д��CLD��������������Ʒ
router.post('/cloud/curing/ajax/upCuringDo', function(req, res, next) {
    cloudAjaxController.upCuringDo(req, res);
});
//�����û�����CLD�ͻ�
router.post('/cloud/curing/ajax/relevanceClientDo', function(req, res, next) {
    cloudAjaxController.relevanceClientDo(req, res);
});
//�����û��Ƴ�CLD�ͻ�
router.post('/cloud/curing/ajax/relieveClientDo', function(req, res, next) {
    cloudAjaxController.relieveClientDo(req, res);
});



module.exports = router;