mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-21 14:30:59 +08:00
refactor: extract post dtos
This commit is contained in:
18
backend/src/main/java/com/openisle/dto/ReactionDto.java
Normal file
18
backend/src/main/java/com/openisle/dto/ReactionDto.java
Normal 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user