mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-09 08:30:55 +08:00
21 lines
400 B
Java
21 lines
400 B
Java
package com.openisle.dto;
|
|
|
|
import java.time.LocalDateTime;
|
|
import lombok.*;
|
|
|
|
/**
|
|
* comment and change_log Dto
|
|
*/
|
|
@Getter
|
|
@Setter
|
|
@AllArgsConstructor
|
|
@NoArgsConstructor
|
|
public class TimelineItemDto<T> {
|
|
|
|
private Long id;
|
|
private String kind; // "comment" | "log"
|
|
private LocalDateTime createdAt;
|
|
private LocalDateTime pinnedAt;
|
|
private T payload; // 泛型,具体类型由外部决定
|
|
}
|