/**
  * @Title: page @Description: 活动报名
  *
  * @param request
  * @param dm
  * @param activityUser
  * @return ResponseContainer
  * @throws
  */
 @RequestMapping("/create")
 public @ResponseBody ResponseContainer create(
     HttpServletRequest request, QueryModel dm, ActivityUser activityUser) {
   ActivityUser activity;
   try {
     activity = activityUserServie.add(activityUser);
     return addResponse(Config.STATUS_200, Config.MSG_200, activity, Config.RESP_MODE_10, "");
   } catch (XueWenServiceException e) {
     // TODO Auto-generated catch block
     return addResponse(e.getCode(), e.getMessage(), false, Config.RESP_MODE_10, "");
   } catch (Exception e) {
     return addResponse(Config.STATUS_505, Config.MSG_505, false, Config.RESP_MODE_10, "");
   }
 }
 /**
  * @Title: find @Description: 查找配置信息
  *
  * @param request
  * @param cloudConfig
  * @return ResponseContainer
  * @throws
  */
 @RequestMapping(value = "/findOne")
 public @ResponseBody ResponseContainer findOne(HttpServletRequest request) {
   try {
     String id = request.getParameter("id");
     ColudConfig cloudConfig = coludConfigService.findOneById(id);
     return addResponse(Config.STATUS_200, Config.MSG_200, cloudConfig, Config.RESP_MODE_10, "");
   } catch (XueWenServiceException e) {
     logger.error("==========业务错误,添加新的配置信息失败============" + e);
     return addResponse(e.getCode(), e.getMessage(), false, Config.RESP_MODE_10, "");
   } catch (Exception e) {
     e.printStackTrace();
     logger.error("==========未知错误,添加新的配置信息失败============" + e);
     return addResponse(Config.STATUS_505, Config.MSG_505, false, Config.RESP_MODE_10, "");
   }
 }
 /**
  * @Title: add @Description: 添加新的配置信息
  *
  * @param request
  * @param cloudConfig
  * @return ResponseContainer
  * @throws
  */
 @RequestMapping(value = "/add", method = RequestMethod.POST)
 public @ResponseBody ResponseContainer add(HttpServletRequest request, ColudConfig cloudConfig) {
   try {
     String baseUrlList = request.getParameter("baseUrlList");
     coludConfigService.add(cloudConfig, baseUrlList);
     return addResponse(Config.STATUS_200, Config.MSG_200, true, Config.RESP_MODE_10, "");
   } catch (XueWenServiceException e) {
     logger.error("==========业务错误,添加新的配置信息失败============" + e);
     return addResponse(e.getCode(), e.getMessage(), false, Config.RESP_MODE_10, "");
   } catch (Exception e) {
     e.printStackTrace();
     logger.error("==========未知错误,添加新的配置信息失败============" + e);
     return addResponse(Config.STATUS_505, Config.MSG_505, false, Config.RESP_MODE_10, "");
   }
 }
 /**
  * @Title: find @Description: 查找配置信息
  *
  * @param request
  * @param cloudConfig
  * @return ResponseContainer
  * @throws
  */
 @RequestMapping(value = "/findByCkey")
 public @ResponseBody ResponseContainer findByCkey(HttpServletRequest request, QueryModel dm) {
   try {
     String ckey = request.getParameter("ckey");
     Pageable pageable = PageRequestTools.pageRequesMake(dm);
     Page<ColudConfig> cloudConfig = coludConfigService.findByCkey(ckey, pageable);
     ReponseDataTools.getClientReponseData(getReponseData(), cloudConfig);
     return addPageResponse(
         Config.STATUS_200, Config.MSG_200, getReponseData(), Config.RESP_MODE_10, "");
   } catch (XueWenServiceException e) {
     logger.error("==========业务错误,添加新的配置信息失败============" + e);
     return addResponse(e.getCode(), e.getMessage(), false, Config.RESP_MODE_10, "");
   } catch (Exception e) {
     e.printStackTrace();
     logger.error("==========未知错误,添加新的配置信息失败============" + e);
     return addResponse(Config.STATUS_505, Config.MSG_505, false, Config.RESP_MODE_10, "");
   }
 }