package dto; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.io.Serializable; import java.util.Date; @Data public class UserMessageDto implements Serializable { private static final long serialVersionUID = 1L; /** * 消息ID */ private String messageId; /** * 消息ID */ private String userId; /** * 消息标题 */ private String title; /** * 消息内容 */ private String content; /** * 是否已读 0为未读 1为已读 */ private Integer havaRead; /** * 发送时间 */ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date sendTime; }