package com.ruoyi.project.common.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 物资消息对象 message
 * 
 * @author ruoyi
 * @date 2024-04-17
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 消息类型 */
    @Excel(name = "消息类型")
    private String messageType;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String messageContent;

    @Excel(name = "消息内容")
    private String messageContentUS;
    @Excel(name = "消息内容")
    private String messageContentRU;
    @Excel(name = "消息内容")
    private String messageContentES;

    /** 推送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "推送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pushTime;

    /** 推送状态（0:未推送；1：已推送） */
    @Excel(name = "推送状态", readConverterExp = "0=:未推送；1：已推送")
    private String pushStatus;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public Message(String messageType, String messageContent, String messageContentUS, String messageContentRU, String messageContentES) {
        this.messageType = messageType;
        this.messageContent = messageContent;
        this.messageContentUS = messageContentUS;
        this.messageContentRU = messageContentRU;
        this.messageContentES = messageContentES;
    }
}
