Skip to content
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

[Refactor] 엔티티 Setter 제거 #59

Merged
merged 5 commits into from
Apr 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: Modify request param (#56)
Co-authored-by: Ahyun0326 <[email protected]>
  • Loading branch information
chaeeun-Han and Ahyun0326 committed Apr 4, 2024
commit 07ccc1fdde6dd077e8c585f2dd2ffb2230372c3d
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class PostsRequestDto {
private Long categoryId;
private String summary;

public Posts toEntity(Long uid) {
public Posts toEntity(Long uid, String summary) {
Date now = Date.from(Instant.now());
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String writeDatetime = simpleDateFormat.format(now);
Expand Down