You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
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 ;
/**
* 消息类型 1私信 , 2新赞, 3新关注, 4新评论 5.系统消息
*/
private Integer type ;
/**
* 当消息类型是新评论 新评论 新赞 新关注 私信时,显示发起用户的头像, 当时系统消息时, 显示默认系统消息icon。
*/
private String sendUserAvatar ;
private String sendUserId ;
private String sendUserNickName ;
/**
* 消息标题
*/
private String title ;
/**
* 消息内容
*/
private String content ;
/**
* 是否已读 0为未读 1为已读
*/
private Integer haveRead ;
/**
* 发送时间
*/
@JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8" )
@DateTimeFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
private Date sendTime ;
}