| | |
| | | |
| | | @PostMapping("/upload") |
| | | @Operation(summary = "python文件上传") |
| | | public CommonResult<Map<String,String>> importExcel(@RequestParam("file") MultipartFile file) throws Exception { |
| | | public CommonResult<Map<String,String>> upload(@RequestParam("file") MultipartFile file) throws Exception { |
| | | Map<String,String> result = mpkFileService.savePyFile(file); |
| | | return success(result); |
| | | } |
| | | |
| | | @PostMapping("/publish") |
| | | public CommonResult<String> publish(@RequestBody Map<String, Object> params) { |
| | | return mpkFileService.publish(params); |
| | | } |
| | | } |