|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 获取参数配置列表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @RequiresPermissions("system:config:list") | 
|---|
|  |  |  | @GetMapping("/list") | 
|---|
|  |  |  | public TableDataInfo list(SysConfig config) { | 
|---|
|  |  |  | startPage(); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Log(title = "参数管理", businessType = BusinessType.EXPORT) | 
|---|
|  |  |  | @RequiresPermissions("system:config:export") | 
|---|
|  |  |  | @PostMapping("/export") | 
|---|
|  |  |  | public void export(HttpServletResponse response, SysConfig config) { | 
|---|
|  |  |  | List<SysConfig> list = configService.selectConfigList(config); | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 新增参数配置 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @RequiresPermissions("system:config:add") | 
|---|
|  |  |  | @Log(title = "参数管理", businessType = BusinessType.INSERT) | 
|---|
|  |  |  | @PostMapping | 
|---|
|  |  |  | public AjaxResult add(@Validated @RequestBody SysConfig config) { | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 修改参数配置 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @RequiresPermissions("system:config:edit") | 
|---|
|  |  |  | @Log(title = "参数管理", businessType = BusinessType.UPDATE) | 
|---|
|  |  |  | @PutMapping | 
|---|
|  |  |  | public AjaxResult edit(@Validated @RequestBody SysConfig config) { | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 删除参数配置 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @RequiresPermissions("system:config:remove") | 
|---|
|  |  |  | @Log(title = "参数管理", businessType = BusinessType.DELETE) | 
|---|
|  |  |  | @DeleteMapping("/{configIds}") | 
|---|
|  |  |  | public AjaxResult remove(@PathVariable Long[] configIds) { | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 刷新参数缓存 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @RequiresPermissions("system:config:remove") | 
|---|
|  |  |  | @Log(title = "参数管理", businessType = BusinessType.CLEAN) | 
|---|
|  |  |  | @DeleteMapping("/refreshCache") | 
|---|
|  |  |  | public AjaxResult refreshCache() { | 
|---|