package com.ruoyi.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.Data;
import java.util.Date;



/**
 * 对话信息视图对象 socket_message
 *
 * @author hdka
 * @date 2024-10-27
 */
@Data
@ExcelIgnoreUnannotated
public class SocketMessageVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ExcelProperty(value = "主键id")
    private Long id;

    /**
     * 接收者id
     */
    @ExcelProperty(value = "接收者id")
    private Long contactId;

    /**
     * 发送者id
     */
    @ExcelProperty(value = "发送者id")
    private Long userId;

    /**
     * 发送信息内容
     */
    @ExcelProperty(value = "发送信息内容")
    private String content;

    /**
     * 房间号（针对群聊开发）
     */
    @ExcelProperty(value = "房间号", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "针=对群聊开发")
    private Long roomId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 用户数据
     */
    private SysUser user;


}
