kongzy
2024-09-14 f0f00e9ba8a755e4317e029d73b69a92ad9f9df1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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();
//    }
//
//}