private String channelsEditJson(Integer groupId, Integer siteId,Integer type,
HttpServletRequest request, HttpServletResponse response,
ModelMap model) {
List<Channel> channelList = channelMng.getTopList(siteId, false);
CmsGroup group = manager.findById(groupId);
model.addAttribute("channelList", channelList);
if(type.equals(1)){
model.addAttribute("channelIds", group.getViewChannelIds(siteId));
}else{
model.addAttribute("channelIds", group.getContriChannelIds(siteId));
}
response.setHeader("Cache-Control", "no-cache");
response.setContentType("text/json;charset=UTF-8");
return "group/channels_edit";
}