-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: 컨벤션 수정 * docs: 머지 전략 리드미 수정 * chore: 사용하지 않는 어노테이션 삭제 * docs: add 컨벤션 추가 * add: 예외 클래스 및 예외 타입 추가 * feat: 회고 응답 관련 로직을 위해 일급컬렉션 구현 * del: 사용하지 않는 코드 삭제 * docs: del 관련 컨벤션 추가 * chore: Space 연관관계 추가 * feat: 1. 팀 관련 로직을 위한 일급컬렉션 생성 2. 스페이스 내 회원인지 검증 로직 추가 3. 팀 멤버 수 계산 로직 추가 * feat: 회고 목록 조회 컨트롤러 구현 및 스웨거 문서화 * add: 회고 목록 조회를 위한 Dto 추가 * style: dto 위치 변경 * chore: 연관 관계 수정으로 인한 코드 변경 * feat: 회고 목록 조회 서비스 로직 구현 * docs: 협업관련 컨벤션 추가 * docs: 쿼리 관련 컨벤션 추가 * del: 팀원 수 데이터 삭제 * chore: 검증 로직 변경
- Loading branch information
Showing
27 changed files
with
322 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
layer-api/src/main/java/org/layer/domain/auth/controller/dto/SignInRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
package org.layer.domain.auth.controller.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import org.layer.domain.member.entity.SocialType; | ||
|
||
public record SignInRequest(@JsonProperty("social_type") SocialType socialType) { | ||
public record SignInRequest(SocialType socialType) { | ||
} |
3 changes: 0 additions & 3 deletions
3
layer-api/src/main/java/org/layer/domain/auth/controller/dto/SignUpRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
package org.layer.domain.auth.controller.dto; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import org.layer.domain.member.entity.SocialType; | ||
|
||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public record SignUpRequest(SocialType socialType, String name) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
.../main/java/org/layer/domain/retrospect/controller/dto/response/RetrospectGetResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.layer.domain.retrospect.controller.dto.response; | ||
|
||
import org.layer.domain.retrospect.entity.RetrospectStatus; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(name = "RetrospectGetResponse", description = "특정 회고 조회 Dto") | ||
public record RetrospectGetResponse( | ||
@Schema(description = "회고 이름", example = "중간 발표 이후") | ||
String title, | ||
@Schema(description = "회고 설명", example = "중간 발표 관련해서 KPT 회고를 해봅시다.") | ||
String introduction, | ||
@Schema(description = "회고 작성 여부", example = "false") | ||
boolean isWrite, | ||
@Schema(description = "회고 상태 : PROCEEDING 나 DONE 중에 하나입니다.", example = "PROCEEDING") | ||
RetrospectStatus retrospectStatus, | ||
@Schema(description = "해당 회고 응답 수", example = "4") | ||
int writeCount | ||
) { | ||
public static RetrospectGetResponse of(String title, String introduction, boolean isWrite, RetrospectStatus retrospectStatus, | ||
int writeCount){ | ||
|
||
return new RetrospectGetResponse(title, introduction, isWrite, retrospectStatus, writeCount); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...n/java/org/layer/domain/retrospect/controller/dto/response/RetrospectListGetResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.layer.domain.retrospect.controller.dto.response; | ||
|
||
import java.util.List; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
@Schema(name = "RetrospectListGetResponse", description = "회고 목록 조회 Dto") | ||
public record RetrospectListGetResponse( | ||
@Schema(description = "쌓인 레이어 수", example = "3") | ||
int layerCount, | ||
@Schema(description = "회고 객체 목록", example = "") | ||
List<RetrospectGetResponse> retrospects | ||
|
||
) { | ||
public static RetrospectListGetResponse of(int layerCount, List<RetrospectGetResponse> retrospects){ | ||
return new RetrospectListGetResponse(layerCount, retrospects); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e/dto/RetrospectCreateServiceRequest.java → ...quest/RetrospectCreateServiceRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...n/java/org/layer/domain/retrospect/service/dto/response/RetrospectGetServiceResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.layer.domain.retrospect.service.dto.response; | ||
|
||
import org.layer.domain.retrospect.entity.RetrospectStatus; | ||
|
||
public record RetrospectGetServiceResponse( | ||
String title, | ||
String introduction, | ||
boolean isWrite, | ||
RetrospectStatus retrospectStatus, | ||
int writeCount | ||
) { | ||
public static RetrospectGetServiceResponse of(String title, String introduction, boolean isWrite, | ||
RetrospectStatus retrospectStatus, int writeCount){ | ||
return new RetrospectGetServiceResponse(title, introduction, isWrite, retrospectStatus, writeCount); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...va/org/layer/domain/retrospect/service/dto/response/RetrospectListGetServiceResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.layer.domain.retrospect.service.dto.response; | ||
|
||
import java.util.List; | ||
|
||
|
||
public record RetrospectListGetServiceResponse( | ||
int layerCount, | ||
List<RetrospectGetServiceResponse> retrospects | ||
) { | ||
public static RetrospectListGetServiceResponse of(int layerCount, List<RetrospectGetServiceResponse> retrospects){ | ||
return new RetrospectListGetServiceResponse(layerCount, retrospects); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
layer-common/src/main/java/org/layer/common/exception/MemberSpaceRelationExceptionType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.layer.common.exception; | ||
|
||
import org.springframework.http.HttpStatus; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
|
||
@RequiredArgsConstructor | ||
public enum MemberSpaceRelationExceptionType implements ExceptionType { | ||
/** | ||
* 400 | ||
*/ | ||
|
||
NOT_FOUND_MEMBER_SPACE_RELATION(HttpStatus.NOT_FOUND, "해당 스페이스에 소속되지 않은 멤버입니다."); | ||
|
||
private final HttpStatus status; | ||
private final String message; | ||
|
||
@Override | ||
public HttpStatus httpStatus() { | ||
return status; | ||
} | ||
|
||
@Override | ||
public String message() { | ||
return message; | ||
} | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
layer-common/src/main/java/org/layer/common/exception/SpaceExceptionType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.layer.common.exception; | ||
|
||
import org.springframework.http.HttpStatus; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
|
||
@RequiredArgsConstructor | ||
public enum SpaceExceptionType implements ExceptionType{ | ||
NOT_FOUND_SPACE(HttpStatus.NOT_FOUND, "유효하지 않은 스페이스 id 입니다."); | ||
|
||
private final HttpStatus status; | ||
private final String message; | ||
@Override | ||
public HttpStatus httpStatus() { | ||
return status; | ||
} | ||
|
||
@Override | ||
public String message() { | ||
return message; | ||
} | ||
} |
Oops, something went wrong.