package com.fufan.mtsaas.modules.base.sysmsg.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 系统消息表
 *
 * @author Liby
 * @date 2025-01-08
 */
@Data
@ApiModel(description = "系统消息表")
@TableName("t_sys_message")
public class TSysMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    @ApiModelProperty(value = "系统ID")
    private String id;
    @ApiModelProperty(value = "关联系统ID")
    private Long relatedId;
    @ApiModelProperty(value = "关联功能")
    private String relatedType;
    @ApiModelProperty(value = "标题")
    private String logTitle;
    @ApiModelProperty(value = "内容")
    private String logContent;
    @ApiModelProperty(value = "操作人")
    private String createBy;
    @ApiModelProperty(value = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "状态：0-未阅读，1-已阅读")
    private Integer operateStatus;
    @ApiModelProperty(value = "公司id")
    private Long companyId;

}
