| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/dispatch_handle") |
| | | @Api(tags = "调度处理") |
| | | @Api(tags = "调度") |
| | | public class DispatchHandleController { |
| | | |
| | | |
| | |
| | | @RequestMapping(value = "/dispatch", method = RequestMethod.POST) |
| | | @ResponseBody |
| | | public CommonResult<DispatchInfo> dispatch(@Validated @RequestBody DispatchInfoParam dispatchInfoParam) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | dispatchInfoParam.setCreateUser(user.getUserId()); |
| | | return CommonResult.success(iDispatchHandleService.dispatch(dispatchInfoParam)); |
| | | } |
| | | |