mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
feat(系统管理-插件管理): 插件更新api
This commit is contained in:
parent
87ca265f9b
commit
82570f2772
@ -49,4 +49,14 @@ public class SysPluginController {
|
||||
return pluginService.uninstall(pluginId);
|
||||
}
|
||||
|
||||
@ApiOperation("更新插件")
|
||||
@PostMapping("/update/id")
|
||||
@RequiresPermissions("plugin:upload")
|
||||
public Map<String, Object> update(@PathVariable("id") Long id, @RequestParam("file") MultipartFile file) throws Exception{
|
||||
if (pluginService.uninstall(id)) {
|
||||
return pluginService.localInstall(file);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user