| | |
| | | } |
| | | |
| | | /** |
| | | * 多表联合查询自定义分页 |
| | | * 多表联合查询自定义分页(查看好友列表) |
| | | */ |
| | | @GetMapping("/page") |
| | | @ApiImplicitParams({ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查看好友申请 |
| | | */ |
| | | @GetMapping("/friendApplication") |
| | | public R<IPage<FriendVO>> friendApplication(@ApiIgnore FriendVO friend, Query query) { |
| | | IPage<FriendVO> pages = friendService.friendApplication(Condition.getPage(query), friend); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | /** |
| | | * 搜索好友 |
| | | */ |
| | | @GetMapping("/addFriend") |
| | | public R<IPage<FriendVO>> addFriend(@ApiIgnore FriendVO friend, Query query) { |
| | | IPage<FriendVO> pages = friendService.addFriend(Condition.getPage(query), friend); |
| | | return R.data(pages); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 新增 |
| | | */ |
| | | @PostMapping("/save") |