/** * Paging the job's assignments * @param jobId the job id * @return the job's assignments */ @RequestMapping(value = "/{jobId}/assigns", method = RequestMethod.GET) public JsonResponse listJobAssigns(@PathVariable("jobId") Long jobId){ Response<List<JobAssignDto>> listResp = jobService.listJobAssigns(jobId); if (!listResp.isSuccess()){ return JsonResponse.notOk(messages.get(listResp.getErr())); } return JsonResponse.ok(listResp.getData()); }