From f6a912c1a6a26c809568f964941fb4ad4483274e Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 31 May 2021 11:19:40 +0800
Subject: [PATCH] modify
---
src/main/java/com/xcong/excoin/netty/bean/ChatRequest.java | 49 ++++++++++++++++---------------------------------
1 files changed, 16 insertions(+), 33 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 ea7ab2b..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,48 +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;
- public String getTo() {
- return to;
- }
+ private Integer isSelf;
- public void setTo(String to) {
- this.to = to;
- }
+ private Integer cmd;
- 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