package com.gkhy.exam.admin.controller.system; //@Api(tags = "系统配置前端控制器") //@RestController //@RequestMapping("/system/config") //public class SysConfigController { // @Autowired // private SysConfigService configService; // // @ApiOperation(value = "参数配置列表") // @GetMapping("/list") // public CommonResult list(SysConfig config){ // return CommonResult.success(configService.selectConfigList(config)); // } // // @ApiOperation(value = "根据id获取详情信息") // @GetMapping("/{configId}") // public CommonResult getInfo(@PathVariable Long configId){ // return CommonResult.success(configService.selectConfigById(configId)); // } // // @ApiOperation(value = "根据key获取详情信息") // @GetMapping("/configKey/{configKey}") // public CommonResult getInfo(@PathVariable String configKey){ // return CommonResult.success(configService.selectConfigByKey(configKey)); // } // // @Log(title = "参数管理", businessType = BusinessType.INSERT) // @ApiOperation(value = "新增参数配置") // @PostMapping // public CommonResult add(@Validated @RequestBody SysConfig config){ // return CommonResult.success(configService.insertConfig(config)); // } // // @Log(title = "参数管理", businessType = BusinessType.UPDATE) // @ApiOperation(value = "更新参数配置") // @PutMapping // public CommonResult edit(@Validated @RequestBody SysConfig config){ // return CommonResult.success(configService.updateConfig(config)); // } // // @Log(title = "参数管理", businessType = BusinessType.DELETE) // @ApiOperation(value = "删除参数配置") // @DeleteMapping(value = "/{configIds}") // public CommonResult remove(@PathVariable Long[] configIds){ // configService.deleteConfigByIds(configIds); // return CommonResult.success(); // } // // @Log(title = "参数管理", businessType = BusinessType.CLEAN) // @ApiOperation(value = "刷新缓存") // @DeleteMapping(value = "/refreshCache") // public CommonResult refreshCache(){ // configService.resetConfigCache(); // return CommonResult.success(); // } // //}