github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/packets/pb/message/action.proto (about) 1 syntax = "proto3"; 2 3 option go_package = "github.com/LagrangeDev/LagrangeGo/client/packets/pb/message"; 4 5 import "pb/message/message.proto"; 6 7 message LongMsgResult { 8 LongMsgAction Action = 2; 9 } 10 11 message LongMsgAction { 12 string ActionCommand = 1; 13 LongMsgContent ActionData = 2; 14 } 15 16 message LongMsgContent { 17 repeated PushMsgBody MsgBody = 1; 18 } 19 20 // trpc.group.long_msg_interface.MsgService.SsoRecvLongMsg Request 21 message RecvLongMsgReq { 22 optional RecvLongMsgInfo Info = 1; 23 optional LongMsgSettings Settings = 15; 24 } 25 26 message RecvLongMsgInfo { 27 optional LongMsgUid Uid = 1; 28 optional string ResId = 2; 29 bool Acquire = 3; 30 } 31 32 message LongMsgUid { 33 optional string Uid = 2; 34 } 35 36 message LongMsgSettings { 37 uint32 Field1 = 1; // 4 38 uint32 Field2 = 2; // 1 39 uint32 Field3 = 3; // 7 40 uint32 Field4 = 4; // 0 41 } 42 43 message RecvLongMsgResp { 44 RecvLongMsgResult Result = 1; 45 LongMsgSettings Settings = 15; 46 } 47 48 message RecvLongMsgResult { 49 string ResId = 3; 50 bytes Payload = 4; 51 } 52 53 message SendLongMsgReq { 54 SendLongMsgInfo Info = 2; 55 LongMsgSettings Settings = 15; 56 } 57 58 message SendLongMsgInfo { 59 uint32 Type = 1; // Group: 3, Friend: 1 60 optional LongMsgUid Uid = 2; 61 optional uint32 GroupUin = 3; 62 optional bytes Payload = 4; 63 } 64 65 message SendLongMsgResp { 66 SendLongMsgResult Result = 2; 67 LongMsgSettings Settings = 15; 68 } 69 70 message SendLongMsgResult { 71 string ResId = 3; 72 } 73 74 message SsoGetGroupMsg { 75 SsoGetGroupMsgInfo Info = 1; 76 bool Direction = 2; 77 } 78 79 message SsoGetGroupMsgInfo { 80 uint32 GroupUin = 1; 81 uint32 StartSequence = 2; 82 uint32 EndSequence = 3; 83 } 84 85 message SsoGetGroupMsgResponse { 86 SsoGetGroupMsgResponseBody Body = 3; 87 } 88 89 message SsoGetGroupMsgResponseBody { 90 uint32 GroupUin = 3; 91 uint32 StartSequence = 4; 92 uint32 EndSequence = 5; 93 repeated PushMsgBody Messages = 6; 94 } 95 96 message SsoGetRoamMsg { 97 optional string FriendUid = 1; 98 uint32 Time = 2; 99 uint32 Random = 3; // 0 100 uint32 Count = 4; 101 bool Direction = 5; // true 102 } 103 104 message SsoGetRoamMsgResponse { 105 string FriendUid = 3; 106 uint32 Timestamp = 5; 107 uint32 Random = 6; 108 repeated PushMsgBody Messages = 7; 109 }