github.com/Mrs4s/MiraiGo@v0.0.0-20240226124653-54bdd873e3fe/client/pb/pttcenter/shortvideo.proto (about) 1 syntax = "proto3"; 2 3 option go_package = "github.com/Mrs4s/MiraiGo/client/pb/pttcenter"; 4 5 message ShortVideoReqBody { 6 int32 cmd = 1; 7 int32 seq = 2; 8 ShortVideoUploadReq pttShortVideoUploadReq = 3; 9 ShortVideoDownloadReq pttShortVideoDownloadReq = 4; 10 repeated ShortVideoExtensionReq extensionReq = 100; 11 } 12 13 message ShortVideoRspBody { 14 int32 cmd = 1; 15 int32 seq = 2; 16 ShortVideoUploadRsp pttShortVideoUploadRsp = 3; 17 ShortVideoDownloadRsp pttShortVideoDownloadRsp = 4; 18 } 19 20 message ShortVideoUploadReq { 21 int64 fromUin = 1; 22 int64 toUin = 2; 23 int32 chatType = 3; 24 int32 clientType = 4; 25 ShortVideoFileInfo info = 5; 26 int64 groupCode = 6; 27 int32 agentType = 7; 28 int32 businessType = 8; 29 int32 supportLargeSize = 20; 30 } 31 message ShortVideoDownloadReq { 32 int64 fromUin = 1; 33 int64 toUin = 2; 34 int32 chatType = 3; 35 int32 clientType = 4; 36 string fileId = 5; 37 int64 groupCode = 6; 38 int32 agentType = 7; 39 bytes fileMd5 = 8; 40 int32 businessType = 9; 41 int32 fileType = 10; 42 int32 downType = 11; 43 int32 sceneType = 12; 44 } 45 46 message ShortVideoDownloadRsp { 47 int32 retCode = 1; 48 string retMsg = 2; 49 //repeated ShortVideoIpList sameAreaOutAddr = 3; 50 //repeated ShortVideoIpList diffAreaOutAddr = 4; 51 bytes downloadKey = 5; 52 bytes fileMd5 = 6; 53 //repeated ShortVideoIpList sameAreaInnerAddr = 7; 54 //repeated ShortVideoIpList diffAreaInnerAddr = 8; 55 ShortVideoAddr downloadAddr = 9; 56 bytes encryptKey = 10; 57 } 58 59 message ShortVideoUploadRsp { 60 int32 retCode = 1; 61 string retMsg = 2; 62 //repeated ShortVideoIpList sameAreaOutAddr = 3; 63 //repeated ShortVideoIpList diffAreaOutAddr = 4; 64 string fileId = 5; 65 bytes uKey = 6; 66 int32 fileExists = 7; 67 //repeated ShortVideoIpList sameAreaInnerAddr = 8; 68 //repeated ShortVideoIpList diffAreaInnerAddr = 9; 69 //repeated DataHole dataHole = 10; 70 } 71 72 message ShortVideoFileInfo { 73 string fileName = 1; 74 bytes fileMd5 = 2; 75 bytes thumbFileMd5 = 3; 76 int64 fileSize = 4; 77 int32 fileResLength = 5; 78 int32 fileResWidth = 6; 79 int32 fileFormat = 7; 80 int32 fileTime = 8; 81 int64 thumbFileSize = 9; 82 } 83 84 message DataHole { 85 int64 begin = 1; 86 int64 end = 2; 87 } 88 89 message ShortVideoIpList { 90 int32 ip = 1; 91 int32 port = 2; 92 } 93 94 message ShortVideoAddr { 95 repeated string host = 10; 96 string urlArgs = 11; 97 //repeated string domain = 13; 98 } 99 100 message ShortVideoExtensionReq { 101 int32 subBusiType = 1; 102 int32 userCnt = 2; 103 }