@Test public void testUpdate() throws Exception { wxCpService.getTaskCardService().update(Arrays.asList("jeff", "mr.t"), "task_1", "key1"); }
@Override public void update(List<String> userIds, String taskId, String clickedKey) throws WxErrorException { Integer agentId = this.mainService.getWxCpConfigStorage().getAgentId(); Map<String, Object> data = new HashMap<>(4); data.put("userids", userIds); data.put("agentid", agentId); data.put("task_id", taskId); data.put("clicked_key", clickedKey); String url = "https: this.mainService.post(url, WxGsonBuilder.create().toJson(data)); }
WxCpTaskCardServiceImpl implements WxCpTaskCardService { @Override public void update(List<String> userIds, String taskId, String clickedKey) throws WxErrorException { Integer agentId = this.mainService.getWxCpConfigStorage().getAgentId(); Map<String, Object> data = new HashMap<>(4); data.put("userids", userIds); data.put("agentid", agentId); data.put("task_id", taskId); data.put("clicked_key", clickedKey); String url = "https: this.mainService.post(url, WxGsonBuilder.create().toJson(data)); } }
WxCpTaskCardServiceImpl implements WxCpTaskCardService { @Override public void update(List<String> userIds, String taskId, String clickedKey) throws WxErrorException { Integer agentId = this.mainService.getWxCpConfigStorage().getAgentId(); Map<String, Object> data = new HashMap<>(4); data.put("userids", userIds); data.put("agentid", agentId); data.put("task_id", taskId); data.put("clicked_key", clickedKey); String url = "https: this.mainService.post(url, WxGsonBuilder.create().toJson(data)); }  }
WxCpTaskCardServiceImpl implements WxCpTaskCardService { @Override public void update(List<String> userIds, String taskId, String clickedKey) throws WxErrorException { Integer agentId = this.mainService.getWxCpConfigStorage().getAgentId(); Map<String, Object> data = new HashMap<>(4); data.put("userids", userIds); data.put("agentid", agentId); data.put("task_id", taskId); data.put("clicked_key", clickedKey); String url = "https: this.mainService.post(url, WxGsonBuilder.create().toJson(data)); }  @Override void update(List<String> userIds, String taskId, String clickedKey); }
WxCpTaskCardServiceImpl implements WxCpTaskCardService { @Override public void update(List<String> userIds, String taskId, String clickedKey) throws WxErrorException { Integer agentId = this.mainService.getWxCpConfigStorage().getAgentId(); Map<String, Object> data = new HashMap<>(4); data.put("userids", userIds); data.put("agentid", agentId); data.put("task_id", taskId); data.put("clicked_key", clickedKey); String url = "https: this.mainService.post(url, WxGsonBuilder.create().toJson(data)); }  @Override void update(List<String> userIds, String taskId, String clickedKey);  }