From 0918083443d3920335c5b09a5d28e4f8d1bb3f45 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 27 May 2021 16:59:28 +0800 Subject: [PATCH] modify --- 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