Try to add online chat
This commit is contained in:
1 parent
428ab4127b
commit
90df65f8f9
31 files changed
+472
-492
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package site.easystartup.web.chat.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import site.easystartup.web.chat.domain.model.MessageStatus;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class ChatMessageDto implements Serializable {
|
||||
private long id;
|
||||
private String chatId;
|
||||
@NotNull
|
||||
private String senderId;
|
||||
@NotNull
|
||||
private String recipientId;
|
||||
@NotNull
|
||||
private String senderName;
|
||||
@NotNull
|
||||
private String recipientName;
|
||||
@NotNull
|
||||
@Size(min = 1, max = 255, message = "Text should be no less 1 and no more 255 signs")
|
||||
private String content;
|
||||
private Date timestamp;
|
||||
private MessageStatus status;
|
||||
}
|
||||
Reference in new issue
Block a user