package com.muyu.enterprise.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 站内信
 * @Author: chenruijia
 * @Date 2024/9/28 12.23
 * @Description FaultMessage:站内信
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "fault_message",autoResultMap = true)
@Tag(name = "站内信")
public class FaultMessage {
    /**
     * 站内信ID
     */
    @TableId(value = "fault_message_id", type= IdType.AUTO)
    @Schema(defaultValue = "站内信ID",type = "Long",description = "站内信ID")
    private Long faultMessageId;
    /**
     * 消息发送人
     */
    @Schema(defaultValue = "消息发送人",type = "String",description = "消息发送人")
    private String faultMessageSendName;
    /**
     * 消息接收人
     */
    @Schema(defaultValue = "消息接收人",type = "String",description = "消息发送人")
    private String faultMessageRemoveName;
    /**
     * 消息内容
     */
    @Schema(defaultValue = "消息内容",type = "String",description = "消息内容")
    private String faultMessageContent;
    /**
     * 发送时间
     */
    @Schema(defaultValue = "发送时间",type = "Date",description = "发送时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date faultMessageSendTime;
    /**
     * 消息状态(1:未读,2:已读)
     */
    @Schema(defaultValue = "消息状态",type = "Integer",description = "消息状态(1:未读,2:已读)")
    private Integer faultMessageState;
}
