|
|
|
@ -26,15 +26,12 @@ public class RasaFileController {
|
|
|
|
|
|
|
|
|
|
@ApiOperation("接受并保存rasa文件")
|
|
|
|
|
@PostMapping("/saveRasaFile")
|
|
|
|
|
public String saveRasaFile(@RequestParam("file") MultipartFile file, @RequestParam("modelId") String modelId) throws IOException {
|
|
|
|
|
public String saveRasaFile(@RequestParam("file") MultipartFile file) throws IOException {
|
|
|
|
|
|
|
|
|
|
if (file == null || file.isEmpty()) {
|
|
|
|
|
throw new BusinessException("file is empty");
|
|
|
|
|
}
|
|
|
|
|
if (StrUtil.isEmpty(modelId)){
|
|
|
|
|
throw new BusinessException("modelId is empty");
|
|
|
|
|
}
|
|
|
|
|
rasaFileService.saveRasaFile(file,modelId);
|
|
|
|
|
rasaFileService.saveRasaFile(file,"1");
|
|
|
|
|
return "success";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|