-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from DEPthes/develop
V.2.2.1 Deploy
- Loading branch information
Showing
29 changed files
with
382 additions
and
132 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
22 changes: 22 additions & 0 deletions
22
src/main/java/mvp/deplog/domain/auth/dto/request/LogoutReq.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 mvp.deplog.domain.auth.dto.request; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class LogoutReq { | ||
|
||
@Schema( | ||
type = "string", | ||
example = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJBY2Nlc3NUb2tlbiIsInJvbGUiOiJjdnZ6M0BuYXZlci5jb20iLCJpZCI6ImN2dnozQG5hdmVyLmNvbSIsImV4cCI6MTcyMjE4NTU5OSwiZW1haWwiOiJjdnZ6M0BuYXZlci5jb20ifQ.6b3gEhqolM3PcdeDpaT1ExTuNV0_PSQQhGDFEk1IvDnPePbjtV2ZX3ds48_nWx77ci4nSEbS1XsajcV9yW_vBQ", | ||
description="access token을 출력합니다." | ||
) | ||
private String accessToken; | ||
|
||
@Schema( | ||
type = "string", | ||
example = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJSZWZyZXNoVG9rZW4iLCJleHAiOjE3MjIxODU2MDl9.hQckv2VUkHeKE2GOIe08xUbvKVwPPV6XoKo0xM5ZgppcIrIHeCCXUSOqhgZtsenMyryYNAgxCFeYDLA30-SfgQ", | ||
description="refresh token을 출력합니다." | ||
) | ||
private String refreshToken; | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/mvp/deplog/domain/auth/dto/response/ReissueRes.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,17 @@ | ||
package mvp.deplog.domain.auth.dto.response; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Data | ||
@Builder | ||
public class ReissueRes { | ||
|
||
@Schema( | ||
type = "string", | ||
example = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJBY2Nlc3NUb2tlbiIsInJvbGUiOiJjdnZ6M0BuYXZlci5jb20iLCJpZCI6ImN2dnozQG5hdmVyLmNvbSIsImV4cCI6MTcyMzYyODQ2MiwiZW1haWwiOiJjdnZ6M0BuYXZlci5jb20ifQ.b8_v-GTWTFxQVmhH1jg-JUERpVXGe_tFg4-Tjv6F8DtymMMKgxicCF6dWlsHxJEhyKL3k-Z4qnCeVq_EcH54eg", | ||
description= "새로 발급된 access token을 출력합니다." | ||
) | ||
private String accessToken; | ||
} |
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
12 changes: 12 additions & 0 deletions
12
src/main/java/mvp/deplog/domain/comment/application/CreateCommentService.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,12 @@ | ||
package mvp.deplog.domain.comment.application; | ||
|
||
import mvp.deplog.domain.comment.dto.request.CreateCommentReq; | ||
import mvp.deplog.global.common.Message; | ||
import mvp.deplog.global.common.SuccessResponse; | ||
|
||
public interface CreateCommentService { | ||
|
||
boolean supports(Long parentCommentId); | ||
|
||
SuccessResponse<Message> createComment(CreateCommentReq createCommentReq); | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/mvp/deplog/domain/comment/application/CreateCommentServiceFactory.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,20 @@ | ||
package mvp.deplog.domain.comment.application; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.util.List; | ||
|
||
@RequiredArgsConstructor | ||
@Component | ||
public class CreateCommentServiceFactory { | ||
|
||
private final List<CreateCommentService> createCommentServiceList; | ||
|
||
public CreateCommentService find(Long parentCommentId) { | ||
return createCommentServiceList.stream() | ||
.filter(v -> v.supports(parentCommentId)) | ||
.findFirst() | ||
.orElseThrow(); | ||
} | ||
} |
Oops, something went wrong.