package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 对话信息业务对象 socket_message
 *
 * @author hdka
 * @date 2024-10-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SocketMessageBo extends BaseEntity {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 接收者id
     */
    @NotNull(message = "接收者id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long contactId;

    /**
     * 发送者id
     */
    @NotNull(message = "发送者id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 发送信息内容
     */
    @NotBlank(message = "发送信息内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 房间号（针对群聊开发）
     */
    @NotNull(message = "房间号（针对群聊开发）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long roomId;

    /**
     * 备注
     */
    private String remark;





}
