| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得流程分类") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('bpm:category:query')") |
| | | public CommonResult<BpmCategoryRespVO> getCategory(@RequestParam("id") Long id) { |
| | | BpmCategoryDO category = categoryService.getCategory(id); |
| | | return success(BeanUtils.toBean(category, BpmCategoryRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得流程分类分页") |
| | | @PreAuthorize("@ss.hasPermission('bpm:category:query')") |
| | | public CommonResult<PageResult<BpmCategoryRespVO>> getCategoryPage(@Valid BpmCategoryPageReqVO pageReqVO) { |
| | | PageResult<BpmCategoryDO> pageResult = categoryService.getCategoryPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, BpmCategoryRespVO.class)); |