fix: 修复重试场景接口数据导入接口
This commit is contained in:
parent
d72455fb1a
commit
295ea28703
@ -80,9 +80,9 @@ public class SceneConfigController {
|
|||||||
return sceneConfigService.updateSceneConfig(requestVO);
|
return sceneConfigService.updateSceneConfig(requestVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/import")
|
|
||||||
@LoginRequired
|
@LoginRequired
|
||||||
public void importScene(final MultipartFile file) throws IOException {
|
@PostMapping(value = "/import", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
||||||
|
public void importScene(@RequestPart("file") MultipartFile file) throws IOException {
|
||||||
if (file.isEmpty()) {
|
if (file.isEmpty()) {
|
||||||
throw new SnailJobCommonException("Please select a file to upload");
|
throw new SnailJobCommonException("Please select a file to upload");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user