| | |
| | | return R.data(UserWrapper.build().entityVO(detail)); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询单条 |
| | | */ |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "查看详情", notes = "传入id") |
| | | @GetMapping("/customizeGetDetail") |
| | | public R<User> customizeGetDetail(User user) { |
| | | User detail = userService.getOne(Condition.getQueryWrapper(user)); |
| | | return R.data(UserWrapper.build().entityVO(detail)); |
| | | } |
| | | |
| | | /** |
| | | * 自定义查询用户列表 |
| | | * @param user |
| | | * @return |
| | | */ |
| | | @GetMapping("/customizeGetList") |
| | | public R<List<User>> customizeGetList(UserVO user){ |
| | | List<User> userList = userService.customizeGetList(user); |
| | | return R.data(userList); |
| | | } |
| | | |
| | | /** |
| | | * 用户列表 |
| | | */ |