This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
-
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.
- Loading branch information
Showing
9 changed files
with
73 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
|
||
public record DeleteFileRequest( | ||
@NotBlank(message = "삭제할 파일의 이름을 작성해주세요.") | ||
String fileName | ||
String key | ||
) { | ||
} |
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
33 changes: 33 additions & 0 deletions
33
src/main/java/com/example/daemawiki/domain/file/model/File.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,33 @@ | ||
package com.example.daemawiki.domain.file.model; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.data.mongodb.core.mapping.Document; | ||
import org.springframework.data.mongodb.core.mapping.MongoId; | ||
|
||
import java.util.UUID; | ||
|
||
@Getter | ||
@Document | ||
@NoArgsConstructor | ||
public class File { | ||
|
||
@MongoId | ||
private UUID id; | ||
|
||
private String fileName; | ||
|
||
private String fileType; | ||
|
||
private FileDetail detail; | ||
|
||
@Builder | ||
public File(UUID id, String fileName, String fileType, FileDetail detail) { | ||
this.id = id; | ||
this.fileName = fileName; | ||
this.fileType = fileType; | ||
this.detail = detail; | ||
} | ||
|
||
} |
12 changes: 0 additions & 12 deletions
12
src/main/java/com/example/daemawiki/domain/file/model/FileResponse.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/main/java/com/example/daemawiki/domain/file/repository/FileRepository.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,9 @@ | ||
package com.example.daemawiki.domain.file.repository; | ||
|
||
import com.example.daemawiki.domain.file.model.File; | ||
import org.springframework.data.mongodb.repository.ReactiveMongoRepository; | ||
|
||
import java.util.UUID; | ||
|
||
public interface FileRepository extends ReactiveMongoRepository<File, UUID> { | ||
} |
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