/** * 页面制作制作保存 * * @param reqMap{"type":"","bizType":"","message":"","msgUrl":""} * @return */ public Map saveMultimedia(Map<String, Object> reqMap) { Map resMap = null; String messageId = (String) reqMap.get("messageId"); if (StringUtil.isEmpty(messageId)) { resMap = postForMap(SystemMessage.getString("messageJsonServer") + "/add", reqMap, null); } else { resMap = postForMap(SystemMessage.getString("messageJsonServer") + "/update", reqMap, null); resMap.put("messageId", messageId); } return resMap; }
/** * 进入平台接口 * * @param response * @param mop * @param request * @return * @throws Exception */ @RequestMapping("/login") public String redirect(HttpServletRequest request) throws Exception { // 获取请求参数 Map<String, Object> map = bindParamToMap(request); String ctx = SystemMessage.getString("ctx"); // 请求中跳转的url String redirectUrl = (String) map.get("redirectUrl"); // 一.退出标识的cookie String isClickQuit = WebUtil.getSecurityCookieValue(request, LoginController.COOKIE_KEY_CLICK_QUIT_FLAG); // 二.从cookie中获取(openLoginFlag)加密的用户${userId}_${loginTime}: String loginFlagCookie = WebUtil.getSecurityCookieValue(request, LoginController.COOKIE_KEY_OPEN_LOGIN_FLAG); boolean validateResult = ssoService.validateUser(isClickQuit, loginFlagCookie); if (!validateResult) { return "redirect:" + ctx; } String userId = loginFlagCookie.split("_")[0]; // 模拟登录 boolean isSso = ssoService.virtualLogin(request, userId); if (!isSso) { return "redirect:" + ctx; } // 模拟登录成功 跳转指定url return "redirect:" + ctx + redirectUrl; }
/** * 图文--数据统计 * * @param reqMap 必填项{Param: {messageId:"",startTime:"",endTime:""}} } * @return {"returnCode":"200","list":[{"uv":"0","pv":"0","shareCount":"0"},} */ public Map<?, ?> imageTextStatisticalList(Map<String, Object> reqMap) { return postForMap(SystemMessage.getString("messageJsonServer") + "/getArticlesSummary", reqMap); }
public Map copyPage(String eid) { Map reqMap = new HashMap(); reqMap.put("eid", eid); return h5EditorClient.getForMap( SystemMessage.getString("emsEditorServer") + "/api/h5/copy.do", reqMap); }
/** * 回收详细数据--查看--表单 * * @param reqMap 必填项{Param: messageId:信息ID",mdn:"手机号",sNo:"批次号",nmId:"对应的页面ID"} * @return {{"returnCode": "200","formInfo": {"pageName": "页面名称","htmlUrl": "页面对应的url","nmId": * "页面ID","formId": "表单ID","formCont":"表单标题","formName": "表单名"}, "replyInfo": [{"replyCont": * "回复信息内容","submitTime": "提交时间","type": "问题类型","questionCont": "问题内容"}, {"submitTime": * "提交时间","selectionInfo": [{"id":"选项ID","title": "选项内容","isSelected": "是否选中","value": * "选项值"}],"type": "问题类型","questionCont": "问题内容"}]}} */ public Map recyclingStatisticalViewMap(Map<String, Object> reqMap) { return postForMap(SystemMessage.getString("messageJsonServer") + "/form/reply/get", reqMap); }
/** * 回收详细数据--获取详细数据--确认发送 * * @param reqMap 必填项{Param: "fileType", "xlsx","messageId", "信息ID","exportCurPage", * "0(默认为0)","sendTo", "发送到的邮箱(多个以","分隔开)"} * {"fileType":"xlsx","params":{"sendTo":"*****@*****.**","exportCurPage":"0","pageInfo":{"curPage":1,"pageLimit":10},"messageId":"55961da1e4b0a3dde009ee04"}} */ public Map recyclingSend(Map<String, Object> reqMap) { return postForMap(SystemMessage.getString("exportJsonServer") + "/reply", reqMap); }
/** * 回收详细数据 * * @param reqMap 必填项{Param: {messageId:"信息ID",taskId:""} * @return {{"returnCode":"","dataCount":"","list": [{"id": "","terminal": "手机号", "name": "姓名", * "submitTime": "提交时间","ip": "提交的IP" }]}} */ public List<?> recyclingStatisticalList(Map<String, Object> reqMap, PageInfo pageInfo) { return postForList( SystemMessage.getString("messageJsonServer") + "/form/reply/summary", reqMap, pageInfo); }
/** * 回收详细数据--查看获取一条记录 * * @param reqMap 必填项{Param: {{id:"回复ID"}} * @return {{"returnCode":"","id": "","terminal": "手机号", "name": "姓名", "submitTime": "提交时间","ip": * "提交的IP" }} */ public Map<?, ?> recyclingStatisticalById(String id) { return postForMap( SystemMessage.getString("messageJsonServer") + "/form/reply/summary/" + id, null); }
/** 删除文本消息 */ public Map deleteMultimedia(String id) { return postForMap(SystemMessage.getString("messageJsonServer") + "/delete/" + id, null, null); }
/** * 信息列表 * * @param reqMap{bizType:业务类型(0:文本;1:图文;2:手机报;3:红包;4:图文) * mediaType:(0:文本;1:html;2:图片;3:语音;4:视频;5:图文) keywords:关键字 } * @return */ public List<?> multimediaList(Map<String, Object> reqMap, PageInfo pageInfo) { return postForList(SystemMessage.getString("messageJsonServer") + "/list", reqMap, pageInfo); }
/** 页面统计初始化 */ public Map reportView(Map<String, Object> reqMap) { return postForMap(SystemMessage.getString("messageJsonServer") + "/statis/chart", reqMap, null); }
/** * 得到一条信息 * * @return */ public Map getMessageById(String id) { return postForMap(SystemMessage.getString("messageJsonServer") + "/get/" + id, null, null); }
/** 页面统计初始化 */ public Map graphicReport(Map<String, Object> reqMap) { return postForMap(SystemMessage.getString("messageJsonServer") + "/statis", reqMap, null); }
/** 停用本文 */ public Map textDisable(String id) { return postForMap(SystemMessage.getString("messageJsonServer") + "/outage/" + id, null, null); }
/** 保存回复 */ public Map replySave(Map<String, Object> reqMap) { return postForMap(SystemMessage.getString("messageJsonServer") + "/reply/add", reqMap, null); }
/** * 回复明细列表 * * @return */ public List<?> replyHistory(Map<String, Object> reqMap, PageInfo pageInfo) { return postForList( SystemMessage.getString("messageJsonServer") + "/replyHistory", reqMap, pageInfo); }
/** * 公众号回复明细列表 * * @return */ public List<?> detailList(Map<String, Object> reqMap, PageInfo pageInfo) { return postForList( SystemMessage.getString("messageJsonServer") + "/statis/detail", reqMap, pageInfo); }
/** * 得到一条图文消息 * * @param messageId * @return */ public List getGraphicMessageById(String messageId) { Map<String, Object> reqMap = new HashMap<String, Object>(); reqMap.put("messageId", messageId); return postForList(SystemMessage.getString("messageJsonServer") + "/getWxTuWenMsgById", reqMap); }
/** * 回复规则明细列表 * * @return */ public List<?> replyMessageList(Map<String, Object> reqMap, PageInfo pageInfo) { return postForList( SystemMessage.getString("cmcJsonServer") + "/reply/listForMessage", reqMap, pageInfo); }
/** 删除留言 */ public Map messageDelete(String id) { return postForMap( SystemMessage.getString("messageJsonServer") + "/reply/delete/" + id, null, null); }
/** * 回收统计--趋势图 * * @param reqMap 必填项{Param: {messageId:"信息ID",startTime:"起始时间",endTime:"截止时间",taskId}} * @return { "returnCode": "", "list": [{"replyCount": "回复次数","mark": "2015-06-01"}] } */ public Map recyclingChart(Map<String, Object> reqMap) { return postForMap(SystemMessage.getString("messageJsonServer") + "/form/reply/chart", reqMap); }