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

/*---------------------养护相关---------------------*/
//------------用户列表界面相关----------------
/**
 * 编办筛选
 */
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.refreshCuringPage(req, res);
});

//------------用户详情页界面相关----------------
/**
 * 获得用户详情
 */
router.get('/cloud/curing/ajax/getCuringBySsoid', function(req, res, next) {
    cloudAjaxController.getCuringBySsoid(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);
});
//������д��CLD��������������Ʒ
router.post('/cloud/curing/ajax/upCuringDo', function(req, res, next) {
    cloudAjaxController.upCuringDo(req, res);
});


/*---------------------建筑相关---------------------*/
//------------用户列表界面相关----------------
/**
 * 编办筛选
 */
router.get('/cloud/build/ajax/refreshCuringPage', function(req, res, next) {
	cloudBuildAjaxController.refreshCuringPage(req, res);
});
//������ҳ
router.get('/cloud/build/ajax/getCuringPage/:currentPage', function(req, res, next) {
	cloudBuildAjaxController.refreshCuringPage(req, res);
});

//------------用户详情页界面相关----------------
/**
 * 获得用户详情
 */
router.get('/cloud/build/ajax/getCuringBySsoid', function(req, res, next) {
	cloudBuildAjaxController.getCuringBySsoid(req, res);
});
/**
 * 用户关联CLD客户
 */
router.post('/cloud/build/ajax/relevanceClientDo', function(req, res, next) {
	cloudBuildAjaxController.relevanceClientDo(req, res);
});
/**
 * 用户取消关联CLD客户
 */
router.post('/cloud/build/ajax/relieveClientDo', function(req, res, next) {
	cloudBuildAjaxController.relieveClientDo(req, res);
});
//������д��CLD��������������Ʒ
router.post('/cloud/build/ajax/upCuringDo', function(req, res, next) {
	cloudBuildAjaxController.upCuringDo(req, res);
});






/**
 * 用户检索--废弃
 */
/*
router.get('/cloud/curing/ajax/curingInfo/:mobile', function(req, res, next) {
    cloudAjaxController.getCuringInfo(req, res);
});


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



//��������ҳ ����  ---预计废弃
router.get('/cloud/curing/ajax/getCuringById/:sso_id', function(req, res, next) {
    cloudAjaxController.getCuringById(req, res);
});
*/


module.exports = router;