-
Notifications
You must be signed in to change notification settings - Fork 1
[FEAT] 파일 추가하기 #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[FEAT] 파일 추가하기 #157
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
573c6c8
[FEAT] 파일 생성 Request
Chan531 7f39e78
[FEAT] 파일 생성 Response
Chan531 61ec22a
[FEAT] 팀 소속 멤버 여부 체크
Chan531 b8713ff
[CHORE] 클래스 멤버 순서 변경
Chan531 86264da
[FEAT] 파일 생성자 추가
Chan531 8b2b306
[FEAT] DocumentSaver 의존성 주입 추가
Chan531 71f7474
[FEAT] Document 생성
Chan531 d17977d
[REFACTOR] DocumentSaver 수정
Chan531 8dd00df
[FEAT] Document 저장
Chan531 db4fb38
[REFACTOR] Document에 teamId 추가
Chan531 b949b3b
[REFACTOR] Document 생성자 수정
Chan531 96ca9fa
[FEAT] 기존 api 에러 대응
Chan531 e4771d3
[REFACTOR] Document 생성 시, teamId 추가로 전달
Chan531 333dc2c
[FEAT] DocumentCreateResponse 생성 후 반환
Chan531 06dae1a
[REFACTOR] Document 생성 및 저장 로직 메소드 분리
Chan531 19af5b0
[FEAT] Document 생성 api 파라미터 설정
Chan531 25e09e3
[FEAT] memberId 추출
Chan531 1c74d3d
[FEAT] Document 생성 로직 호출
Chan531 bb17105
[FEAT] 파일 생성 성공 메세지 추가
Chan531 c4a0777
[FEAT] 파일 생성 api 응답 반환
Chan531 1a91f6d
[FEAT] FolderFinder 의존성 주입 추가
Chan531 3ee4dda
[FEAT] 폴더 유효성 검증
Chan531 03dc712
[FIX] 최상단에 파일 추가 안되는 버그 수정
Chan531 dd3f58e
[REFACTOR] RequestBody 누락 추가
Chan531 1e9f2de
[CHORE] 파일 생성 메세지 수정
Chan531 0cb20e4
[REFACTOR] 파일 생성 Request folderId 삭제
Chan531 6dabca8
[FEAT] 복수 파일 생성 Request
Chan531 7a826c9
[REFACTOR] 파일 생성 api 수정
Chan531 0ccc8a2
[REFACTOR] 메소드명 수정
Chan531 3885da3
[REFACTOR] Document 생성 Response 수정
Chan531 17fa27d
[REFACTOR] Document 생성 로직 수정
Chan531 677db76
[REFACTOR] Document 생성 api Response 수정 내용 반영
Chan531 fb9b425
[REFACTOR] Request 변수명 수정
Chan531 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
10 changes: 10 additions & 0 deletions
10
src/main/java/com/tiki/server/document/dto/request/DocumentCreateRequest.java
This file contains hidden or 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,10 @@ | ||
| package com.tiki.server.document.dto.request; | ||
|
|
||
| import lombok.NonNull; | ||
|
|
||
| public record DocumentCreateRequest( | ||
| @NonNull String fileName, | ||
| @NonNull String fileUrl, | ||
| double capacity | ||
| ) { | ||
| } | ||
9 changes: 9 additions & 0 deletions
9
src/main/java/com/tiki/server/document/dto/request/DocumentsCreateRequest.java
This file contains hidden or 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,9 @@ | ||
| package com.tiki.server.document.dto.request; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| public record DocumentsCreateRequest( | ||
| List<DocumentCreateRequest> documents, | ||
| Long folderId | ||
| ) { | ||
| } |
31 changes: 31 additions & 0 deletions
31
src/main/java/com/tiki/server/document/dto/response/DocumentsCreateResponse.java
This file contains hidden or 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,31 @@ | ||
| package com.tiki.server.document.dto.response; | ||
|
|
||
| import static lombok.AccessLevel.PRIVATE; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| import lombok.Builder; | ||
|
|
||
| @Builder(access = PRIVATE) | ||
| public record DocumentsCreateResponse( | ||
| List<DocumentCreateResponse> response | ||
| ) { | ||
|
|
||
| public static DocumentsCreateResponse from(List<Long> documentIds) { | ||
| return DocumentsCreateResponse.builder() | ||
| .response(documentIds.stream().map(DocumentCreateResponse::from).toList()) | ||
| .build(); | ||
| } | ||
|
|
||
| @Builder(access = PRIVATE) | ||
| private record DocumentCreateResponse( | ||
| long documentId | ||
| ) { | ||
|
|
||
| public static DocumentCreateResponse from(long documentId) { | ||
| return DocumentCreateResponse.builder() | ||
| .documentId(documentId) | ||
| .build(); | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.