Skip to content

Commit 2de2c91

Browse files
authored
[FEAT] 모임 상세 조회에 profileMessage 필드 추가 및 v2 모임 목록 조회 스웨거 작성
[FEAT] 모임 상세 조회에 profileMessage 필드 추가 및 v2 모임 목록 조회 스웨거 작성
2 parents 6cb620a + 4d8582f commit 2de2c91

File tree

3 files changed

+34
-20
lines changed

3 files changed

+34
-20
lines changed

src/main/java/team/wego/wegobackend/group/application/dto/v1/response/GetGroupResponse.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,16 @@ public static GetGroupResponse of(
5959
public record CreatedByResponse(
6060
Long userId,
6161
String nickName,
62-
String profileImage
62+
String profileImage,
63+
String profileMessage
6364
) {
6465

6566
public static CreatedByResponse from(User host) {
6667
return new CreatedByResponse(
6768
host.getId(),
6869
host.getNickName(),
69-
host.getProfileImage()
70+
host.getProfileImage(),
71+
host.getProfileMessage()
7072
);
7173
}
7274
}

src/main/java/team/wego/wegobackend/group/presentation/v1/GroupController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public ResponseEntity<ApiResponse<GetGroupResponse>> cancelAttendGroup(
7272
}
7373

7474
@GetMapping("/{groupId}")
75-
public ResponseEntity<ApiResponse<GetGroupResponse>> getGroupResponse(
75+
public ResponseEntity<ApiResponse<GetGroupResponse>> getGroup(
7676
@AuthenticationPrincipal CustomUserDetails userDetails,
7777
@PathVariable Long groupId
7878
) {

src/main/java/team/wego/wegobackend/group/presentation/v1/GroupControllerDocs.java

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,24 @@ ResponseEntity<ApiResponse<GetGroupResponse>> cancelAttendGroup(
4949
@Operation(
5050
summary = "모임 상세 조회 API",
5151
description = """
52-
특정 모임의 상세 정보를 조회합니다.
53-
비회원도 조회 가능하며, 로그인한 유저일 경우 참가 여부/호스트 여부 등 추가 정보가 포함될 수 있습니다.
54-
"""
52+
특정 모임의 상세 정보를 조회합니다.
53+
비회원도 조회 가능하며, 로그인한 유저일 경우 참가 여부/호스트 여부 등 추가 정보가 포함될 수 있습니다.
54+
"""
5555
)
56-
ResponseEntity<ApiResponse<GetGroupResponse>> getGroupResponse(
56+
ResponseEntity<ApiResponse<GetGroupResponse>> getGroup(
5757
@AuthenticationPrincipal CustomUserDetails userDetails,
5858
@PathVariable Long groupId
5959
);
6060

6161
@Operation(
6262
summary = "모임 목록 조회 API",
6363
description = """
64-
모임 리스트를 조회합니다.
65-
검색 키워드와 커서 기반 페이징을 지원합니다.
66-
- keyword: 모임 제목/내용 검색에 사용되는 선택값
67-
- cursor: 마지막으로 조회한 모임 ID(커서 기반 페이징)
68-
- size: 한 번에 조회할 모임 개수
69-
"""
64+
모임 리스트를 조회합니다.
65+
검색 키워드와 커서 기반 페이징을 지원합니다.
66+
- keyword: 모임 제목/내용 검색에 사용되는 선택값
67+
- cursor: 마지막으로 조회한 모임 ID(커서 기반 페이징)
68+
- size: 한 번에 조회할 모임 개수
69+
"""
7070
)
7171
ResponseEntity<ApiResponse<GetGroupListResponse>> getGroupList(
7272
@RequestParam(required = false) String keyword,
@@ -93,16 +93,28 @@ ResponseEntity<ApiResponse<Void>> deleteGroup(
9393
@PathVariable Long groupId
9494
);
9595

96+
97+
@Operation(
98+
summary = "모임 이미지 단 건 삭제 API",
99+
description = "기존에 생성된 모임 이미지 단 건을 삭제합니다. 모임 호스트만 삭제 가능합니다."
100+
)
101+
ResponseEntity<Void> deleteOne(
102+
@AuthenticationPrincipal CustomUserDetails userDetails,
103+
@PathVariable Long groupId,
104+
@RequestParam(value = "url") String url
105+
);
106+
107+
96108
@Operation(
97109
summary = "내 모임 목록 조회 API",
98110
description = """
99-
로그인한 유저 기준으로 나와 관련된 모임 목록을 조회합니다.
100-
type 값에 따라 조회 대상이 달라질 수 있습니다.
101-
예시)
102-
- current: 현재 참가 중인 모임
103-
- host: 내가 호스트인 모임
104-
- past: 종료된 모임
105-
"""
111+
로그인한 유저 기준으로 나와 관련된 모임 목록을 조회합니다.
112+
type 값에 따라 조회 대상이 달라질 수 있습니다.
113+
예시)
114+
- current: 현재 참가 중인 모임
115+
- host: 내가 호스트인 모임
116+
- past: 종료된 모임
117+
"""
106118
)
107119
ResponseEntity<ApiResponse<GetGroupListResponse>> getMyGroups(
108120
@AuthenticationPrincipal CustomUserDetails userDetails,

0 commit comments

Comments
 (0)