package com.izouma.dingdong.dto;

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

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "聊天框")
public class ChatDTO {

    @ApiModelProperty(value = "发件人", name = "sendUserId")
    private Long   sendUserId;

    private String sendAvatar;

    private String sendNickname;

    @ApiModelProperty(value = "收件人", name = "receiveUserId")
    private Long   receiveUserId;

    private String receiveAvatar;

    private String receiveNickname;

    private String content;

    private LocalDateTime sendTime;

    @ApiModelProperty(value = "是否已读", name = "isRead")
    private Boolean isRead;

}
