-
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.
closed #1
- Loading branch information
Showing
7 changed files
with
71 additions
and
22 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
8 changes: 5 additions & 3 deletions
8
src/main/java/picdiary/diary/dto/request/DiaryCreateRequest.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,15 +1,17 @@ | ||
package picdiary.diary.dto.request; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import picdiary.diary.domain.Diary; | ||
|
||
@Data | ||
@Builder | ||
public final class DiaryCreateRequest { | ||
@AllArgsConstructor | ||
@EqualsAndHashCode(callSuper = true) | ||
public final class DiaryCreateRequest extends DiaryUpdateRequest { | ||
private String content; | ||
private String date; | ||
private Diary.Emotion emotion; | ||
private String imageFileName; | ||
|
||
} |
16 changes: 15 additions & 1 deletion
16
src/main/java/picdiary/diary/dto/request/DiaryUpdateRequest.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,6 +1,20 @@ | ||
package picdiary.diary.dto.request; | ||
|
||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.web.multipart.MultipartFile; | ||
import picdiary.diary.domain.Diary; | ||
|
||
public record DiaryUpdateRequest(String content, Diary.Emotion emotion) { | ||
@Data | ||
@NoArgsConstructor | ||
public class DiaryUpdateRequest { | ||
private String content; | ||
protected Diary.Emotion emotion; | ||
private MultipartFile imageFile; | ||
private String imageFileName; | ||
|
||
public DiaryUpdateRequest(String content, Diary.Emotion emotion) { | ||
this.content = content; | ||
this.emotion = emotion; | ||
} | ||
} |
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