package com.ruoyi.xq.dto.app.im;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class ImMessageDTO {

    @Schema(description = "发送消息的类型 0.文本 1.图片 2.语音 3.视频 100.自定义")
    @NotNull(message = "参数异常")
    private Integer type;
    @Schema(hidden = true)
    private Long fromUserId;
    @Schema(description = "接收消息的用户")
    @NotNull(message = "接受消息的用户不能为空")
    private Long toUserId;

    @Schema(description = "消息内容")
    @NotNull(message = "消息内容不能为空")
    private String content;

}
