-
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 #28 from gooiman/refactor/memo
[Refactor] memo, page 리팩토링
- Loading branch information
Showing
16 changed files
with
133 additions
and
162 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
10 changes: 6 additions & 4 deletions
10
src/main/java/dev/gooiman/server/memo/application/dto/CreateMemoRequestDto.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,16 +1,18 @@ | ||
package dev.gooiman.server.memo.application.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import java.util.UUID; | ||
|
||
public record CreateMemoRequestDto(@JsonProperty(value = "page_id") UUID pageId, | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public record CreateMemoRequestDto(UUID pageId, | ||
String author, | ||
String title, | ||
String category, | ||
@JsonProperty(value = "sub_category") String subCategory, | ||
String subCategory, | ||
String content, | ||
String color | ||
) { | ||
) { | ||
|
||
|
||
} |
19 changes: 5 additions & 14 deletions
19
src/main/java/dev/gooiman/server/memo/application/dto/MemoSummariesResponseDto.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,22 +1,13 @@ | ||
package dev.gooiman.server.memo.application.dto; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import java.util.List; | ||
import java.util.Map; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class MemoSummariesResponseDto { | ||
|
||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public record MemoSummariesResponseDto(String name, | ||
Map<String, Map<String, List<String>>> memoSummaries) { | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@Builder | ||
public static class Res { | ||
|
||
private String name; | ||
private Map<String, Map<String, List<String>>> memoSummaries; | ||
} | ||
} |
6 changes: 5 additions & 1 deletion
6
src/main/java/dev/gooiman/server/memo/application/dto/UpdateMemoRequestDto.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,11 +1,15 @@ | ||
package dev.gooiman.server.memo.application.dto; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
|
||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public record UpdateMemoRequestDto(String title, | ||
String content, | ||
String author, | ||
String category, | ||
String subCategory, | ||
String color | ||
) { | ||
) { | ||
|
||
} |
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
7 changes: 7 additions & 0 deletions
7
src/main/java/dev/gooiman/server/memo/repository/view/MemoSummariesView.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,7 @@ | ||
package dev.gooiman.server.memo.repository.view; | ||
|
||
public interface MemoSummariesView { | ||
String getTitle(); | ||
String getCategory(); | ||
String getSubCategory(); | ||
} |
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
5 changes: 5 additions & 0 deletions
5
src/main/java/dev/gooiman/server/page/application/dto/CreatePageRequestDto.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,5 @@ | ||
package dev.gooiman.server.page.application.dto; | ||
|
||
public record CreatePageRequestDto(String name) { | ||
|
||
} |
Oops, something went wrong.