package com.izouma.jmrh.dto;

import com.izouma.jmrh.domain.Comment;
import com.izouma.jmrh.domain.Post;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyPostAndComment {
    private Post          post;
    private Comment       comment;
    private LocalDateTime createdAt;

    public MyPostAndComment(Post post, LocalDateTime createdAt) {
        this.post = post;
        this.createdAt = createdAt;
    }
}
