package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.entity.SysUser;
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 java.util.List;

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

/**
 * 通信目录业务对象 socket_contact
 *
 * @author hdka
 * @date 2024-10-21
 */

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

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

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

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

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

    /** 用户名 */
    private String userName;

    /**
     * 房间号
     */
    @NotNull(message = "房间号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long roomId;

    private List<SysUser> userList;


}
