Page 494 - MDP2022-3
P. 494

private  LocalDateTime  commentCreatedTime;
                     private  LocalDateTime  commentUpdateTime;
                     private  String  nickname;
                     private  Long  reportId;




                     public  CommentResponse(Comment  comment)
                     {
                             this.id  =  comment.getCommentId();
                             this.comment  =  comment.getComment();
                             this.commentCreatedTime  =  comment.getCommentCreateTime();
                             this.commentUpdateTime  =  comment.getCommentUpdateTime();
                             this.nickname  =  comment.getUserInfo().getUserNickName();
                             this.reportId  =  comment.getReport().getReportId();
                     }
             }




             com.webmister.semicolon.response.FindReportOnlyOneResponse
             import  com.webmister.semicolon.domain.Comment;
             import  com.webmister.semicolon.domain.Report;
             import  lombok.Data;


             import  java.util.ArrayList;
             import  java.util.List;


             @Data
             public  class  FindReportOnlyOneResponse  {
                     String  title;
                     String  contents;
                     List<Comment>  commentList;


                     public  FindReportOnlyOneResponse(Report  report){
                             this.setTitle(report.getTitle());
                             this.setContents(report.getContents());
                             this.commentList  =  new  ArrayList<>();
                     }


             }


             com.webmister.semicolon.response.FindUserOnlyOneResponse
             import  com.webmister.semicolon.domain.Report;
             import  com.webmister.semicolon.domain.UserInfo;
             import  com.webmister.semicolon.dto.EssentialReport;
             import  lombok.Data;
   489   490   491   492   493   494   495   496   497   498   499