package com.sckw.message.model.vo.res;

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

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

/**
 * @desc: 用户中心消息vo
 * @author: yzc
 * @date: 2023-09-07 14:53
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class UserCenterMsgVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1158795911479984678L;

    private Long id;

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

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

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

    /**
     * 未读数量
     */
    private Integer num;

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

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

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

}
