forked from github/dataease
Merge pull request #2927 from dataease/pr@dev@feat_plugin_update_api
feat(系统管理-插件管理): 插件更新api
This commit is contained in:
commit
c8fd46041c
@ -49,4 +49,14 @@ public class SysPluginController {
|
|||||||
return pluginService.uninstall(pluginId);
|
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