| | |
| | | } |
| | | |
| | | /** |
| | | * 根据参数键名修改参数配置 |
| | | */ |
| | | @ApiOperation("根据参数键名修改参数配置") |
| | | @SaCheckPermission("system:config:edit") |
| | | @Log(title = "参数管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/updateByKey") |
| | | public R<Void> updateByKey(@RequestBody SysConfig config) { |
| | | return toAjax(configService.updateConfig(config)); |
| | | } |
| | | |
| | | /** |
| | | * 删除参数配置 |
| | | */ |
| | | @ApiOperation("删除参数配置") |
| | |
| | | @DeleteMapping("/{configIds}") |
| | | public R<Void> remove(@ApiParam("参数ID串") @PathVariable Long[] configIds) { |
| | | configService.deleteConfigByIds(configIds); |
| | | return success(); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |