github.com/LagrangeDev/LagrangeGo@v0.0.0-20240512064304-ad4a85e10cb4/client/packets/pb/service/oidb/NTV2RichMediaReq.proto (about) 1 syntax = "proto3"; 2 3 option go_package = "github.com/LagrangeDev/LagrangeGo/client/packets/pb/service/oidb"; 4 5 message NTV2RichMediaReq { 6 MultiMediaReqHead ReqHead = 1; 7 UploadReq Upload = 2; 8 DownloadReq Download = 3; 9 DownloadRKeyReq DownloadRKey = 4; 10 DeleteReq Delete = 5; 11 UploadCompletedReq UploadCompleted = 6; 12 MsgInfoAuthReq MsgInfoAuth = 7; 13 UploadKeyRenewalReq UploadKeyRenewal = 8; 14 DownloadSafeReq DownloadSafe = 9; 15 optional bytes Extension = 99; 16 } 17 18 message MultiMediaReqHead { 19 CommonHead Common = 1; 20 SceneInfo Scene = 2; 21 ClientMeta Client = 3; 22 } 23 24 message CommonHead { 25 uint32 RequestId = 1; // 1 26 uint32 Command = 2; // 200 27 } 28 29 message SceneInfo { 30 uint32 RequestType = 101; // 1 31 uint32 BusinessType = 102; // 3 32 uint32 SceneType = 200; // 1 33 optional C2CUserInfo C2C = 201; 34 optional NTGroupInfo Group = 202; 35 } 36 37 message C2CUserInfo { 38 uint32 AccountType = 1; // 2 39 string TargetUid = 2; 40 } 41 42 message NTGroupInfo { 43 uint32 GroupUin = 1; 44 } 45 46 message ClientMeta { 47 uint32 AgentType = 1; // 2 48 } 49 50 message DownloadReq { 51 IndexNode Node = 1; 52 DownloadExt Download = 2; 53 } 54 55 message IndexNode { 56 FileInfo Info = 1; 57 string FileUuid = 2; 58 uint32 StoreId = 3; // 0旧服务器 1为nt服务器 59 uint32 UploadTime = 4; // 0 60 uint32 Ttl = 5; // 0 61 uint32 SubType = 6; // 0 62 } 63 64 message FileInfo { 65 uint32 FileSize = 1; // 0 66 string FileHash = 2; 67 string FileSha1 = 3; // "" 68 string FileName = 4; 69 FileType Type = 5; 70 uint32 Width = 6; // 0 71 uint32 Height = 7; // 0 72 uint32 Time = 8; // 2 73 uint32 Original = 9; // 0 74 } 75 76 message FileType { 77 uint32 Type = 1; // 2 78 uint32 PicFormat = 2; // 0 79 uint32 VideoFormat = 3; // 0 80 uint32 VoiceFormat = 4; // 1 81 } 82 83 message DownloadExt { 84 PicDownloadExt Pic = 1; 85 VideoDownloadExt Video = 2; 86 PttDownloadExt Ptt = 3; 87 } 88 89 message VideoDownloadExt { 90 uint32 BusiType = 1; // 0 91 uint32 SceneType = 2; // 0 92 uint32 SubBusiType = 3; // 0 93 } 94 95 message PicDownloadExt { 96 97 } 98 99 message PttDownloadExt { 100 101 } 102 103 message PicUrlExtInfo { 104 string OriginalParameter = 1; 105 string BigParameter = 2; 106 string ThumbParameter = 3; 107 } 108 109 message VideoExtInfo { 110 uint32 VideoCodecFormat = 1; 111 } 112 113 message MsgInfo { 114 repeated MsgInfoBody MsgInfoBody = 1; 115 ExtBizInfo ExtBizInfo = 2; 116 } 117 118 message MsgInfoBody { 119 IndexNode Index = 1; 120 PictureInfo Picture = 2; 121 VideoInfo Video = 3; 122 AudioInfo Audio = 4; 123 bool FileExist = 5; 124 bytes HashSum = 6; 125 } 126 127 message VideoInfo { 128 129 } 130 131 message AudioInfo { 132 133 } 134 135 message PictureInfo { 136 string UrlPath = 1; 137 PicUrlExtInfo Ext = 2; 138 string Domain = 3; 139 } 140 141 message ExtBizInfo { 142 PicExtBizInfo Pic = 1; 143 VideoExtBizInfo Video = 2; 144 PttExtBizInfo Ptt = 3; 145 uint32 BusiType = 10; 146 } 147 148 message PttExtBizInfo { 149 uint64 SrcUin = 1; 150 uint32 PttScene = 2; 151 uint32 PttType = 3; 152 uint32 ChangeVoice = 4; 153 bytes Waveform = 5; 154 uint32 AutoConvertText = 6; 155 bytes BytesReserve = 11; 156 bytes BytesPbReserve = 12; 157 bytes BytesGeneralFlags = 13; 158 } 159 160 message VideoExtBizInfo { 161 uint32 FromScene = 1; 162 uint32 ToScene = 2; 163 bytes BytesPbReserve = 3; 164 } 165 166 message PicExtBizInfo { 167 uint32 BizType = 1; 168 string TextSummary = 2; 169 bytes BytesPbReserveC2c = 11; 170 bytes BytesPbReserveTroop = 12; 171 uint32 FromScene = 1001; 172 uint32 ToScene = 1002; 173 uint32 OldFileId = 1003; 174 } 175 176 message DownloadSafeReq { 177 IndexNode Index = 1; 178 } 179 180 message UploadKeyRenewalReq { 181 string OldUKey = 1; 182 uint32 SubType = 2; 183 } 184 185 message MsgInfoAuthReq { 186 bytes Msg = 1; 187 uint64 AuthTime = 2; 188 } 189 190 message UploadCompletedReq { 191 bool SrvSendMsg = 1; 192 uint64 ClientRandomId = 2; 193 MsgInfo MsgInfo = 3; 194 uint32 ClientSeq = 4; 195 } 196 197 message DeleteReq { 198 repeated IndexNode Index = 1; 199 bool NeedRecallMsg = 2; 200 uint64 MsgSeq = 3; 201 uint64 MsgRandom = 4; 202 uint64 MsgTime = 5; 203 } 204 205 message DownloadRKeyReq { 206 repeated int32 Types = 1; 207 } 208 209 message UploadInfo { 210 FileInfo FileInfo = 1; 211 uint32 SubFileType = 2; 212 } 213 214 message UploadReq { 215 repeated UploadInfo UploadInfo = 1; 216 bool TryFastUploadCompleted = 2; 217 bool SrvSendMsg = 3; 218 uint64 ClientRandomId = 4; 219 uint32 CompatQMsgSceneType = 5; 220 ExtBizInfo ExtBizInfo = 6; 221 uint32 ClientSeq = 7; 222 bool NoNeedCompatMsg = 8; 223 }