From 02bdd77db8b0bffc471dce9c3ed1a487a8743d55 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 28 May 2021 10:25:35 +0800
Subject: [PATCH] 20210528

---
 src/main/java/com/xcong/excoin/netty/bean/ChatRequest.java |   59 ++++++++++++++++-------------------------------------------
 1 files changed, 16 insertions(+), 43 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/netty/bean/ChatRequest.java b/src/main/java/com/xcong/excoin/netty/bean/ChatRequest.java
index 15936f6..ef23959 100644
--- a/src/main/java/com/xcong/excoin/netty/bean/ChatRequest.java
+++ b/src/main/java/com/xcong/excoin/netty/bean/ChatRequest.java
@@ -1,58 +1,31 @@
 package com.xcong.excoin.netty.bean;
 
 
-import java.io.Serializable;
+import lombok.Data;
 
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ *  {"data": {"fromMemberId": 443, "isSelf": 1, "memberId": 443, "msg": "w shi shei ", "msgType": 1, "targetId": 444}, "type": 2}
+ */
+@Data
 public class ChatRequest implements Serializable {
     private static final long serialVersionUID = 3079080008111369136L;
 
-    private String to;
+    private Long fromMemberId;
 
-    private String from;
+    private Long targetId;
+
+    private Long memberId;
 
     private Integer msgType;
 
-    private String content;
+    private String msg;
+
+    private Integer isSelf;
 
     private Integer cmd;
 
-    public Integer getCmd() {
-        return cmd;
-    }
-
-    public void setCmd(Integer cmd) {
-        this.cmd = cmd;
-    }
-
-    public String getTo() {
-        return to;
-    }
-
-    public void setTo(String to) {
-        this.to = to;
-    }
-
-    public String getFrom() {
-        return from;
-    }
-
-    public void setFrom(String from) {
-        this.from = from;
-    }
-
-    public Integer getMsgType() {
-        return msgType;
-    }
-
-    public void setMsgType(Integer msgType) {
-        this.msgType = msgType;
-    }
-
-    public String getContent() {
-        return content;
-    }
-
-    public void setContent(String content) {
-        this.content = content;
-    }
+    private Long timestamp;
 }

--
Gitblit v1.9.1