22301102 | f567030 | 2025-06-08 14:10:02 +0800 | [diff] [blame^] | 1 | package com.pt.Item; |
| 2 | |
| 3 | import java.time.LocalDate; |
| 4 | import java.time.LocalDateTime; |
| 5 | |
| 6 | public class CommentInfo { |
| 7 | |
| 8 | private int commentId; |
| 9 | private String content; |
| 10 | private String writer; |
| 11 | private int parentPost; |
| 12 | private LocalDateTime publishDate; |
| 13 | private String reviewer; |
| 14 | private int reviewerId; |
| 15 | |
| 16 | public CommentInfo() { |
| 17 | } |
| 18 | public CommentInfo(int commentId, String content, String writer, int parentPost, LocalDateTime publishDate) { |
| 19 | this.commentId = commentId; |
| 20 | this.content = content; |
| 21 | this.writer = writer; |
| 22 | this.parentPost = parentPost; |
| 23 | this.publishDate = publishDate; |
| 24 | } |
| 25 | |
| 26 | public int getCommentId() { |
| 27 | return commentId; |
| 28 | } |
| 29 | public void setCommentId(int commentId) { |
| 30 | this.commentId = commentId; |
| 31 | } |
| 32 | public String getContent() { |
| 33 | return content; |
| 34 | } |
| 35 | public void setContent(String content) { |
| 36 | this.content = content; |
| 37 | } |
| 38 | public String getWriter() { |
| 39 | return writer; |
| 40 | } |
| 41 | public void setWriter(String writer) { |
| 42 | this.writer = writer; |
| 43 | } |
| 44 | public int getParentPost() { |
| 45 | return parentPost; |
| 46 | } |
| 47 | public void setParentPost(int parentPost) { |
| 48 | this.parentPost = parentPost; |
| 49 | } |
| 50 | public LocalDateTime getPublishDate() { |
| 51 | return publishDate; |
| 52 | } |
| 53 | public void setPublishDate(LocalDateTime publishDate) { |
| 54 | this.publishDate = publishDate; |
| 55 | } |
| 56 | public String getReviewer() { |
| 57 | return reviewer; |
| 58 | } |
| 59 | public void setReviewer(String reviewer) { |
| 60 | this.reviewer = reviewer; |
| 61 | } |
| 62 | public int getReviewerId() { |
| 63 | return reviewerId; |
| 64 | } |
| 65 | public void setReviewerId(int reviewerId) { |
| 66 | this.reviewerId = reviewerId; |
| 67 | } |
| 68 | } |