| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得字典类型的分页") |
| | | @PreAuthorize("@ss.hasPermission('system:dict:query')") |
| | | public CommonResult<PageResult<DictDataRespVO>> getDictTypePage(@Valid DictDataPageReqVO pageReqVO) { |
| | | PageResult<DictDataDO> pageResult = dictDataService.getDictDataPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, DictDataRespVO.class)); |
| | |
| | | @GetMapping(value = "/get") |
| | | @Operation(summary = "/查询字典数据详细") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:dict:query')") |
| | | public CommonResult<DictDataRespVO> getDictData(@RequestParam("id") Long id) { |
| | | DictDataDO dictData = dictDataService.getDictData(id); |
| | | return success(BeanUtils.toBean(dictData, DictDataRespVO.class)); |