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.
|
|
|
|
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;
|
|
|
|
|
}
|