package com.sckw.message.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @desc: 用户消息中心最新消息dto
 * @author: yzc
 * @date: 2023-09-07 16:22
 */
@Getter
@Setter
@ToString
public class UserMsgCenterLatestMsgDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = -1102829961881130675L;

    private Long id;

    /**
     * 状态:0未读/1已读
     */
    private Integer status;

    private String category;

    /**
     * 消息分类
     */
    private String type;

    /**
     * 消息标题
     */
    private String title;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 消息跳转url
     */
    private String url;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
