package com.m2pool.chat.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @ClassName ChatMessageDto
 * @Description 聊天消息返回对象
 * @Author yyb
 * @Date 2025/4/14 14:28
 */

@ApiModel(description = "聊天消息返回对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChatMessageDto {

    @ApiModelProperty(value = "消息ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "消息类型", example = "0 文本 1 图片")
    private Integer type;

    @ApiModelProperty(value = "发送者邮箱", example = "54544@qq.com")
    private String sendEmail;

    @ApiModelProperty(value = "消息内容", example = "消息内容")
    private String content;

    @ApiModelProperty(value = "发送时间", example = "")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "聊天室id", example = "")
    private Long roomId;

    @ApiModelProperty(value = "是否是自己发送的消息", example = "")
    private Integer isSelf;


}
