Skip to content

Commit

Permalink
피드백 최종 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0723 committed Nov 13, 2024
1 parent 66bec80 commit 50eb5a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ public ResponseEntity<Void> editStudyGroupVisibility(@AuthedUser User user,
return ResponseEntity.ok().build();
}

@GetMapping(value = "/{targetUserId}/list")
@GetMapping(value = "/{userId}/list")
@Operation(summary = "타 유저 그룹 목록 조회 API", description = "유저가 보이도록 설정해놓은 유저가 참여하고 있는 그룹 모두 조회")
public ResponseEntity<GetStudyGroupListsResponse> getOtherUserStudyGroupList(@AuthedUser User user,
@RequestParam @PathVariable Long targetUserId) {
GetStudyGroupListsResponse response = studyGroupService.getOtherStudyGroupList(targetUserId);
@RequestParam @PathVariable Long userId) {
GetStudyGroupListsResponse response = studyGroupService.getOtherStudyGroupList(userId);
return ResponseEntity.ok().body(response);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
Expand Down Expand Up @@ -128,10 +129,11 @@ public ResponseEntity<Void> checkNickname(@RequestParam String nickname) {
return ResponseEntity.ok().build();
}

@GetMapping(value = "otheruser-info")
@GetMapping(value = "/{userId}/info")
@Operation(summary = "타회원정보조회 API")
public ResponseEntity<UserInfoResponse> getOtherUserInfo(@AuthedUser User user, @RequestParam Long targetUserId) {
UserInfoResponse userInfo = userService.otherUserInfo(user, targetUserId);
public ResponseEntity<UserInfoResponse> getOtherUserInfo(@AuthedUser User user,
@RequestParam @PathVariable Long userId) {
UserInfoResponse userInfo = userService.otherUserInfo(user, userId);
return ResponseEntity.ok().body(userInfo);
}
}

0 comments on commit 50eb5a7

Please sign in to comment.