github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/packets/pb/message/message.proto (about) 1 syntax = "proto3"; 2 3 option go_package = "github.com/LagrangeDev/LagrangeGo/client/packets/pb/message"; 4 5 import "pb/message/c2c.proto"; 6 import "pb/message/routing.proto"; 7 import "pb/message/component.proto"; 8 import "pb/system/system.proto"; 9 10 message ContentHead { 11 uint32 Type = 1; 12 optional uint32 SubType = 2; 13 optional uint32 DivSeq = 3; 14 optional uint64 MsgId = 4; 15 optional uint32 Sequence = 5; 16 optional uint64 TimeStamp = 6; 17 optional uint64 Field7 = 7; 18 optional uint32 Field8 = 8; 19 optional uint32 Field9 = 9; 20 optional uint64 NewId = 12; 21 optional ForwardHead Foward = 15; 22 } 23 24 message MessageBody { 25 optional RichText RichText = 1; 26 optional bytes MsgContent = 2; 27 optional bytes MsgEncryptContent = 3; 28 } 29 30 message GroupRecallMsg { 31 uint32 Type = 1; 32 uint32 GroupUin = 2; 33 GroupRecallMsgField3 Field3 = 3; 34 GroupRecallMsgField4 Field4 = 4; 35 } 36 37 message GroupRecallMsgField3 { 38 uint32 Sequence = 1; 39 uint32 Random = 2; 40 uint32 Field3 = 3; 41 } 42 43 message GroupRecallMsgField4 { 44 uint32 Field1 = 1; 45 } 46 47 message Message { 48 optional RoutingHead RoutingHead = 1; 49 optional ContentHead ContentHead = 2; 50 optional MessageBody Body = 3; 51 optional uint32 Seq = 4; 52 optional uint32 Rand = 5; 53 optional bytes SyncCookie = 6; 54 // optional AppShareInfo AppShare = 7; 55 optional uint32 Via = 8; 56 optional uint32 DataStatist = 9; 57 // optional MultiMsgAssist MultiMsgAssist = 10; 58 // optional InputNotifyInfo InputNotifyInfo = 11; 59 optional MessageControl Ctrl = 12; 60 // optional ReceiptReq ReceiptReq = 13; 61 uint32 MultiSendSeq = 14; 62 } 63 64 message MessageControl { 65 int32 MsgFlag = 1; 66 } 67 68 message PushMsg { 69 PushMsgBody Message = 1; 70 optional int32 Status = 3; 71 optional NTSysEvent NtEvent = 4; 72 optional int32 PingFLag = 5; 73 optional int32 GeneralFlag = 9; 74 } 75 76 message PushMsgBody { 77 ResponseHead ResponseHead = 1; 78 ContentHead ContentHead = 2; 79 optional MessageBody Body = 3; 80 } 81 82 message ResponseHead { 83 uint32 FromUin = 1; 84 optional string FromUid = 2; 85 uint32 Type = 3; 86 uint32 SigMap = 4; // 鬼知道是啥 87 uint32 ToUin = 5; 88 optional string ToUid = 6; 89 optional ResponseForward Forward = 7; 90 optional ResponseGrp Grp = 8; 91 } 92 93 message RoutingHead { 94 optional C2C C2C = 1; 95 optional Grp Grp = 2; 96 optional GrpTmp GrpTmp = 3; 97 optional WPATmp WpaTmp = 6; 98 optional Trans0X211 Trans0X211 = 15; 99 } 100 101 message SsoReadedReport { 102 optional SsoReadedReportGroup Group = 1; 103 optional SsoReadedReportC2C C2C = 2; 104 } 105 106 message SsoReadedReportC2C { 107 optional string TargetUid = 2; 108 uint32 Time = 3; 109 uint32 StartSequence = 4; 110 } 111 112 message SsoReadedReportGroup { 113 uint32 GroupUin = 1; 114 uint32 StartSequence = 2; 115 } 116 117 message SelfRenameMsg { 118 uint32 Field1 = 1; // 20 119 SelfRenameBody Body = 20; 120 } 121 122 message SelfRenameBody { 123 uint32 Uin = 1; 124 RenameData RenameData = 2; 125 } 126 127 message FriendRenameMsg { 128 FriendRenameMsgBody Body = 1; 129 } 130 131 message FriendRenameMsgBody { 132 uint32 Field1 = 2; // 20 133 FriendRenameMsgData Data = 8; 134 } 135 136 message FriendRenameMsgData { 137 string Uid = 1; 138 RenameData RenameData = 2; 139 } 140 141 message RenameData { 142 uint32 Field1 = 1; // 20002 143 string NickName = 2; 144 }