|
@@ -148,12 +148,19 @@ public class AmFriendsController extends BaseController {
|
|
|
return toAjax(amFriendsService.deleteWithValidByIds(Arrays.asList(amIds), true));
|
|
return toAjax(amFriendsService.deleteWithValidByIds(Arrays.asList(amIds), true));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @SaCheckPermission(PermissionName.AmFriendFriends)
|
|
|
|
|
+ @GetMapping("/applyCount")
|
|
|
|
|
+ public R<Long> getApplyCount() {
|
|
|
|
|
+ return R.ok(amFriendsApplyService.queryApplyCount(getAmId()));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@SaCheckPermission(PermissionName.AmFriendFriends)
|
|
@SaCheckPermission(PermissionName.AmFriendFriends)
|
|
|
@GetMapping("/applyList")
|
|
@GetMapping("/applyList")
|
|
|
public TableDataInfo<AmFriendsApplyVo> getApplyList(AmFriendsApplyBo bo, PageQuery pageQuery) {
|
|
public TableDataInfo<AmFriendsApplyVo> getApplyList(AmFriendsApplyBo bo, PageQuery pageQuery) {
|
|
|
return amFriendsApplyService.queryApplyList(bo, pageQuery);
|
|
return amFriendsApplyService.queryApplyList(bo, pageQuery);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
@SaCheckPermission(PermissionName.AmFriendFriends)
|
|
@SaCheckPermission(PermissionName.AmFriendFriends)
|
|
|
@Log(title = "好友申请", businessType = BusinessType.INSERT)
|
|
@Log(title = "好友申请", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/apply/{amId}")
|
|
@PostMapping("/apply/{amId}")
|