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,18 @@
package com.openisle.dto;
import com.openisle.model.ReactionType;
import lombok.Data;
/**
* DTO representing a reaction on a post or comment.
*/
@Data
public class ReactionDto {
private Long id;
private ReactionType type;
private String user;
private Long postId;
private Long commentId;
private int reward;
}