| | |
| | | |
| | | private final NcProgramService ncProgramService; |
| | | |
| | | @PostMapping("/export-dnc") |
| | | @Operation(summary = "数控程序导出dnc", description = "数控程序导出到工控网") |
| | | public void exportDnc(Long nodeId, HttpServletResponse response) { |
| | | |
| | | //return R.<Boolean>status(true); |
| | | } |
| | | |
| | | @PostMapping("/import-dnc-file") |
| | | @Operation(summary = "上传工控网回传文件", description = "上传程序/附件文件") |
| | | public R<Boolean> importDncFile(@RequestParam MultipartFile file,Long nodeId, |
| | | @RequestParam String category) { |
| | | ncProgramService.uploadNcFile(file,nodeId,category); |
| | | return R.<Boolean>status(true); |
| | | |
| | | } |
| | | } |