| | |
| | | @GetMapping(value = "/get") |
| | | @Operation(summary = "获得岗位信息") |
| | | @Parameter(name = "id", description = "岗位编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:post:query')") |
| | | public CommonResult<PostRespVO> getPost(@RequestParam("id") Long id) { |
| | | PostDO post = postService.getPost(id); |
| | | return success(BeanUtils.toBean(post, PostRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得岗位分页列表") |
| | | @PreAuthorize("@ss.hasPermission('system:post:query')") |
| | | public CommonResult<PageResult<PostRespVO>> getPostPage(@Validated PostPageReqVO pageReqVO) { |
| | | PageResult<PostDO> pageResult = postService.getPostPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, PostRespVO.class)); |