| | |
| | | @GetMapping(value = "/get") |
| | | @Operation(summary = "获得参数配置") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:config:query')") |
| | | public CommonResult<ConfigRespVO> getConfig(@RequestParam("id") Long id) { |
| | | return success(ConfigConvert.INSTANCE.convert(configService.getConfig(id))); |
| | | } |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获取参数配置分页") |
| | | @PreAuthorize("@ss.hasPermission('infra:config:query')") |
| | | public CommonResult<PageResult<ConfigRespVO>> getConfigPage(@Valid ConfigPageReqVO pageReqVO) { |
| | | PageResult<ConfigDO> page = configService.getConfigPage(pageReqVO); |
| | | return success(ConfigConvert.INSTANCE.convertPage(page)); |