Skip to content

Commit

Permalink
Merge pull request #2 from LikeLion-KNU/Dong_demo
Browse files Browse the repository at this point in the history
[MODIFY] DTO access
  • Loading branch information
himodu authored May 12, 2024
2 parents 0bd1b96 + 8d55740 commit 0c52708
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
@RequiredArgsConstructor
@AllArgsConstructor
public class Booth {
Long id;
String boothName;
int likes;
boolean Likable;
private Long id;
private String boothName;
private int likes;
private boolean Likable;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
@Data
@Builder
public class BoothDetail {
Long id;
String boothName;
int likes;
List<String> urls;
boolean Likable;
private Long id;
private String boothName;
private int likes;
private List<String> urls;
private boolean Likable;

List<Comment> comments;
private List<Comment> comments;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
@Data
@Builder
public class Comment {
Long id;
String name;
String comment;
String password;
Instant created;
private Long id;
private String name;
private String comment;
private String password;
private Instant created;

public CommentEntity toEntity(BoothEntity booth){
return CommentEntity.builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@Data
@RequiredArgsConstructor
public class CommentRequest {
String name;
String comment;
String password;
private String name;
private String comment;
private String password;
}

0 comments on commit 0c52708

Please sign in to comment.