コード例 #1
0
 /**
  * @param session: 获取用户ID
  * @param moduleId: 首页模块ID
  * @param switchSign: 模块开关标记
  * @return
  * @throws Exception
  */
 @RequestMapping(value = "/switch", method = RequestMethod.GET)
 public void switchModule(
     @RequestParam Long moduleId, @RequestParam Boolean switchSign, HttpSession session)
     throws Exception {
   // Long userId  = (Long) session.getAttribute("userId");
   Long userId = 4L;
   dashboardConfigurationService.switchModule(userId, moduleId, switchSign);
 }
コード例 #2
0
 /**
  * 增加首页模块发起维护(用户与首页模块)配置表
  *
  * @param moduleId: 添加的模块id
  * @param defaultModuleFlag: 添加的模块是否为首页默认的显示模块
  */
 @RequestMapping(value = "/addModule", method = RequestMethod.GET)
 public void maintainConfigOfDashboardModuleLaunch(Long moduleId, Long defaultModuleFlag) {
   dashboardConfigurationService.maintainConfigOfDashboardModuleLaunch(
       moduleId, defaultModuleFlag);
 }
コード例 #3
0
 /** 增加用户发起维护(用户与首页模块)配置表 */
 @RequestMapping(value = "/addUser", method = RequestMethod.GET)
 public void maintainConfigOfUserLaunch(Long userId) {
   dashboardConfigurationService.maintainConfigOfUserLaunch(userId);
 }