From bf93d1508216c45be013ecb772d886edf5ae1fc2 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Mon, 22 May 2023 15:14:57 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E7=BE=A4=E7=BB=84=E5=8A=A0=E5=85=A5socket=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cbtc/data/vo/ConversationGroupSocketMessageVO.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/club/joylink/rtss/simulation/cbtc/data/vo/ConversationGroupSocketMessageVO.java b/src/main/java/club/joylink/rtss/simulation/cbtc/data/vo/ConversationGroupSocketMessageVO.java index 4d6d7447b..9e2691a73 100644 --- a/src/main/java/club/joylink/rtss/simulation/cbtc/data/vo/ConversationGroupSocketMessageVO.java +++ b/src/main/java/club/joylink/rtss/simulation/cbtc/data/vo/ConversationGroupSocketMessageVO.java @@ -1,6 +1,7 @@ package club.joylink.rtss.simulation.cbtc.data.vo; import club.joylink.rtss.simulation.cbtc.conversation.ConversationGroup; +import club.joylink.rtss.simulation.cbtc.conversation.ConversationType; import club.joylink.rtss.simulation.cbtc.member.SimulationMember; import lombok.Getter; import lombok.Setter; @@ -28,6 +29,10 @@ public class ConversationGroupSocketMessageVO { */ private String creatorId; + private String imageUrl; + + private String leaderId; + /** * 成员列表 */ @@ -38,6 +43,8 @@ public class ConversationGroupSocketMessageVO { */ private ConversationGroupMessageVO message; + private ConversationType type; + /** * 消息类型 */ @@ -58,6 +65,9 @@ public class ConversationGroupSocketMessageVO { messageVO.name = group.getName(); messageVO.creatorId = group.getCreator() != null ? group.getCreator().getId() : null; messageVO.memberList = group.getMemberList().stream().map(ConversationMemberVO::new).collect(Collectors.toList()); + messageVO.imageUrl = group.getImageUrl(); + messageVO.leaderId = group.getLeader().getId(); + messageVO.type = group.getType(); messageVO.messageType = MessageType.JOIN; return messageVO; }