目录
- 1 代码
1 代码
携带cookie, 传参数使用map
代码语言:javascript复制 @ApiOperation(value = "分页 查询任务 list", httpMethod = "POST")
@RequestMapping("/pageList")
@ResponseBody
public Result pageList(@RequestBody XxljobInfoInput xxljobInfoInput) {
Map param = JSON.parseObject(JSON.toJSONString(xxljobInfoInput), Map.class);
String updatepath= addressInfo "/jobinfo/pageList";
HttpResponse execute = HttpUtil.createPost(updatepath).cookie(XxlJobController.Cookieinfo).form(param).execute();
String body = execute.body();
JSONObject jsonObject = JSON.parseObject(body);
return ResultUtil.success(jsonObject);
}