mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
fix rich message.
This commit is contained in:
parent
670b4084ce
commit
9f136485c4
@ -585,3 +585,28 @@ func (c *QQClient) buildSystemMsgFriendActionPacket(reqId, requester int64, acce
|
|||||||
packet := packets.BuildUniPacket(c.Uin, seq, "ProfileService.Pb.ReqSystemMsgAction.Friend", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "ProfileService.Pb.ReqSystemMsgAction.Friend", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
func (c *QQClient) buildMultiMsgDownRequestPacket() (uint16, []byte){
|
||||||
|
seq := c.nextSeq()
|
||||||
|
req := &multimsg.ReqBody{
|
||||||
|
Subcmd: 2,
|
||||||
|
TermType: 5,
|
||||||
|
PlatformType: 9,
|
||||||
|
NetType: 3,
|
||||||
|
BuildVer: "8.2.0.1296",
|
||||||
|
MultimsgApplydownReq: []*multimsg.MultiMsgApplyDownReq{
|
||||||
|
{
|
||||||
|
MsgResid: []byte("xxx"),
|
||||||
|
MsgType: 3,
|
||||||
|
SrcUin: 000,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
BuType: 2,
|
||||||
|
ReqChannelType: 2,
|
||||||
|
}
|
||||||
|
payload, _ := proto.Marshal(req)
|
||||||
|
packet := packets.BuildUniPacket(c.Uin, seq, "MultiMsg.ApplyDown", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
|
return seq, packet
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
@ -109,6 +109,7 @@ func NewClientMd5(uin int64, passwordMd5 [16]byte) *QQClient {
|
|||||||
"ImgStore.GroupPicUp": decodeGroupImageStoreResponse,
|
"ImgStore.GroupPicUp": decodeGroupImageStoreResponse,
|
||||||
"ProfileService.Pb.ReqSystemMsgNew.Group": decodeSystemMsgGroupPacket,
|
"ProfileService.Pb.ReqSystemMsgNew.Group": decodeSystemMsgGroupPacket,
|
||||||
"ProfileService.Pb.ReqSystemMsgNew.Friend": decodeSystemMsgFriendPacket,
|
"ProfileService.Pb.ReqSystemMsgNew.Friend": decodeSystemMsgFriendPacket,
|
||||||
|
//"MultiMsg.ApplyDown": decodeMultiMsgDownPacket,
|
||||||
},
|
},
|
||||||
handlers: map[uint16]func(interface{}, error){},
|
handlers: map[uint16]func(interface{}, error){},
|
||||||
sigInfo: &loginSigInfo{},
|
sigInfo: &loginSigInfo{},
|
||||||
|
@ -216,8 +216,24 @@ func parseMessageElems(elems []*msg.Elem) []message.IMessageElement {
|
|||||||
res = append(res, message.NewAt(target, elem.Text.Str))
|
res = append(res, message.NewAt(target, elem.Text.Str))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if elem.RichMsg != nil {
|
||||||
|
var content string
|
||||||
|
if elem.RichMsg.Template1[0] == 0 {
|
||||||
|
content = string(elem.RichMsg.Template1[1:])
|
||||||
|
}
|
||||||
|
if elem.RichMsg.Template1[0] == 1 {
|
||||||
|
content = string(binary.ZlibUncompress(elem.RichMsg.Template1[1:]))
|
||||||
|
}
|
||||||
|
if content != "" {
|
||||||
|
res = append(res, message.NewText(content))
|
||||||
|
}
|
||||||
|
}
|
||||||
if elem.CustomFace != nil {
|
if elem.CustomFace != nil {
|
||||||
res = append(res, message.NewNetImage(elem.CustomFace.FilePath, "http://gchat.qpic.cn"+elem.CustomFace.OrigUrl))
|
res = append(res, &message.ImageElement{
|
||||||
|
Filename: elem.CustomFace.FilePath,
|
||||||
|
Url: "http://gchat.qpic.cn" + elem.CustomFace.OrigUrl,
|
||||||
|
Md5: elem.CustomFace.Md5,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
if elem.NotOnlineImage != nil {
|
if elem.NotOnlineImage != nil {
|
||||||
var img string
|
var img string
|
||||||
@ -226,7 +242,11 @@ func parseMessageElems(elems []*msg.Elem) []message.IMessageElement {
|
|||||||
} else {
|
} else {
|
||||||
img = "http://c2cpicdw.qpic.cn/offpic_new/0/" + elem.NotOnlineImage.ResId + "/0?term=2"
|
img = "http://c2cpicdw.qpic.cn/offpic_new/0/" + elem.NotOnlineImage.ResId + "/0?term=2"
|
||||||
}
|
}
|
||||||
res = append(res, message.NewNetImage(elem.NotOnlineImage.FilePath, img))
|
res = append(res, &message.ImageElement{
|
||||||
|
Filename: elem.NotOnlineImage.FilePath,
|
||||||
|
Url: img,
|
||||||
|
Md5: elem.NotOnlineImage.PicMd5,
|
||||||
|
})
|
||||||
}
|
}
|
||||||
if elem.Face != nil {
|
if elem.Face != nil {
|
||||||
res = append(res, message.NewFace(elem.Face.Index))
|
res = append(res, message.NewFace(elem.Face.Index))
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -3,548 +3,556 @@ syntax = "proto3";
|
|||||||
option go_package = ".;msg";
|
option go_package = ".;msg";
|
||||||
|
|
||||||
message GetMessageRequest {
|
message GetMessageRequest {
|
||||||
SyncFlag syncFlag = 1;
|
SyncFlag syncFlag = 1;
|
||||||
bytes syncCookie = 2;
|
bytes syncCookie = 2;
|
||||||
int32 rambleFlag = 3;
|
int32 rambleFlag = 3;
|
||||||
int32 latestRambleNumber = 4;
|
int32 latestRambleNumber = 4;
|
||||||
int32 otherRambleNumber = 5;
|
int32 otherRambleNumber = 5;
|
||||||
int32 onlineSyncFlag = 6;
|
int32 onlineSyncFlag = 6;
|
||||||
int32 contextFlag = 7;
|
int32 contextFlag = 7;
|
||||||
int32 whisperSessionId = 8;
|
int32 whisperSessionId = 8;
|
||||||
int32 msgReqType = 9;
|
int32 msgReqType = 9;
|
||||||
bytes pubaccountCookie = 10;
|
bytes pubaccountCookie = 10;
|
||||||
bytes msgCtrlBuf = 11;
|
bytes msgCtrlBuf = 11;
|
||||||
bytes serverBuf = 12;
|
bytes serverBuf = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SendMessageRequest {
|
message SendMessageRequest {
|
||||||
RoutingHead routingHead = 1;
|
RoutingHead routingHead = 1;
|
||||||
ContentHead contentHead = 2;
|
ContentHead contentHead = 2;
|
||||||
MessageBody msgBody = 3;
|
MessageBody msgBody = 3;
|
||||||
int32 msgSeq = 4;
|
int32 msgSeq = 4;
|
||||||
int32 msgRand = 5;
|
int32 msgRand = 5;
|
||||||
bytes syncCookie = 6;
|
bytes syncCookie = 6;
|
||||||
//MsgComm.AppShareInfo? appShare = 7;
|
//MsgComm.AppShareInfo? appShare = 7;
|
||||||
int32 msgVia = 8;
|
int32 msgVia = 8;
|
||||||
int32 dataStatist = 9;
|
int32 dataStatist = 9;
|
||||||
//MultiMsgAssist? multiMsgAssist = 10;
|
//MultiMsgAssist? multiMsgAssist = 10;
|
||||||
//PbInputNotifyInfo? inputNotifyInfo = 11;
|
//PbInputNotifyInfo? inputNotifyInfo = 11;
|
||||||
MsgCtrl msgCtrl = 12;
|
MsgCtrl msgCtrl = 12;
|
||||||
//ImReceipt.ReceiptReq? receiptReq = 13;
|
//ImReceipt.ReceiptReq? receiptReq = 13;
|
||||||
int32 multiSendSeq = 14;
|
int32 multiSendSeq = 14;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message RoutingHead {
|
message RoutingHead {
|
||||||
C2C c2c = 1;
|
C2C c2c = 1;
|
||||||
Grp grp = 2;
|
Grp grp = 2;
|
||||||
GrpTmp grpTmp = 3;
|
GrpTmp grpTmp = 3;
|
||||||
/*
|
/*
|
||||||
Dis dis = 4;
|
Dis dis = 4;
|
||||||
DisTmp disTmp = 5;
|
DisTmp disTmp = 5;
|
||||||
WPATmp? wpaTmp = 6;
|
WPATmp? wpaTmp = 6;
|
||||||
SecretFileHead? secretFile = 7;
|
SecretFileHead? secretFile = 7;
|
||||||
PublicPlat? publicPlat = 8;
|
PublicPlat? publicPlat = 8;
|
||||||
TransMsg? transMsg = 9;
|
TransMsg? transMsg = 9;
|
||||||
AddressListTmp? addressList = 10;
|
AddressListTmp? addressList = 10;
|
||||||
RichStatusTmp? richStatusTmp = 11;
|
RichStatusTmp? richStatusTmp = 11;
|
||||||
TransCmd? transCmd = 12;
|
TransCmd? transCmd = 12;
|
||||||
AccostTmp? accostTmp = 13;
|
AccostTmp? accostTmp = 13;
|
||||||
PubGroupTmp? pubGroupTmp = 14;
|
PubGroupTmp? pubGroupTmp = 14;
|
||||||
Trans0x211? trans0x211 = 15;
|
Trans0x211? trans0x211 = 15;
|
||||||
BusinessWPATmp? businessWpaTmp = 16;
|
BusinessWPATmp? businessWpaTmp = 16;
|
||||||
AuthTmp? authTmp = 17;
|
AuthTmp? authTmp = 17;
|
||||||
BsnsTmp? bsnsTmp = 18;
|
BsnsTmp? bsnsTmp = 18;
|
||||||
QQQueryBusinessTmp? qqQuerybusinessTmp = 19;
|
QQQueryBusinessTmp? qqQuerybusinessTmp = 19;
|
||||||
NearByDatingTmp? nearbyDatingTmp = 20;
|
NearByDatingTmp? nearbyDatingTmp = 20;
|
||||||
NearByAssistantTmp? nearbyAssistantTmp = 21;
|
NearByAssistantTmp? nearbyAssistantTmp = 21;
|
||||||
CommTmp? commTmp = 22;
|
CommTmp? commTmp = 22;
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
message C2C {
|
message C2C {
|
||||||
int64 toUin = 1;
|
int64 toUin = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Grp {
|
message Grp {
|
||||||
int64 groupCode = 1;
|
int64 groupCode = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GrpTmp {
|
message GrpTmp {
|
||||||
int64 groupUin = 1;
|
int64 groupUin = 1;
|
||||||
int64 toUin = 2;
|
int64 toUin = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message MsgCtrl {
|
message MsgCtrl {
|
||||||
int32 msgFlag = 1;
|
int32 msgFlag = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetMessageResponse {
|
message GetMessageResponse {
|
||||||
int32 result = 1;
|
int32 result = 1;
|
||||||
string errorMessage = 2;
|
string errorMessage = 2;
|
||||||
bytes syncCookie = 3;
|
bytes syncCookie = 3;
|
||||||
SyncFlag syncFlag = 4;
|
SyncFlag syncFlag = 4;
|
||||||
repeated UinPairMessage uinPairMsgs = 5;
|
repeated UinPairMessage uinPairMsgs = 5;
|
||||||
int64 bindUin = 6;
|
int64 bindUin = 6;
|
||||||
int32 msgRspType = 7;
|
int32 msgRspType = 7;
|
||||||
bytes pubAccountCookie = 8;
|
bytes pubAccountCookie = 8;
|
||||||
bool isPartialSync = 9;
|
bool isPartialSync = 9;
|
||||||
bytes msgCtrlBuf = 10;
|
bytes msgCtrlBuf = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PushMessagePacket {
|
message PushMessagePacket {
|
||||||
Message message = 1;
|
Message message = 1;
|
||||||
int32 svrip = 2;
|
int32 svrip = 2;
|
||||||
bytes pushToken = 3;
|
bytes pushToken = 3;
|
||||||
int32 pingFLag = 4;
|
int32 pingFLag = 4;
|
||||||
int32 generalFlag = 9;
|
int32 generalFlag = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
message UinPairMessage {
|
message UinPairMessage {
|
||||||
int32 lastReadTime = 1;
|
int32 lastReadTime = 1;
|
||||||
int64 peerUin = 2;
|
int64 peerUin = 2;
|
||||||
int32 msgCompleted = 3;
|
int32 msgCompleted = 3;
|
||||||
repeated Message messages = 4;
|
repeated Message messages = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Message {
|
message Message {
|
||||||
MessageHead head = 1;
|
MessageHead head = 1;
|
||||||
ContentHead content = 2;
|
ContentHead content = 2;
|
||||||
MessageBody body = 3;
|
MessageBody body = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message MessageBody {
|
message MessageBody {
|
||||||
RichText richText = 1;
|
RichText richText = 1;
|
||||||
bytes msgContent = 2;
|
bytes msgContent = 2;
|
||||||
bytes msgEncryptContent = 3;
|
bytes msgEncryptContent = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message RichText {
|
message RichText {
|
||||||
Attr attr = 1;
|
Attr attr = 1;
|
||||||
repeated Elem elems = 2;
|
repeated Elem elems = 2;
|
||||||
NotOnlineFile notOnlineFile = 3;
|
NotOnlineFile notOnlineFile = 3;
|
||||||
Ptt ptt = 4;
|
Ptt ptt = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Elem {
|
message Elem {
|
||||||
Text text = 1;
|
Text text = 1;
|
||||||
Face face = 2;
|
Face face = 2;
|
||||||
OnlineImage onlineImage = 3;
|
OnlineImage onlineImage = 3;
|
||||||
NotOnlineImage notOnlineImage = 4;
|
NotOnlineImage notOnlineImage = 4;
|
||||||
//TransElem transElemInfo = 5;
|
//TransElem transElemInfo = 5;
|
||||||
//MarketFace marketFace = 6;
|
//MarketFace marketFace = 6;
|
||||||
//ElemFlags elemFlags = 7;
|
//ElemFlags elemFlags = 7;
|
||||||
CustomFace customFace = 8;
|
CustomFace customFace = 8;
|
||||||
//ElemFlags2 elemFlags2 = 9;
|
//ElemFlags2 elemFlags2 = 9;
|
||||||
//FunFace funFace = 10;
|
//FunFace funFace = 10;
|
||||||
//SecretFileMsg secretFile = 11;
|
//SecretFileMsg secretFile = 11;
|
||||||
//RichMsg richMsg = 12;
|
RichMsg richMsg = 12;
|
||||||
GroupFile groupFile = 13;
|
GroupFile groupFile = 13;
|
||||||
//PubGroup pubGroup = 14;
|
//PubGroup pubGroup = 14;
|
||||||
//MarketTrans marketTrans = 15;
|
//MarketTrans marketTrans = 15;
|
||||||
ExtraInfo extraInfo = 16;
|
ExtraInfo extraInfo = 16;
|
||||||
//ShakeWindow? shakeWindow = 17;
|
//ShakeWindow? shakeWindow = 17;
|
||||||
//PubAccount? pubAccount = 18;
|
//PubAccount? pubAccount = 18;
|
||||||
VideoFile videoFile = 19;
|
VideoFile videoFile = 19;
|
||||||
//TipsInfo? tipsInfo = 20;
|
//TipsInfo? tipsInfo = 20;
|
||||||
AnonymousGroupMessage anonGroupMsg = 21;
|
AnonymousGroupMessage anonGroupMsg = 21;
|
||||||
//QQLiveOld? qqLiveOld = 22;
|
//QQLiveOld? qqLiveOld = 22;
|
||||||
//LifeOnlineAccount? lifeOnline = 23;
|
//LifeOnlineAccount? lifeOnline = 23;
|
||||||
//QQWalletMsg? qqwalletMsg = 24;
|
//QQWalletMsg? qqwalletMsg = 24;
|
||||||
//CrmElem? crmElem = 25;
|
//CrmElem? crmElem = 25;
|
||||||
//ConferenceTipsInfo? conferenceTipsInfo = 26;
|
//ConferenceTipsInfo? conferenceTipsInfo = 26;
|
||||||
//RedBagInfo? redbagInfo = 27;
|
//RedBagInfo? redbagInfo = 27;
|
||||||
//LowVersionTips? lowVersionTips = 28;
|
//LowVersionTips? lowVersionTips = 28;
|
||||||
//bytes bankcodeCtrlInfo = 29;
|
//bytes bankcodeCtrlInfo = 29;
|
||||||
//NearByMessageType? nearByMsg = 30;
|
//NearByMessageType? nearByMsg = 30;
|
||||||
CustomElem customElem = 31;
|
CustomElem customElem = 31;
|
||||||
//LocationInfo? locationInfo = 32;
|
//LocationInfo? locationInfo = 32;
|
||||||
//PubAccInfo? pubAccInfo = 33;
|
//PubAccInfo? pubAccInfo = 33;
|
||||||
//SmallEmoji? smallEmoji = 34;
|
//SmallEmoji? smallEmoji = 34;
|
||||||
//FSJMessageElem? fsjMsgElem = 35;
|
//FSJMessageElem? fsjMsgElem = 35;
|
||||||
//ArkAppElem? arkApp = 36;
|
//ArkAppElem? arkApp = 36;
|
||||||
//GeneralFlags? generalFlags = 37;
|
//GeneralFlags? generalFlags = 37;
|
||||||
//CustomFace? hcFlashPic = 38;
|
//CustomFace? hcFlashPic = 38;
|
||||||
//DeliverGiftMsg? deliverGiftMsg = 39;
|
//DeliverGiftMsg? deliverGiftMsg = 39;
|
||||||
//BitAppMsg? bitappMsg = 40;
|
//BitAppMsg? bitappMsg = 40;
|
||||||
//OpenQQData? openQqData = 41;
|
//OpenQQData? openQqData = 41;
|
||||||
//ApolloActMsg? apolloMsg = 42;
|
//ApolloActMsg? apolloMsg = 42;
|
||||||
//GroupPubAccountInfo? groupPubAccInfo = 43;
|
//GroupPubAccountInfo? groupPubAccInfo = 43;
|
||||||
//BlessingMessage? blessMsg = 44;
|
//BlessingMessage? blessMsg = 44;
|
||||||
SourceMsg srcMsg = 45;
|
SourceMsg srcMsg = 45;
|
||||||
//LolaMsg? lolaMsg = 46;
|
//LolaMsg? lolaMsg = 46;
|
||||||
//GroupBusinessMsg? groupBusinessMsg = 47;
|
//GroupBusinessMsg? groupBusinessMsg = 47;
|
||||||
//WorkflowNotifyMsg? msgWorkflowNotify = 48;
|
//WorkflowNotifyMsg? msgWorkflowNotify = 48;
|
||||||
//PatsElem? patElem = 49;
|
//PatsElem? patElem = 49;
|
||||||
//GroupPostElem? groupPostElem = 50;
|
//GroupPostElem? groupPostElem = 50;
|
||||||
//LightAppElem? lightApp = 51;
|
//LightAppElem? lightApp = 51;
|
||||||
//EIMInfo? eimInfo = 52;
|
//EIMInfo? eimInfo = 52;
|
||||||
//CommonElem? commonElem = 53;
|
//CommonElem? commonElem = 53;
|
||||||
|
}
|
||||||
|
|
||||||
|
message RichMsg {
|
||||||
|
bytes template1 = 1;
|
||||||
|
int32 serviceId = 2;
|
||||||
|
bytes msgResId = 3;
|
||||||
|
int32 rand = 4;
|
||||||
|
int32 seq = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CustomElem {
|
message CustomElem {
|
||||||
bytes desc = 1;
|
bytes desc = 1;
|
||||||
bytes data = 2;
|
bytes data = 2;
|
||||||
int32 enumType = 3;
|
int32 enumType = 3;
|
||||||
bytes ext = 4;
|
bytes ext = 4;
|
||||||
bytes sound = 5;
|
bytes sound = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Text {
|
message Text {
|
||||||
string str = 1;
|
string str = 1;
|
||||||
string link = 2;
|
string link = 2;
|
||||||
bytes attr6Buf = 3;
|
bytes attr6Buf = 3;
|
||||||
bytes attr7Buf = 4;
|
bytes attr7Buf = 4;
|
||||||
bytes buf = 11;
|
bytes buf = 11;
|
||||||
bytes pbReserve = 12;
|
bytes pbReserve = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Attr {
|
message Attr {
|
||||||
int32 codePage = 1;
|
int32 codePage = 1;
|
||||||
int32 time = 2;
|
int32 time = 2;
|
||||||
int32 random = 3;
|
int32 random = 3;
|
||||||
int32 color = 4;
|
int32 color = 4;
|
||||||
int32 size = 5;
|
int32 size = 5;
|
||||||
int32 effect = 6;
|
int32 effect = 6;
|
||||||
int32 charSet = 7;
|
int32 charSet = 7;
|
||||||
int32 pitchAndFamily = 8;
|
int32 pitchAndFamily = 8;
|
||||||
string fontName = 9;
|
string fontName = 9;
|
||||||
bytes reserveData = 10;
|
bytes reserveData = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Ptt {
|
message Ptt {
|
||||||
int32 fileType = 1;
|
int32 fileType = 1;
|
||||||
int64 srcUin = 2;
|
int64 srcUin = 2;
|
||||||
bytes fileUuid = 3;
|
bytes fileUuid = 3;
|
||||||
bytes fileMd5 = 4;
|
bytes fileMd5 = 4;
|
||||||
bytes fileName = 5;
|
bytes fileName = 5;
|
||||||
int32 fileSize = 6;
|
int32 fileSize = 6;
|
||||||
bytes reserve = 7;
|
bytes reserve = 7;
|
||||||
int32 fileId = 8;
|
int32 fileId = 8;
|
||||||
int32 serverIp = 9;
|
int32 serverIp = 9;
|
||||||
int32 serverPort = 10;
|
int32 serverPort = 10;
|
||||||
bool boolValid = 11;
|
bool boolValid = 11;
|
||||||
bytes signature = 12;
|
bytes signature = 12;
|
||||||
bytes shortcut = 13;
|
bytes shortcut = 13;
|
||||||
bytes fileKey = 14;
|
bytes fileKey = 14;
|
||||||
int32 magicPttIndex = 15;
|
int32 magicPttIndex = 15;
|
||||||
int32 voiceSwitch = 16;
|
int32 voiceSwitch = 16;
|
||||||
bytes pttUrl = 17;
|
bytes pttUrl = 17;
|
||||||
bytes groupFileKey = 18;
|
bytes groupFileKey = 18;
|
||||||
int32 time = 19;
|
int32 time = 19;
|
||||||
bytes downPara = 20;
|
bytes downPara = 20;
|
||||||
int32 format = 29;
|
int32 format = 29;
|
||||||
bytes pbReserve = 30;
|
bytes pbReserve = 30;
|
||||||
repeated bytes bytesPttUrls = 31;
|
repeated bytes bytesPttUrls = 31;
|
||||||
int32 downloadFlag = 32;
|
int32 downloadFlag = 32;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message OnlineImage {
|
message OnlineImage {
|
||||||
bytes guid = 1;
|
bytes guid = 1;
|
||||||
bytes filePath = 2;
|
bytes filePath = 2;
|
||||||
bytes oldVerSendFile = 3;
|
bytes oldVerSendFile = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message NotOnlineImage {
|
message NotOnlineImage {
|
||||||
string filePath = 1;
|
string filePath = 1;
|
||||||
int32 fileLen = 2;
|
int32 fileLen = 2;
|
||||||
string downloadPath = 3;
|
string downloadPath = 3;
|
||||||
bytes oldVerSendFile = 4;
|
bytes oldVerSendFile = 4;
|
||||||
int32 imgType = 5;
|
int32 imgType = 5;
|
||||||
bytes previewsImage = 6;
|
bytes previewsImage = 6;
|
||||||
bytes picMd5 = 7;
|
bytes picMd5 = 7;
|
||||||
int32 picHeight = 8;
|
int32 picHeight = 8;
|
||||||
int32 picWidth = 9;
|
int32 picWidth = 9;
|
||||||
string resId = 10;
|
string resId = 10;
|
||||||
bytes flag = 11;
|
bytes flag = 11;
|
||||||
string thumbUrl = 12;
|
string thumbUrl = 12;
|
||||||
int32 original = 13;
|
int32 original = 13;
|
||||||
string bigUrl = 14;
|
string bigUrl = 14;
|
||||||
string origUrl = 15;
|
string origUrl = 15;
|
||||||
int32 bizType = 16;
|
int32 bizType = 16;
|
||||||
int32 result = 17;
|
int32 result = 17;
|
||||||
int32 index = 18;
|
int32 index = 18;
|
||||||
bytes opFaceBuf = 19;
|
bytes opFaceBuf = 19;
|
||||||
bool oldPicMd5 = 20;
|
bool oldPicMd5 = 20;
|
||||||
int32 thumbWidth = 21;
|
int32 thumbWidth = 21;
|
||||||
int32 thumbHeight = 22;
|
int32 thumbHeight = 22;
|
||||||
int32 fileId = 23;
|
int32 fileId = 23;
|
||||||
int32 showLen = 24;
|
int32 showLen = 24;
|
||||||
int32 downloadLen = 25;
|
int32 downloadLen = 25;
|
||||||
bytes pbReserve = 29;
|
bytes pbReserve = 29;
|
||||||
}
|
}
|
||||||
|
|
||||||
message NotOnlineFile {
|
message NotOnlineFile {
|
||||||
int32 fileType = 1;
|
int32 fileType = 1;
|
||||||
bytes sig = 2;
|
bytes sig = 2;
|
||||||
bytes fileUuid = 3;
|
bytes fileUuid = 3;
|
||||||
bytes fileMd5 = 4;
|
bytes fileMd5 = 4;
|
||||||
bytes fileName = 5;
|
bytes fileName = 5;
|
||||||
int64 fileSize = 6;
|
int64 fileSize = 6;
|
||||||
bytes note = 7;
|
bytes note = 7;
|
||||||
int32 reserved = 8;
|
int32 reserved = 8;
|
||||||
int32 subcmd = 9;
|
int32 subcmd = 9;
|
||||||
int32 microCloud = 10;
|
int32 microCloud = 10;
|
||||||
repeated bytes bytesFileUrls = 11;
|
repeated bytes bytesFileUrls = 11;
|
||||||
int32 downloadFlag = 12;
|
int32 downloadFlag = 12;
|
||||||
int32 dangerEvel = 50;
|
int32 dangerEvel = 50;
|
||||||
int32 lifeTime = 51;
|
int32 lifeTime = 51;
|
||||||
int32 uploadTime = 52;
|
int32 uploadTime = 52;
|
||||||
int32 absFileType = 53;
|
int32 absFileType = 53;
|
||||||
int32 clientType = 54;
|
int32 clientType = 54;
|
||||||
int32 expireTime = 55;
|
int32 expireTime = 55;
|
||||||
bytes pbReserve = 56;
|
bytes pbReserve = 56;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ExtraInfo {
|
message ExtraInfo {
|
||||||
bytes nick = 1;
|
bytes nick = 1;
|
||||||
bytes groupCard = 2;
|
bytes groupCard = 2;
|
||||||
int32 level = 3;
|
int32 level = 3;
|
||||||
int32 flags = 4;
|
int32 flags = 4;
|
||||||
int32 groupMask = 5;
|
int32 groupMask = 5;
|
||||||
int32 msgTailId = 6;
|
int32 msgTailId = 6;
|
||||||
bytes senderTitle = 7;
|
bytes senderTitle = 7;
|
||||||
bytes apnsTips = 8;
|
bytes apnsTips = 8;
|
||||||
int64 uin = 9;
|
int64 uin = 9;
|
||||||
int32 msgStateFlag = 10;
|
int32 msgStateFlag = 10;
|
||||||
int32 apnsSoundType = 11;
|
int32 apnsSoundType = 11;
|
||||||
int32 newGroupFlag = 12;
|
int32 newGroupFlag = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GroupFile {
|
message GroupFile {
|
||||||
bytes filename = 1;
|
bytes filename = 1;
|
||||||
int64 fileSize = 2;
|
int64 fileSize = 2;
|
||||||
bytes fileId = 3;
|
bytes fileId = 3;
|
||||||
bytes batchId = 4;
|
bytes batchId = 4;
|
||||||
bytes fileKey = 5;
|
bytes fileKey = 5;
|
||||||
bytes mark = 6;
|
bytes mark = 6;
|
||||||
int64 sequence = 7;
|
int64 sequence = 7;
|
||||||
bytes batchItemId = 8;
|
bytes batchItemId = 8;
|
||||||
int32 feedMsgTime = 9;
|
int32 feedMsgTime = 9;
|
||||||
bytes pbReserve = 10;
|
bytes pbReserve = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AnonymousGroupMessage {
|
message AnonymousGroupMessage {
|
||||||
int32 flags = 1;
|
int32 flags = 1;
|
||||||
bytes anonId = 2;
|
bytes anonId = 2;
|
||||||
bytes anonNick = 3;
|
bytes anonNick = 3;
|
||||||
int32 headPortrait = 4;
|
int32 headPortrait = 4;
|
||||||
int32 expireTime = 5;
|
int32 expireTime = 5;
|
||||||
int32 bubbleId = 6;
|
int32 bubbleId = 6;
|
||||||
bytes rankColor = 7;
|
bytes rankColor = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message VideoFile {
|
message VideoFile {
|
||||||
bytes fileUuid = 1;
|
bytes fileUuid = 1;
|
||||||
bytes fileMd5 = 2;
|
bytes fileMd5 = 2;
|
||||||
bytes fileName = 3;
|
bytes fileName = 3;
|
||||||
int32 fileFormat = 4;
|
int32 fileFormat = 4;
|
||||||
int32 fileTime = 5;
|
int32 fileTime = 5;
|
||||||
int32 fileSize = 6;
|
int32 fileSize = 6;
|
||||||
int32 thumbWidth = 7;
|
int32 thumbWidth = 7;
|
||||||
int32 thumbHeight = 8;
|
int32 thumbHeight = 8;
|
||||||
bytes thumbFileMd5 = 9;
|
bytes thumbFileMd5 = 9;
|
||||||
bytes source = 10;
|
bytes source = 10;
|
||||||
int32 thumbFileSize = 11;
|
int32 thumbFileSize = 11;
|
||||||
int32 busiType = 12;
|
int32 busiType = 12;
|
||||||
int32 fromChatType = 13;
|
int32 fromChatType = 13;
|
||||||
int32 toChatType = 14;
|
int32 toChatType = 14;
|
||||||
bool boolSupportProgressive = 15;
|
bool boolSupportProgressive = 15;
|
||||||
int32 fileWidth = 16;
|
int32 fileWidth = 16;
|
||||||
int32 fileHeight = 17;
|
int32 fileHeight = 17;
|
||||||
int32 subBusiType = 18;
|
int32 subBusiType = 18;
|
||||||
int32 videoAttr = 19;
|
int32 videoAttr = 19;
|
||||||
repeated bytes bytesThumbFileUrls = 20;
|
repeated bytes bytesThumbFileUrls = 20;
|
||||||
repeated bytes bytesVideoFileUrls = 21;
|
repeated bytes bytesVideoFileUrls = 21;
|
||||||
int32 thumbDownloadFlag = 22;
|
int32 thumbDownloadFlag = 22;
|
||||||
int32 videoDownloadFlag = 23;
|
int32 videoDownloadFlag = 23;
|
||||||
bytes pbReserve = 24;
|
bytes pbReserve = 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SourceMsg {
|
message SourceMsg {
|
||||||
repeated int32 origSeqs = 1;
|
repeated int32 origSeqs = 1;
|
||||||
int64 senderUin = 2;
|
int64 senderUin = 2;
|
||||||
int32 time = 3;
|
int32 time = 3;
|
||||||
int32 flag = 4;
|
int32 flag = 4;
|
||||||
repeated Elem elems = 5;
|
repeated Elem elems = 5;
|
||||||
int32 type = 6;
|
int32 type = 6;
|
||||||
bytes richMsg = 7;
|
bytes richMsg = 7;
|
||||||
bytes pbReserve = 8;
|
bytes pbReserve = 8;
|
||||||
bytes srcMsg = 9;
|
bytes srcMsg = 9;
|
||||||
int64 toUin = 10;
|
int64 toUin = 10;
|
||||||
bytes troopName = 11;
|
bytes troopName = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Face {
|
message Face {
|
||||||
int32 index = 1;
|
int32 index = 1;
|
||||||
bytes old = 2;
|
bytes old = 2;
|
||||||
bytes buf = 11;
|
bytes buf = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CustomFace {
|
message CustomFace {
|
||||||
bytes guid = 1;
|
bytes guid = 1;
|
||||||
string filePath = 2;
|
string filePath = 2;
|
||||||
string shortcut = 3;
|
string shortcut = 3;
|
||||||
bytes buffer = 4;
|
bytes buffer = 4;
|
||||||
bytes flag = 5;
|
bytes flag = 5;
|
||||||
bytes oldData = 6;
|
bytes oldData = 6;
|
||||||
int32 fileId = 7;
|
int32 fileId = 7;
|
||||||
int32 serverIp = 8;
|
int32 serverIp = 8;
|
||||||
int32 serverPort = 9;
|
int32 serverPort = 9;
|
||||||
int32 fileType = 10;
|
int32 fileType = 10;
|
||||||
bytes signature = 11;
|
bytes signature = 11;
|
||||||
int32 useful = 12;
|
int32 useful = 12;
|
||||||
bytes md5 = 13;
|
bytes md5 = 13;
|
||||||
string thumbUrl = 14;
|
string thumbUrl = 14;
|
||||||
string bigUrl = 15;
|
string bigUrl = 15;
|
||||||
string origUrl = 16;
|
string origUrl = 16;
|
||||||
int32 bizType = 17;
|
int32 bizType = 17;
|
||||||
int32 repeatIndex = 18;
|
int32 repeatIndex = 18;
|
||||||
int32 repeatImage = 19;
|
int32 repeatImage = 19;
|
||||||
int32 imageType = 20;
|
int32 imageType = 20;
|
||||||
int32 index = 21;
|
int32 index = 21;
|
||||||
int32 width = 22;
|
int32 width = 22;
|
||||||
int32 height = 23;
|
int32 height = 23;
|
||||||
int32 source = 24;
|
int32 source = 24;
|
||||||
int32 size = 25;
|
int32 size = 25;
|
||||||
int32 origin = 26;
|
int32 origin = 26;
|
||||||
int32 thumbWidth = 27;
|
int32 thumbWidth = 27;
|
||||||
int32 thumbHeight = 28;
|
int32 thumbHeight = 28;
|
||||||
int32 showLen = 29;
|
int32 showLen = 29;
|
||||||
int32 downloadLen = 30;
|
int32 downloadLen = 30;
|
||||||
string _400Url = 31;
|
string _400Url = 31;
|
||||||
int32 _400Width = 32;
|
int32 _400Width = 32;
|
||||||
int32 _400Height = 33;
|
int32 _400Height = 33;
|
||||||
bytes pbReserve = 34;
|
bytes pbReserve = 34;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ContentHead {
|
message ContentHead {
|
||||||
int32 pkgNum = 1;
|
int32 pkgNum = 1;
|
||||||
int32 pkgIndex = 2;
|
int32 pkgIndex = 2;
|
||||||
int32 divSeq = 3;
|
int32 divSeq = 3;
|
||||||
int32 autoReply = 4;
|
int32 autoReply = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message MessageHead {
|
message MessageHead {
|
||||||
int64 fromUin = 1;
|
int64 fromUin = 1;
|
||||||
int64 toUin = 2;
|
int64 toUin = 2;
|
||||||
int32 msgType = 3;
|
int32 msgType = 3;
|
||||||
int32 c2cCmd = 4;
|
int32 c2cCmd = 4;
|
||||||
int32 msgSeq = 5;
|
int32 msgSeq = 5;
|
||||||
int32 msgTime = 6;
|
int32 msgTime = 6;
|
||||||
int64 msgUid = 7;
|
int64 msgUid = 7;
|
||||||
C2CTempMessageHead c2cTmpMsgHead = 8;
|
C2CTempMessageHead c2cTmpMsgHead = 8;
|
||||||
GroupInfo groupInfo = 9;
|
GroupInfo groupInfo = 9;
|
||||||
int32 fromAppid = 10;
|
int32 fromAppid = 10;
|
||||||
int32 fromInstid = 11;
|
int32 fromInstid = 11;
|
||||||
int32 userActive = 12;
|
int32 userActive = 12;
|
||||||
DiscussInfo discussInfo = 13;
|
DiscussInfo discussInfo = 13;
|
||||||
string fromNick = 14;
|
string fromNick = 14;
|
||||||
int64 authUin = 15;
|
int64 authUin = 15;
|
||||||
string authNick = 16;
|
string authNick = 16;
|
||||||
int32 msgFlag = 17;
|
int32 msgFlag = 17;
|
||||||
string authRemark = 18;
|
string authRemark = 18;
|
||||||
string groupName = 19;
|
string groupName = 19;
|
||||||
MutilTransHead mutiltransHead = 20;
|
MutilTransHead mutiltransHead = 20;
|
||||||
InstCtrl msgInstCtrl = 21;
|
InstCtrl msgInstCtrl = 21;
|
||||||
int32 publicAccountGroupSendFlag = 22;
|
int32 publicAccountGroupSendFlag = 22;
|
||||||
int32 wseqInC2cMsghead = 23;
|
int32 wseqInC2cMsghead = 23;
|
||||||
int64 cpid = 24;
|
int64 cpid = 24;
|
||||||
ExtGroupKeyInfo extGroupKeyInfo = 25;
|
ExtGroupKeyInfo extGroupKeyInfo = 25;
|
||||||
string multiCompatibleText = 26;
|
string multiCompatibleText = 26;
|
||||||
int32 authSex = 27;
|
int32 authSex = 27;
|
||||||
bool isSrcMsg = 28;
|
bool isSrcMsg = 28;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message GroupInfo {
|
message GroupInfo {
|
||||||
int64 groupCode = 1;
|
int64 groupCode = 1;
|
||||||
int32 groupType = 2;
|
int32 groupType = 2;
|
||||||
int64 groupInfoSeq = 3;
|
int64 groupInfoSeq = 3;
|
||||||
string groupCard = 4;
|
string groupCard = 4;
|
||||||
bytes groupRank = 5;
|
bytes groupRank = 5;
|
||||||
int32 groupLevel = 6;
|
int32 groupLevel = 6;
|
||||||
int32 groupCardType = 7;
|
int32 groupCardType = 7;
|
||||||
bytes groupName = 8;
|
bytes groupName = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
message DiscussInfo {
|
message DiscussInfo {
|
||||||
int64 discussUin = 1;
|
int64 discussUin = 1;
|
||||||
int32 discussType = 2;
|
int32 discussType = 2;
|
||||||
int64 discussInfoSeq = 3;
|
int64 discussInfoSeq = 3;
|
||||||
bytes discussRemark = 4;
|
bytes discussRemark = 4;
|
||||||
bytes discussName = 5;
|
bytes discussName = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message MutilTransHead{
|
message MutilTransHead{
|
||||||
int32 status = 1;
|
int32 status = 1;
|
||||||
int32 msgId = 2;
|
int32 msgId = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message C2CTempMessageHead {
|
message C2CTempMessageHead {
|
||||||
int32 c2cType = 1;
|
int32 c2cType = 1;
|
||||||
int32 serviceType = 2;
|
int32 serviceType = 2;
|
||||||
int64 groupUin = 3;
|
int64 groupUin = 3;
|
||||||
int64 groupCode = 4;
|
int64 groupCode = 4;
|
||||||
bytes sig = 5;
|
bytes sig = 5;
|
||||||
int32 sigType = 6;
|
int32 sigType = 6;
|
||||||
string fromPhone = 7;
|
string fromPhone = 7;
|
||||||
string toPhone = 8;
|
string toPhone = 8;
|
||||||
int32 lockDisplay = 9;
|
int32 lockDisplay = 9;
|
||||||
int32 directionFlag = 10;
|
int32 directionFlag = 10;
|
||||||
bytes reserved = 11;
|
bytes reserved = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
message InstCtrl {
|
message InstCtrl {
|
||||||
repeated InstInfo msgSendToInst = 1;
|
repeated InstInfo msgSendToInst = 1;
|
||||||
repeated InstInfo msgExcludeInst = 2;
|
repeated InstInfo msgExcludeInst = 2;
|
||||||
InstInfo msgFromInst = 3;
|
InstInfo msgFromInst = 3;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message InstInfo {
|
message InstInfo {
|
||||||
int32 apppid = 1;
|
int32 apppid = 1;
|
||||||
int32 instid = 2;
|
int32 instid = 2;
|
||||||
int32 platform = 3;
|
int32 platform = 3;
|
||||||
int32 enumDeviceType = 10;
|
int32 enumDeviceType = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ExtGroupKeyInfo {
|
message ExtGroupKeyInfo {
|
||||||
int32 curMaxSeq = 1;
|
int32 curMaxSeq = 1;
|
||||||
int64 curTime = 2;
|
int64 curTime = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SyncCookie {
|
message SyncCookie {
|
||||||
int64 time1 = 1;
|
int64 time1 = 1;
|
||||||
int64 time = 2;
|
int64 time = 2;
|
||||||
int64 ran1 = 3;
|
int64 ran1 = 3;
|
||||||
int64 ran2 = 4;
|
int64 ran2 = 4;
|
||||||
int64 const1 = 5;
|
int64 const1 = 5;
|
||||||
int64 const2 = 11;
|
int64 const2 = 11;
|
||||||
int64 const3 = 12;
|
int64 const3 = 12;
|
||||||
int64 lastSyncTime = 13;
|
int64 lastSyncTime = 13;
|
||||||
int64 const4 = 14;
|
int64 const4 = 14;
|
||||||
}
|
}
|
||||||
|
|
||||||
message TransMsgInfo {
|
message TransMsgInfo {
|
||||||
int64 fromUin = 1;
|
int64 fromUin = 1;
|
||||||
int64 toUin = 2;
|
int64 toUin = 2;
|
||||||
int32 msgType = 3;
|
int32 msgType = 3;
|
||||||
int32 msgSubtype = 4;
|
int32 msgSubtype = 4;
|
||||||
int32 msgSeq = 5;
|
int32 msgSeq = 5;
|
||||||
int64 msgUid = 6;
|
int64 msgUid = 6;
|
||||||
int32 msgTime = 7;
|
int32 msgTime = 7;
|
||||||
int32 realMsgTime = 8;
|
int32 realMsgTime = 8;
|
||||||
string nickName = 9;
|
string nickName = 9;
|
||||||
bytes msgData = 10;
|
bytes msgData = 10;
|
||||||
int32 svrIp = 11;
|
int32 svrIp = 11;
|
||||||
ExtGroupKeyInfo extGroupKeyInfo = 12;
|
ExtGroupKeyInfo extGroupKeyInfo = 12;
|
||||||
int32 generalFlag = 17;
|
int32 generalFlag = 17;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum SyncFlag {
|
enum SyncFlag {
|
||||||
START = 0;
|
START = 0;
|
||||||
CONTINUME = 1;
|
CONTINUME = 1;
|
||||||
STOP = 2;
|
STOP = 2;
|
||||||
}
|
}
|
899
client/pb/multimsg/multimsg.pb.go
Normal file
899
client/pb/multimsg/multimsg.pb.go
Normal file
@ -0,0 +1,899 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.25.0
|
||||||
|
// protoc v3.11.4
|
||||||
|
// source: multimsg.proto
|
||||||
|
|
||||||
|
package multimsg
|
||||||
|
|
||||||
|
import (
|
||||||
|
proto "github.com/golang/protobuf/proto"
|
||||||
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||||
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||||
|
reflect "reflect"
|
||||||
|
sync "sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
// Verify that this generated code is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||||
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||||
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||||
|
)
|
||||||
|
|
||||||
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
||||||
|
// of the legacy proto package is being used.
|
||||||
|
const _ = proto.ProtoPackageIsVersion4
|
||||||
|
|
||||||
|
type ExternMsg struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
ChannelType int32 `protobuf:"varint,1,opt,name=channelType,proto3" json:"channelType,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ExternMsg) Reset() {
|
||||||
|
*x = ExternMsg{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ExternMsg) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ExternMsg) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ExternMsg) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[0]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use ExternMsg.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ExternMsg) Descriptor() ([]byte, []int) {
|
||||||
|
return file_multimsg_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ExternMsg) GetChannelType() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.ChannelType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
type MultiMsgApplyDownReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
MsgResid []byte `protobuf:"bytes,1,opt,name=msgResid,proto3" json:"msgResid,omitempty"`
|
||||||
|
MsgType int32 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"`
|
||||||
|
SrcUin int64 `protobuf:"varint,3,opt,name=srcUin,proto3" json:"srcUin,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownReq) Reset() {
|
||||||
|
*x = MultiMsgApplyDownReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MultiMsgApplyDownReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[1]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use MultiMsgApplyDownReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*MultiMsgApplyDownReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_multimsg_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownReq) GetMsgResid() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgResid
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownReq) GetMsgType() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownReq) GetSrcUin() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.SrcUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
type MultiMsgApplyDownRsp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Result int32 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
|
||||||
|
ThumbDownPara []byte `protobuf:"bytes,2,opt,name=thumbDownPara,proto3" json:"thumbDownPara,omitempty"`
|
||||||
|
MsgKey []byte `protobuf:"bytes,3,opt,name=msgKey,proto3" json:"msgKey,omitempty"`
|
||||||
|
Uint32DownIp []int32 `protobuf:"varint,4,rep,packed,name=uint32DownIp,proto3" json:"uint32DownIp,omitempty"`
|
||||||
|
Uint32DownPort []int32 `protobuf:"varint,5,rep,packed,name=uint32DownPort,proto3" json:"uint32DownPort,omitempty"`
|
||||||
|
MsgResid []byte `protobuf:"bytes,6,opt,name=msgResid,proto3" json:"msgResid,omitempty"`
|
||||||
|
MsgExternInfo *ExternMsg `protobuf:"bytes,7,opt,name=msgExternInfo,proto3" json:"msgExternInfo,omitempty"`
|
||||||
|
BytesDownIpV6 [][]byte `protobuf:"bytes,8,rep,name=bytesDownIpV6,proto3" json:"bytesDownIpV6,omitempty"`
|
||||||
|
Uint32DownV6Port []int32 `protobuf:"varint,9,rep,packed,name=uint32DownV6Port,proto3" json:"uint32DownV6Port,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) Reset() {
|
||||||
|
*x = MultiMsgApplyDownRsp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MultiMsgApplyDownRsp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[2]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use MultiMsgApplyDownRsp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*MultiMsgApplyDownRsp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_multimsg_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) GetResult() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) GetThumbDownPara() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.ThumbDownPara
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) GetMsgKey() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgKey
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) GetUint32DownIp() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uint32DownIp
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) GetUint32DownPort() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uint32DownPort
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) GetMsgResid() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgResid
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) GetMsgExternInfo() *ExternMsg {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgExternInfo
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) GetBytesDownIpV6() [][]byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.BytesDownIpV6
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyDownRsp) GetUint32DownV6Port() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uint32DownV6Port
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type MultiMsgApplyUpReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
DstUin int64 `protobuf:"varint,1,opt,name=dstUin,proto3" json:"dstUin,omitempty"`
|
||||||
|
MsgSize int64 `protobuf:"varint,2,opt,name=msgSize,proto3" json:"msgSize,omitempty"`
|
||||||
|
MsgMd5 []byte `protobuf:"bytes,3,opt,name=msgMd5,proto3" json:"msgMd5,omitempty"`
|
||||||
|
MsgType int32 `protobuf:"varint,4,opt,name=msgType,proto3" json:"msgType,omitempty"`
|
||||||
|
ApplyId int32 `protobuf:"varint,5,opt,name=applyId,proto3" json:"applyId,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpReq) Reset() {
|
||||||
|
*x = MultiMsgApplyUpReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MultiMsgApplyUpReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[3]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use MultiMsgApplyUpReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*MultiMsgApplyUpReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_multimsg_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpReq) GetDstUin() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.DstUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpReq) GetMsgSize() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgSize
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpReq) GetMsgMd5() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgMd5
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpReq) GetMsgType() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpReq) GetApplyId() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.ApplyId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
type MultiMsgApplyUpRsp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Result int32 `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
|
||||||
|
MsgResid string `protobuf:"bytes,2,opt,name=msgResid,proto3" json:"msgResid,omitempty"`
|
||||||
|
MsgUkey []byte `protobuf:"bytes,3,opt,name=msgUkey,proto3" json:"msgUkey,omitempty"`
|
||||||
|
Uint32UpIp []int32 `protobuf:"varint,4,rep,packed,name=uint32UpIp,proto3" json:"uint32UpIp,omitempty"`
|
||||||
|
Uint32UpPort []int32 `protobuf:"varint,5,rep,packed,name=uint32UpPort,proto3" json:"uint32UpPort,omitempty"`
|
||||||
|
BlockSize int64 `protobuf:"varint,6,opt,name=blockSize,proto3" json:"blockSize,omitempty"`
|
||||||
|
UpOffset int64 `protobuf:"varint,7,opt,name=upOffset,proto3" json:"upOffset,omitempty"`
|
||||||
|
ApplyId int32 `protobuf:"varint,8,opt,name=applyId,proto3" json:"applyId,omitempty"`
|
||||||
|
MsgKey []byte `protobuf:"bytes,9,opt,name=msgKey,proto3" json:"msgKey,omitempty"`
|
||||||
|
MsgSig []byte `protobuf:"bytes,10,opt,name=msgSig,proto3" json:"msgSig,omitempty"`
|
||||||
|
MsgExternInfo *ExternMsg `protobuf:"bytes,11,opt,name=msgExternInfo,proto3" json:"msgExternInfo,omitempty"`
|
||||||
|
BytesUpIpV6 [][]byte `protobuf:"bytes,12,rep,name=bytesUpIpV6,proto3" json:"bytesUpIpV6,omitempty"`
|
||||||
|
Uint32UpV6Port []int32 `protobuf:"varint,13,rep,packed,name=uint32UpV6Port,proto3" json:"uint32UpV6Port,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) Reset() {
|
||||||
|
*x = MultiMsgApplyUpRsp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[4]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MultiMsgApplyUpRsp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[4]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use MultiMsgApplyUpRsp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*MultiMsgApplyUpRsp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_multimsg_proto_rawDescGZIP(), []int{4}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetResult() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetMsgResid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgResid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetMsgUkey() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgUkey
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetUint32UpIp() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uint32UpIp
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetUint32UpPort() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uint32UpPort
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetBlockSize() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.BlockSize
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetUpOffset() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.UpOffset
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetApplyId() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.ApplyId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetMsgKey() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgKey
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetMsgSig() []byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgSig
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetMsgExternInfo() *ExternMsg {
|
||||||
|
if x != nil {
|
||||||
|
return x.MsgExternInfo
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetBytesUpIpV6() [][]byte {
|
||||||
|
if x != nil {
|
||||||
|
return x.BytesUpIpV6
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiMsgApplyUpRsp) GetUint32UpV6Port() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uint32UpV6Port
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type ReqBody struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Subcmd int32 `protobuf:"varint,1,opt,name=subcmd,proto3" json:"subcmd,omitempty"`
|
||||||
|
TermType int32 `protobuf:"varint,2,opt,name=termType,proto3" json:"termType,omitempty"`
|
||||||
|
PlatformType int32 `protobuf:"varint,3,opt,name=platformType,proto3" json:"platformType,omitempty"`
|
||||||
|
NetType int32 `protobuf:"varint,4,opt,name=netType,proto3" json:"netType,omitempty"`
|
||||||
|
BuildVer string `protobuf:"bytes,5,opt,name=buildVer,proto3" json:"buildVer,omitempty"`
|
||||||
|
MultimsgApplyupReq []*MultiMsgApplyUpReq `protobuf:"bytes,6,rep,name=multimsgApplyupReq,proto3" json:"multimsgApplyupReq,omitempty"`
|
||||||
|
MultimsgApplydownReq []*MultiMsgApplyDownReq `protobuf:"bytes,7,rep,name=multimsgApplydownReq,proto3" json:"multimsgApplydownReq,omitempty"`
|
||||||
|
BuType int32 `protobuf:"varint,8,opt,name=buType,proto3" json:"buType,omitempty"`
|
||||||
|
ReqChannelType int32 `protobuf:"varint,9,opt,name=reqChannelType,proto3" json:"reqChannelType,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) Reset() {
|
||||||
|
*x = ReqBody{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[5]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*ReqBody) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *ReqBody) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[5]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use ReqBody.ProtoReflect.Descriptor instead.
|
||||||
|
func (*ReqBody) Descriptor() ([]byte, []int) {
|
||||||
|
return file_multimsg_proto_rawDescGZIP(), []int{5}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) GetSubcmd() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Subcmd
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) GetTermType() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.TermType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) GetPlatformType() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.PlatformType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) GetNetType() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.NetType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) GetBuildVer() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.BuildVer
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) GetMultimsgApplyupReq() []*MultiMsgApplyUpReq {
|
||||||
|
if x != nil {
|
||||||
|
return x.MultimsgApplyupReq
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) GetMultimsgApplydownReq() []*MultiMsgApplyDownReq {
|
||||||
|
if x != nil {
|
||||||
|
return x.MultimsgApplydownReq
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) GetBuType() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.BuType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) GetReqChannelType() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.ReqChannelType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
type RspBody struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Subcmd int32 `protobuf:"varint,1,opt,name=subcmd,proto3" json:"subcmd,omitempty"`
|
||||||
|
MultimsgApplyupRsp []*MultiMsgApplyUpRsp `protobuf:"bytes,2,rep,name=multimsgApplyupRsp,proto3" json:"multimsgApplyupRsp,omitempty"`
|
||||||
|
MultimsgApplydownRsp []*MultiMsgApplyDownRsp `protobuf:"bytes,3,rep,name=multimsgApplydownRsp,proto3" json:"multimsgApplydownRsp,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RspBody) Reset() {
|
||||||
|
*x = RspBody{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RspBody) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*RspBody) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *RspBody) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_multimsg_proto_msgTypes[6]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use RspBody.ProtoReflect.Descriptor instead.
|
||||||
|
func (*RspBody) Descriptor() ([]byte, []int) {
|
||||||
|
return file_multimsg_proto_rawDescGZIP(), []int{6}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RspBody) GetSubcmd() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Subcmd
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RspBody) GetMultimsgApplyupRsp() []*MultiMsgApplyUpRsp {
|
||||||
|
if x != nil {
|
||||||
|
return x.MultimsgApplyupRsp
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RspBody) GetMultimsgApplydownRsp() []*MultiMsgApplyDownRsp {
|
||||||
|
if x != nil {
|
||||||
|
return x.MultimsgApplydownRsp
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_multimsg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_multimsg_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x0e, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
|
0x22, 0x2d, 0x0a, 0x09, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x4d, 0x73, 0x67, 0x12, 0x20, 0x0a,
|
||||||
|
0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
|
||||||
|
0x28, 0x05, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x22,
|
||||||
|
0x64, 0x0a, 0x14, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79,
|
||||||
|
0x44, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x73, 0x67, 0x52, 0x65,
|
||||||
|
0x73, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6d, 0x73, 0x67, 0x52, 0x65,
|
||||||
|
0x73, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02,
|
||||||
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a,
|
||||||
|
0x06, 0x73, 0x72, 0x63, 0x55, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73,
|
||||||
|
0x72, 0x63, 0x55, 0x69, 0x6e, 0x22, 0xd8, 0x02, 0x0a, 0x14, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d,
|
||||||
|
0x73, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x44, 0x6f, 0x77, 0x6e, 0x52, 0x73, 0x70, 0x12, 0x16,
|
||||||
|
0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
|
||||||
|
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x74, 0x68, 0x75, 0x6d, 0x62, 0x44,
|
||||||
|
0x6f, 0x77, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x74,
|
||||||
|
0x68, 0x75, 0x6d, 0x62, 0x44, 0x6f, 0x77, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x12, 0x16, 0x0a, 0x06,
|
||||||
|
0x6d, 0x73, 0x67, 0x4b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6d, 0x73,
|
||||||
|
0x67, 0x4b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x44, 0x6f,
|
||||||
|
0x77, 0x6e, 0x49, 0x70, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74,
|
||||||
|
0x33, 0x32, 0x44, 0x6f, 0x77, 0x6e, 0x49, 0x70, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74,
|
||||||
|
0x33, 0x32, 0x44, 0x6f, 0x77, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x05,
|
||||||
|
0x52, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x44, 0x6f, 0x77, 0x6e, 0x50, 0x6f, 0x72, 0x74,
|
||||||
|
0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01,
|
||||||
|
0x28, 0x0c, 0x52, 0x08, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x0d,
|
||||||
|
0x6d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x07, 0x20,
|
||||||
|
0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x4d, 0x73, 0x67, 0x52,
|
||||||
|
0x0d, 0x6d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24,
|
||||||
|
0x0a, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x49, 0x70, 0x56, 0x36, 0x18,
|
||||||
|
0x08, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0d, 0x62, 0x79, 0x74, 0x65, 0x73, 0x44, 0x6f, 0x77, 0x6e,
|
||||||
|
0x49, 0x70, 0x56, 0x36, 0x12, 0x2a, 0x0a, 0x10, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x44, 0x6f,
|
||||||
|
0x77, 0x6e, 0x56, 0x36, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x09, 0x20, 0x03, 0x28, 0x05, 0x52, 0x10,
|
||||||
|
0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x44, 0x6f, 0x77, 0x6e, 0x56, 0x36, 0x50, 0x6f, 0x72, 0x74,
|
||||||
|
0x22, 0x92, 0x01, 0x0a, 0x12, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x73, 0x67, 0x41, 0x70, 0x70,
|
||||||
|
0x6c, 0x79, 0x55, 0x70, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x73, 0x74, 0x55, 0x69,
|
||||||
|
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x64, 0x73, 0x74, 0x55, 0x69, 0x6e, 0x12,
|
||||||
|
0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
|
||||||
|
0x52, 0x07, 0x6d, 0x73, 0x67, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x73, 0x67,
|
||||||
|
0x4d, 0x64, 0x35, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6d, 0x73, 0x67, 0x4d, 0x64,
|
||||||
|
0x35, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01,
|
||||||
|
0x28, 0x05, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61,
|
||||||
|
0x70, 0x70, 0x6c, 0x79, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, 0x70,
|
||||||
|
0x70, 0x6c, 0x79, 0x49, 0x64, 0x22, 0xa6, 0x03, 0x0a, 0x12, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d,
|
||||||
|
0x73, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x55, 0x70, 0x52, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06,
|
||||||
|
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, 0x65,
|
||||||
|
0x73, 0x75, 0x6c, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x69, 0x64,
|
||||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x69, 0x64,
|
||||||
|
0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x55, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||||||
|
0x0c, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x55, 0x6b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x69,
|
||||||
|
0x6e, 0x74, 0x33, 0x32, 0x55, 0x70, 0x49, 0x70, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0a,
|
||||||
|
0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x55, 0x70, 0x49, 0x70, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x69,
|
||||||
|
0x6e, 0x74, 0x33, 0x32, 0x55, 0x70, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x05,
|
||||||
|
0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x55, 0x70, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1c,
|
||||||
|
0x0a, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
|
||||||
|
0x03, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
||||||
|
0x75, 0x70, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
|
||||||
|
0x75, 0x70, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x6c,
|
||||||
|
0x79, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x61, 0x70, 0x70, 0x6c, 0x79,
|
||||||
|
0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x73, 0x67, 0x4b, 0x65, 0x79, 0x18, 0x09, 0x20, 0x01,
|
||||||
|
0x28, 0x0c, 0x52, 0x06, 0x6d, 0x73, 0x67, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x73,
|
||||||
|
0x67, 0x53, 0x69, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6d, 0x73, 0x67, 0x53,
|
||||||
|
0x69, 0x67, 0x12, 0x30, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x49,
|
||||||
|
0x6e, 0x66, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x45, 0x78, 0x74, 0x65,
|
||||||
|
0x72, 0x6e, 0x4d, 0x73, 0x67, 0x52, 0x0d, 0x6d, 0x73, 0x67, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e,
|
||||||
|
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x55, 0x70, 0x49,
|
||||||
|
0x70, 0x56, 0x36, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73,
|
||||||
|
0x55, 0x70, 0x49, 0x70, 0x56, 0x36, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32,
|
||||||
|
0x55, 0x70, 0x56, 0x36, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0e,
|
||||||
|
0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x55, 0x70, 0x56, 0x36, 0x50, 0x6f, 0x72, 0x74, 0x22, 0xe7,
|
||||||
|
0x02, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75,
|
||||||
|
0x62, 0x63, 0x6d, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x75, 0x62, 0x63,
|
||||||
|
0x6d, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02,
|
||||||
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x74, 0x65, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22,
|
||||||
|
0x0a, 0x0c, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03,
|
||||||
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79,
|
||||||
|
0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20,
|
||||||
|
0x01, 0x28, 0x05, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
||||||
|
0x62, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
||||||
|
0x62, 0x75, 0x69, 0x6c, 0x64, 0x56, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x12, 0x6d, 0x75, 0x6c, 0x74,
|
||||||
|
0x69, 0x6d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x75, 0x70, 0x52, 0x65, 0x71, 0x18, 0x06,
|
||||||
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x73, 0x67, 0x41,
|
||||||
|
0x70, 0x70, 0x6c, 0x79, 0x55, 0x70, 0x52, 0x65, 0x71, 0x52, 0x12, 0x6d, 0x75, 0x6c, 0x74, 0x69,
|
||||||
|
0x6d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x75, 0x70, 0x52, 0x65, 0x71, 0x12, 0x49, 0x0a,
|
||||||
|
0x14, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x64, 0x6f,
|
||||||
|
0x77, 0x6e, 0x52, 0x65, 0x71, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x4d, 0x75,
|
||||||
|
0x6c, 0x74, 0x69, 0x4d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x44, 0x6f, 0x77, 0x6e, 0x52,
|
||||||
|
0x65, 0x71, 0x52, 0x14, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x6c,
|
||||||
|
0x79, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x54, 0x79,
|
||||||
|
0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x75, 0x54, 0x79, 0x70, 0x65,
|
||||||
|
0x12, 0x26, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x54, 0x79,
|
||||||
|
0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x72, 0x65, 0x71, 0x43, 0x68, 0x61,
|
||||||
|
0x6e, 0x6e, 0x65, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x07, 0x52, 0x73, 0x70,
|
||||||
|
0x42, 0x6f, 0x64, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75, 0x62, 0x63, 0x6d, 0x64, 0x18, 0x01,
|
||||||
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x75, 0x62, 0x63, 0x6d, 0x64, 0x12, 0x43, 0x0a, 0x12,
|
||||||
|
0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x75, 0x70, 0x52,
|
||||||
|
0x73, 0x70, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69,
|
||||||
|
0x4d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x55, 0x70, 0x52, 0x73, 0x70, 0x52, 0x12, 0x6d,
|
||||||
|
0x75, 0x6c, 0x74, 0x69, 0x6d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x75, 0x70, 0x52, 0x73,
|
||||||
|
0x70, 0x12, 0x49, 0x0a, 0x14, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6d, 0x73, 0x67, 0x41, 0x70, 0x70,
|
||||||
|
0x6c, 0x79, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x73, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||||
|
0x15, 0x2e, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x4d, 0x73, 0x67, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x44,
|
||||||
|
0x6f, 0x77, 0x6e, 0x52, 0x73, 0x70, 0x52, 0x14, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6d, 0x73, 0x67,
|
||||||
|
0x41, 0x70, 0x70, 0x6c, 0x79, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x73, 0x70, 0x42, 0x0c, 0x5a, 0x0a,
|
||||||
|
0x2e, 0x3b, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6d, 0x73, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
||||||
|
0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_multimsg_proto_rawDescOnce sync.Once
|
||||||
|
file_multimsg_proto_rawDescData = file_multimsg_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_multimsg_proto_rawDescGZIP() []byte {
|
||||||
|
file_multimsg_proto_rawDescOnce.Do(func() {
|
||||||
|
file_multimsg_proto_rawDescData = protoimpl.X.CompressGZIP(file_multimsg_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_multimsg_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_multimsg_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||||
|
var file_multimsg_proto_goTypes = []interface{}{
|
||||||
|
(*ExternMsg)(nil), // 0: ExternMsg
|
||||||
|
(*MultiMsgApplyDownReq)(nil), // 1: MultiMsgApplyDownReq
|
||||||
|
(*MultiMsgApplyDownRsp)(nil), // 2: MultiMsgApplyDownRsp
|
||||||
|
(*MultiMsgApplyUpReq)(nil), // 3: MultiMsgApplyUpReq
|
||||||
|
(*MultiMsgApplyUpRsp)(nil), // 4: MultiMsgApplyUpRsp
|
||||||
|
(*ReqBody)(nil), // 5: ReqBody
|
||||||
|
(*RspBody)(nil), // 6: RspBody
|
||||||
|
}
|
||||||
|
var file_multimsg_proto_depIdxs = []int32{
|
||||||
|
0, // 0: MultiMsgApplyDownRsp.msgExternInfo:type_name -> ExternMsg
|
||||||
|
0, // 1: MultiMsgApplyUpRsp.msgExternInfo:type_name -> ExternMsg
|
||||||
|
3, // 2: ReqBody.multimsgApplyupReq:type_name -> MultiMsgApplyUpReq
|
||||||
|
1, // 3: ReqBody.multimsgApplydownReq:type_name -> MultiMsgApplyDownReq
|
||||||
|
4, // 4: RspBody.multimsgApplyupRsp:type_name -> MultiMsgApplyUpRsp
|
||||||
|
2, // 5: RspBody.multimsgApplydownRsp:type_name -> MultiMsgApplyDownRsp
|
||||||
|
6, // [6:6] is the sub-list for method output_type
|
||||||
|
6, // [6:6] is the sub-list for method input_type
|
||||||
|
6, // [6:6] is the sub-list for extension type_name
|
||||||
|
6, // [6:6] is the sub-list for extension extendee
|
||||||
|
0, // [0:6] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_multimsg_proto_init() }
|
||||||
|
func file_multimsg_proto_init() {
|
||||||
|
if File_multimsg_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_multimsg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*ExternMsg); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_multimsg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*MultiMsgApplyDownReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_multimsg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*MultiMsgApplyDownRsp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_multimsg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*MultiMsgApplyUpReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_multimsg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*MultiMsgApplyUpRsp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_multimsg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*ReqBody); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_multimsg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*RspBody); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
type x struct{}
|
||||||
|
out := protoimpl.TypeBuilder{
|
||||||
|
File: protoimpl.DescBuilder{
|
||||||
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
|
RawDescriptor: file_multimsg_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 7,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_multimsg_proto_goTypes,
|
||||||
|
DependencyIndexes: file_multimsg_proto_depIdxs,
|
||||||
|
MessageInfos: file_multimsg_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_multimsg_proto = out.File
|
||||||
|
file_multimsg_proto_rawDesc = nil
|
||||||
|
file_multimsg_proto_goTypes = nil
|
||||||
|
file_multimsg_proto_depIdxs = nil
|
||||||
|
}
|
62
client/pb/multimsg/multimsg.proto
Normal file
62
client/pb/multimsg/multimsg.proto
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
option go_package = ".;multimsg";
|
||||||
|
|
||||||
|
message ExternMsg {
|
||||||
|
int32 channelType = 1;
|
||||||
|
}
|
||||||
|
message MultiMsgApplyDownReq {
|
||||||
|
bytes msgResid = 1;
|
||||||
|
int32 msgType = 2;
|
||||||
|
int64 srcUin = 3;
|
||||||
|
}
|
||||||
|
message MultiMsgApplyDownRsp {
|
||||||
|
int32 result = 1;
|
||||||
|
bytes thumbDownPara = 2;
|
||||||
|
bytes msgKey = 3;
|
||||||
|
repeated int32 uint32DownIp = 4;
|
||||||
|
repeated int32 uint32DownPort = 5;
|
||||||
|
bytes msgResid = 6;
|
||||||
|
ExternMsg msgExternInfo = 7;
|
||||||
|
repeated bytes bytesDownIpV6 = 8;
|
||||||
|
repeated int32 uint32DownV6Port = 9;
|
||||||
|
}
|
||||||
|
message MultiMsgApplyUpReq {
|
||||||
|
int64 dstUin = 1;
|
||||||
|
int64 msgSize = 2;
|
||||||
|
bytes msgMd5 = 3;
|
||||||
|
int32 msgType = 4;
|
||||||
|
int32 applyId = 5;
|
||||||
|
}
|
||||||
|
message MultiMsgApplyUpRsp {
|
||||||
|
int32 result = 1;
|
||||||
|
string msgResid = 2;
|
||||||
|
bytes msgUkey = 3;
|
||||||
|
repeated int32 uint32UpIp = 4;
|
||||||
|
repeated int32 uint32UpPort = 5;
|
||||||
|
int64 blockSize = 6;
|
||||||
|
int64 upOffset = 7;
|
||||||
|
int32 applyId = 8;
|
||||||
|
bytes msgKey = 9;
|
||||||
|
bytes msgSig = 10;
|
||||||
|
ExternMsg msgExternInfo = 11;
|
||||||
|
repeated bytes bytesUpIpV6 = 12;
|
||||||
|
repeated int32 uint32UpV6Port = 13;
|
||||||
|
}
|
||||||
|
message ReqBody {
|
||||||
|
int32 subcmd = 1;
|
||||||
|
int32 termType = 2;
|
||||||
|
int32 platformType = 3;
|
||||||
|
int32 netType = 4;
|
||||||
|
string buildVer = 5;
|
||||||
|
repeated MultiMsgApplyUpReq multimsgApplyupReq = 6;
|
||||||
|
repeated MultiMsgApplyDownReq multimsgApplydownReq = 7;
|
||||||
|
int32 buType = 8;
|
||||||
|
int32 reqChannelType = 9;
|
||||||
|
}
|
||||||
|
message RspBody {
|
||||||
|
int32 subcmd = 1;
|
||||||
|
repeated MultiMsgApplyUpRsp multimsgApplyupRsp = 2;
|
||||||
|
repeated MultiMsgApplyDownRsp multimsgApplydownRsp = 3;
|
||||||
|
}
|
||||||
|
|
@ -12,6 +12,7 @@ type TextElement struct {
|
|||||||
type ImageElement struct {
|
type ImageElement struct {
|
||||||
Filename string
|
Filename string
|
||||||
Url string
|
Url string
|
||||||
|
Md5 []byte
|
||||||
Data []byte
|
Data []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,13 +41,6 @@ func NewText(s string) *TextElement {
|
|||||||
return &TextElement{Content: s}
|
return &TextElement{Content: s}
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewNetImage(filename, url string) *ImageElement {
|
|
||||||
return &ImageElement{
|
|
||||||
Filename: filename,
|
|
||||||
Url: url,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewImage(data []byte) *ImageElement {
|
func NewImage(data []byte) *ImageElement {
|
||||||
return &ImageElement{
|
return &ImageElement{
|
||||||
Data: data,
|
Data: data,
|
||||||
|
@ -4,6 +4,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/protocol/crypto"
|
"github.com/Mrs4s/MiraiGo/protocol/crypto"
|
||||||
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ErrUnknownFlag = errors.New("unknown flag")
|
var ErrUnknownFlag = errors.New("unknown flag")
|
||||||
@ -122,7 +123,10 @@ func parseSsoFrame(payload []byte, flag2 byte) (*IncomingPacket, error) {
|
|||||||
return nil, errors.New("dropped")
|
return nil, errors.New("dropped")
|
||||||
}
|
}
|
||||||
seqId := reader.ReadInt32()
|
seqId := reader.ReadInt32()
|
||||||
reader.ReadInt32() // return code
|
retCode := reader.ReadInt32()
|
||||||
|
if retCode != 0 {
|
||||||
|
return nil, errors.New("return code unsuccessful: " + strconv.FormatInt(int64(retCode), 10))
|
||||||
|
}
|
||||||
reader.ReadBytes(int(reader.ReadInt32()) - 4) // extra data
|
reader.ReadBytes(int(reader.ReadInt32()) - 4) // extra data
|
||||||
commandName := reader.ReadString()
|
commandName := reader.ReadString()
|
||||||
sessionId := reader.ReadBytes(int(reader.ReadInt32()) - 4)
|
sessionId := reader.ReadBytes(int(reader.ReadInt32()) - 4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user