Skip to content

Commit

Permalink
✨ Feat: 친구 목록 조회 API 스펙 명세
Browse files Browse the repository at this point in the history
<body>
내 친구 목록 리스트 조회를 위한 API 정의

- 관련 : #382
  • Loading branch information
hosung-222 committed Oct 23, 2024
1 parent 951c8ba commit 8b095fb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,12 @@ public ResponseDto<String> rejectFriendRequest(
return ResponseDto.onSuccess("친구 요청을 거절했습니다.");
}

@Operation(summary = "내 친구 목록을 조회합니다.", description = "내 친구 리스트를 보는 API 입니다.")
@GetMapping("")
public ResponseDto<List<FriendshipResponse.FriendInfoDto>> getFriendList(
@AuthenticationPrincipal SecurityUserDetails member
){
return ResponseDto.onSuccess(null);
}

}
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package com.namo.spring.application.external.api.user.dto;

import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Builder;
Expand All @@ -20,7 +16,7 @@ public static class FriendRequestDto{
private Long friendRequestId;
@Schema(description = "친구 요청 유저 프로필 이미지", example = "https://static.namong.shop/resized/origin/member/image.png")
private String profileImage;
@Schema(description = "친구 요청 유저 닉네임 ID", example = "2")
@Schema(description = "친구 요청 유저 닉네임", example = "캐슬")
private String nickname;
@Schema(description = "친구 요청 유저 태그", example = "1234")
private String tag;
Expand All @@ -31,4 +27,21 @@ public static class FriendRequestDto{
@Schema(description = "친구 요청 유저 선호 색", example = "2")
private Long favoriteColorId;
}

@Getter
@Builder
public static class FriendInfoDto{
@Schema(description = "친구 memberID", example = "1")
private Long memberId;
@Schema(description = "친구 닉네임", example = "캐슬")
private String nickname;
@Schema(description = "친구 태그", example = "1234")
private String tag;
@Schema(description = "친구 한줄 소개", example = "3")
private String bio;
@Schema(description = "친구 생일 (비공개 존재)", example = "02-22")
private String birthday;
@Schema(description = "친구 선호 색", example = "2")
private Long favoriteColorId;
}
}

0 comments on commit 8b095fb

Please sign in to comment.