refactor: extract post dtos

This commit is contained in:
Tim
2025-08-04 20:37:20 +08:00
parent 6fa5978613
commit b41835d9c8
10 changed files with 311 additions and 215 deletions

View File

@@ -0,0 +1,21 @@
package com.openisle.dto;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
/**
* DTO representing a comment and its nested replies.
*/
@Data
public class CommentDto {
private Long id;
private String content;
private LocalDateTime createdAt;
private AuthorDto author;
private List<CommentDto> replies;
private List<ReactionDto> reactions;
private int reward;
}