| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得示例分类") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo02-category:query')") |
| | | public CommonResult<Demo02CategoryRespVO> getDemo02Category(@RequestParam("id") Long id) { |
| | | Demo02CategoryDO demo02Category = demo02CategoryService.getDemo02Category(id); |
| | | return success(BeanUtils.toBean(demo02Category, Demo02CategoryRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获得示例分类列表") |
| | | @PreAuthorize("@ss.hasPermission('infra:demo02-category:query')") |
| | | public CommonResult<List<Demo02CategoryRespVO>> getDemo02CategoryList(@Valid Demo02CategoryListReqVO listReqVO) { |
| | | List<Demo02CategoryDO> list = demo02CategoryService.getDemo02CategoryList(listReqVO); |
| | | return success(BeanUtils.toBean(list, Demo02CategoryRespVO.class)); |