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

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: 消息列表响应
 * @author: yzc
 * @date: 2023-08-22 11:05
 */
@Getter
@Setter
@ToString
public class KwmMessageListResVO implements Serializable {

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

    private Long id;

    private Integer status;

    private String statusLabel;

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

    private String categoryLabel;

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

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

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

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

    /**
     * 提交人
     */
    private Long createBy;

    /**
     * 提交人姓名
     */
    private String createByName;

    /**
     * 提交人部门
     */
    private String createByDept;

}
