| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得字典类型的分页列表") |
| | | @PreAuthorize("@ss.hasPermission('system:dict:query')") |
| | | public CommonResult<PageResult<DictTypeRespVO>> pageDictTypes(@Valid DictTypePageReqVO pageReqVO) { |
| | | PageResult<DictTypeDO> pageResult = dictTypeService.getDictTypePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, DictTypeRespVO.class)); |
| | |
| | | @Operation(summary = "/查询字典类型详细") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @GetMapping(value = "/get") |
| | | @PreAuthorize("@ss.hasPermission('system:dict:query')") |
| | | public CommonResult<DictTypeRespVO> getDictType(@RequestParam("id") Long id) { |
| | | DictTypeDO dictType = dictTypeService.getDictType(id); |
| | | return success(BeanUtils.toBean(dictType, DictTypeRespVO.class)); |
| | |
| | | |
| | | @Operation(summary = "导出数据类型") |
| | | @GetMapping("/export-excel") |
| | | @PreAuthorize("@ss.hasPermission('system:dict:query')") |
| | | @ApiAccessLog(operateType = EXPORT) |
| | | public void export(HttpServletResponse response, @Valid DictTypePageReqVO exportReqVO) throws IOException { |
| | | exportReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); |