Class FriendController

java.lang.Object
io.github.seenings.info.controller.FriendController

@RestController @RequestMapping("/seen/rest-v1/user/friend") public class FriendController extends Object
FriendController
Since:
2023-01-01
Author:
chixuehui
  • Constructor Details

    • FriendController

      public FriendController()
  • Method Details

    • applyFriend

      @PostMapping("apply-friend") public R<Boolean> applyFriend(@SessionAttribute Long userId, @RequestParam("appliedUserId") Long appliedUserId)
    • reApply

      @PostMapping("re-apply") public R<Boolean> reApply(@SessionAttribute Long userId, @RequestParam("pageUserId") Long pageUserId)
    • look

      @PostMapping("look") public R<Integer> look(@RequestParam("applyId") Integer applyId)
    • agree

      @PostMapping("agree") public R<Long> agree(@SessionAttribute Long userId, @RequestParam("applyId") Integer applyId, @RequestParam("pageUserId") Long pageUserId)
    • refuse

      @PostMapping("refuse") public R<Long> refuse(@RequestParam("applyId") Integer applyId, @RequestParam Long pageUserId, @SessionAttribute Long userId)
    • applyIdToSendApplyContent

      @PostMapping("apply-id-to-send-apply-content") public R<Map<Integer, SendApplyContent>> applyIdToSendApplyContent(@RequestBody Set<Integer> applyIds)
    • applyIdToRecApplyContent

      @PostMapping("apply-id-to-rec-apply-content") public R<Map<Integer, RecApplyContent>> applyIdToRecApplyContent(@RequestBody Set<Integer> applyIds)