From d53bf8503e18ace3702a2eb84e8df58d0712ec6e Mon Sep 17 00:00:00 2001 From: wdvxdr Date: Mon, 14 Feb 2022 00:51:36 +0800 Subject: [PATCH] client/pb: re-generate proto files --- client/c2c_processor.go | 6 +- client/decoders.go | 18 +- client/global.go | 4 +- client/group_info.go | 2 +- client/guild.go | 10 +- client/guild_msg.go | 16 +- client/image.go | 10 +- client/multimsg.go | 14 +- client/online_push.go | 6 +- client/pb/channel/GuildChannelBase.pb.go | 56 - client/pb/channel/GuildChannelBase.proto | 2 +- client/pb/channel/GuildFeedCloudMeta.pb.go | 889 ------- client/pb/channel/GuildFeedCloudMeta.proto | 2 +- client/pb/channel/GuildFeedCloudRead.pb.go | 147 -- client/pb/channel/GuildFeedCloudRead.proto | 2 +- client/pb/channel/GuildWriter.pb.go | 413 ---- client/pb/channel/GuildWriter.proto | 2 +- client/pb/channel/MsgResponsesSvr.pb.go | 70 - client/pb/channel/MsgResponsesSvr.proto | 2 +- client/pb/channel/common.pb.go | 182 -- client/pb/channel/common.proto | 2 +- client/pb/channel/msgpush.pb.go | 56 - client/pb/channel/msgpush.proto | 2 +- client/pb/channel/oidb0xf62.pb.go | 56 - client/pb/channel/oidb0xf62.proto | 2 +- client/pb/channel/servtype.pb.go | 476 ---- client/pb/channel/servtype.proto | 2 +- client/pb/channel/synclogic.pb.go | 175 -- client/pb/channel/synclogic.proto | 2 +- client/pb/channel/unknown.pb.go | 112 - client/pb/channel/unknown.proto | 2 +- client/pb/cmd0x346/cmd0x346.pb.go | 2375 +------------------ client/pb/cmd0x346/cmd0x346.proto | 2 +- client/pb/cmd0x352/cmd0x352.pb.go | 149 +- client/pb/cmd0x352/cmd0x352.proto | 2 +- client/pb/cmd0x388/cmd0x388.pb.go | 569 +---- client/pb/cmd0x388/cmd0x388.proto | 2 +- client/pb/cmd0x3f6/cmd0x3f6.pb.go | 51 +- client/pb/cmd0x3f6/cmd0x3f6.proto | 2 +- client/pb/cmd0x6ff/smbcmd0x519.pb.go | 205 +- client/pb/cmd0x6ff/smbcmd0x519.proto | 2 +- client/pb/cmd0x6ff/subcmd0x501.pb.go | 58 +- client/pb/cmd0x6ff/subcmd0x501.proto | 2 +- client/pb/data.pb.go | 1115 +-------- client/pb/data.proto | 2 +- client/pb/exciting/group.pb.go | 86 +- client/pb/exciting/group.proto | 2 +- client/pb/faceroam/faceroam.pb.go | 79 +- client/pb/faceroam/faceroam.proto | 2 +- client/pb/highway/bdhExtInfo.pb.go | 205 +- client/pb/highway/bdhExtInfo.proto | 2 +- client/pb/longmsg/longmsg.pb.go | 226 +- client/pb/longmsg/longmsg.proto | 2 +- client/pb/msf/register_proxy.pb.go | 72 +- client/pb/msf/register_proxy.proto | 2 +- client/pb/msg/TextMsgExt.pb.go | 37 +- client/pb/msg/TextMsgExt.proto | 2 +- client/pb/msg/head.pb.go | 107 +- client/pb/msg/head.proto | 2 +- client/pb/msg/msg.pb.go | 1505 ------------ client/pb/msg/msg.proto | 2 +- client/pb/msg/objmsg.pb.go | 135 +- client/pb/msg/objmsg.proto | 2 +- client/pb/msg/report.pb.go | 72 +- client/pb/msg/report.proto | 2 +- client/pb/msgtype0x210/subMsgType0x27.pb.go | 562 +---- client/pb/msgtype0x210/subMsgType0x27.proto | 2 +- client/pb/multimsg/multimsg.pb.go | 303 +-- client/pb/multimsg/multimsg.proto | 2 +- client/pb/notify/group0x857.pb.go | 394 +-- client/pb/notify/group0x857.proto | 2 +- client/pb/oidb/oidb.pb.go | 520 +--- client/pb/oidb/oidb.proto | 2 +- client/pb/oidb/oidb0x5eb.pb.go | 149 +- client/pb/oidb/oidb0x5eb.proto | 2 +- client/pb/oidb/oidb0x6d6.pb.go | 198 +- client/pb/oidb/oidb0x6d6.proto | 2 +- client/pb/oidb/oidb0x6d7.pb.go | 58 +- client/pb/oidb/oidb0x6d7.proto | 2 +- client/pb/oidb/oidb0x6d8.pb.go | 142 +- client/pb/oidb/oidb0x6d8.proto | 2 +- client/pb/oidb/oidb0x6d9.pb.go | 128 +- client/pb/oidb/oidb0x6d9.proto | 2 +- client/pb/oidb/oidb0x769.pb.go | 93 +- client/pb/oidb/oidb0x769.proto | 2 +- client/pb/oidb/oidb0x88d.pb.go | 191 +- client/pb/oidb/oidb0x88d.proto | 2 +- client/pb/oidb/oidb0x8a7.pb.go | 16 +- client/pb/oidb/oidb0x8a7.proto | 2 +- client/pb/oidb/oidb0x8fc.pb.go | 121 +- client/pb/oidb/oidb0x8fc.proto | 2 +- client/pb/oidb/oidb0x990.pb.go | 79 +- client/pb/oidb/oidb0x990.proto | 2 +- client/pb/oidb/oidb0xD79.proto | 2 +- client/pb/oidb/oidb0xb77.pb.go | 205 +- client/pb/oidb/oidb0xb77.proto | 2 +- client/pb/oidb/oidb0xbcb.pb.go | 37 +- client/pb/oidb/oidb0xbcb.proto | 2 +- client/pb/oidb/oidb0xd79.pb.go | 93 +- client/pb/oidb/oidb0xe07.pb.go | 240 +- client/pb/oidb/oidb0xe07.proto | 2 +- client/pb/oidb/oidb0xe5b.pb.go | 23 +- client/pb/oidb/oidb0xe5b.proto | 2 +- client/pb/oidb/oidb0xeac.pb.go | 2 +- client/pb/oidb/oidb0xeac.proto | 2 +- client/pb/oidb/oidb0xec4.pb.go | 37 +- client/pb/oidb/oidb0xec4.proto | 2 +- client/pb/profilecard/accountsearch.pb.go | 135 +- client/pb/profilecard/accountsearch.proto | 2 +- client/pb/profilecard/busi.pb.go | 86 +- client/pb/profilecard/busi.proto | 2 +- client/pb/profilecard/gate.pb.go | 156 +- client/pb/profilecard/gate.proto | 2 +- client/pb/pttcenter/shortvideo.pb.go | 471 +--- client/pb/pttcenter/shortvideo.proto | 2 +- client/pb/qweb/app.pb.go | 163 +- client/pb/qweb/app.proto | 2 +- client/pb/qweb/protocol.pb.go | 58 +- client/pb/qweb/protocol.proto | 2 +- client/pb/richmedia/tts.pb.go | 86 +- client/pb/richmedia/tts.proto | 2 +- client/pb/structmsg/structmsg.pb.go | 1297 +--------- client/pb/structmsg/structmsg.proto | 2 +- client/pb/web/WebSsoBody.pb.go | 16 +- client/pb/web/WebSsoBody.proto | 2 +- client/sync.go | 2 +- go.mod | 2 +- go.sum | 9 +- message/message.go | 8 +- 129 files changed, 155 insertions(+), 15805 deletions(-) diff --git a/client/c2c_processor.go b/client/c2c_processor.go index f8d9f65c..f353e2e0 100644 --- a/client/c2c_processor.go +++ b/client/c2c_processor.go @@ -159,7 +159,7 @@ func tempSessionDecoder(c *QQClient, pMsg *msg.Message, _ *network.IncomingPacke info := &TempSessionInfo{ Source: 0, Sender: pMsg.Head.GetFromUin(), - sig: pMsg.Head.C2CTmpMsgHead.GetSig(), + sig: pMsg.Head.C2CTmpMsgHead.Sig, client: c, } @@ -235,10 +235,10 @@ func troopSystemMessageDecoder(c *QQClient, pMsg *msg.Message, info *network.Inc if !info.Params.Bool("used_reg_proxy") && pMsg.Head.GetMsgType() != 85 && pMsg.Head.GetMsgType() != 36 { c.exceptAndDispatchGroupSysMsg() } - if len(pMsg.Body.GetMsgContent()) == 0 { + if len(pMsg.Body.MsgContent) == 0 { return } - reader := binary.NewReader(pMsg.GetBody().GetMsgContent()) + reader := binary.NewReader(pMsg.Body.MsgContent) groupCode := uint32(reader.ReadInt32()) if info := c.FindGroup(int64(groupCode)); info != nil && pMsg.Head.GetGroupName() != "" && info.Name != pMsg.Head.GetGroupName() { c.Debug("group %v name updated. %v -> %v", groupCode, info.Name, pMsg.Head.GetGroupName()) diff --git a/client/decoders.go b/client/decoders.go index 2037cb51..79036fa9 100644 --- a/client/decoders.go +++ b/client/decoders.go @@ -600,35 +600,35 @@ func decodeOffPicUpResponse(_ *QQClient, _ *network.IncomingPacketInfo, payload if err := proto.Unmarshal(payload, &rsp); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } - if rsp.GetFailMsg() != nil { + if rsp.FailMsg != nil { return &imageUploadResponse{ ResultCode: -1, Message: string(rsp.FailMsg), }, nil } - if rsp.GetSubcmd() != 1 || len(rsp.GetTryupImgRsp()) == 0 { + if rsp.GetSubcmd() != 1 || len(rsp.TryupImgRsp) == 0 { return &imageUploadResponse{ ResultCode: -2, }, nil } - imgRsp := rsp.GetTryupImgRsp()[0] + imgRsp := rsp.TryupImgRsp[0] if imgRsp.GetResult() != 0 { return &imageUploadResponse{ ResultCode: int32(*imgRsp.Result), - Message: string(imgRsp.GetFailMsg()), + Message: string(imgRsp.FailMsg), }, nil } if imgRsp.GetFileExit() { return &imageUploadResponse{ IsExists: true, - ResourceId: string(imgRsp.GetUpResid()), + ResourceId: string(imgRsp.UpResid), }, nil } return &imageUploadResponse{ - ResourceId: string(imgRsp.GetUpResid()), - UploadKey: imgRsp.GetUpUkey(), - UploadIp: imgRsp.GetUpIp(), - UploadPort: imgRsp.GetUpPort(), + ResourceId: string(imgRsp.UpResid), + UploadKey: imgRsp.UpUkey, + UploadIp: imgRsp.UpIp, + UploadPort: imgRsp.UpPort, }, nil } diff --git a/client/global.go b/client/global.go index 88dbe414..270af0ee 100644 --- a/client/global.go +++ b/client/global.go @@ -335,8 +335,8 @@ func unpackOIDBPackage(buff []byte, payload proto.Message) error { if err := proto.Unmarshal(buff, pkg); err != nil { return errors.Wrap(err, "failed to unmarshal protobuf message") } - if pkg.GetResult() != 0 { - return errors.Errorf("oidb result unsuccessful: %v msg: %v", pkg.GetResult(), pkg.GetErrorMsg()) + if pkg.Result != 0 { + return errors.Errorf("oidb result unsuccessful: %v msg: %v", pkg.Result, pkg.ErrorMsg) } if err := proto.Unmarshal(pkg.Bodybuffer, payload); err != nil { return errors.Wrap(err, "failed to unmarshal protobuf message") diff --git a/client/group_info.go b/client/group_info.go index e42ee7c3..712076cf 100644 --- a/client/group_info.go +++ b/client/group_info.go @@ -213,7 +213,7 @@ func decodeGroupSearchResponse(_ *QQClient, _ *network.IncomingPacketInfo, paylo return nil, errors.Wrap(err, "get search result failed") } var ret []GroupSearchInfo - for _, g := range searchRsp.GetList() { + for _, g := range searchRsp.List { ret = append(ret, GroupSearchInfo{ Code: int64(g.GetCode()), Name: g.GetName(), diff --git a/client/guild.go b/client/guild.go index aa58f6e3..56d9791e 100644 --- a/client/guild.go +++ b/client/guild.go @@ -313,8 +313,8 @@ func (s *GuildService) GetGuildRoles(guildId uint64) ([]*GuildRole, error) { if err = unpackOIDBPackage(rsp, body); err != nil { return nil, errors.Wrap(err, "decode packet error") } - roles := make([]*GuildRole, 0, len(body.GetRoles())) - for _, role := range body.GetRoles() { + roles := make([]*GuildRole, 0, len(body.Roles)) + for _, role := range body.Roles { roles = append(roles, &GuildRole{ RoleId: role.GetRoleId(), RoleName: role.GetName(), @@ -634,12 +634,12 @@ func (s *GuildService) fetchMemberRoles(guildId uint64, tinyId uint64) ([]*Guild if err = unpackOIDBPackage(rsp, body); err != nil { return nil, errors.Wrap(err, "decode packet error") } - p1 := body.GetP1() + p1 := body.P1 if p1 == nil { return nil, errors.New("packet OidbSvcTrpcTcp.0x1017_1: decode p1 error") } - roles := make([]*GuildRole, 0, len(p1.GetRoles())) - for _, role := range p1.GetRoles() { + roles := make([]*GuildRole, 0, len(p1.Roles)) + for _, role := range p1.Roles { roles = append(roles, &GuildRole{ RoleId: role.GetRoleId(), RoleName: role.GetName(), diff --git a/client/guild_msg.go b/client/guild_msg.go index 1368e5f1..fde0574a 100644 --- a/client/guild_msg.go +++ b/client/guild_msg.go @@ -302,21 +302,21 @@ func decodeGuildImageStoreResponse(_ *QQClient, _ *network.IncomingPacketInfo, p if rsp.GetResult() != 0 { return &guildImageUploadResponse{ ResultCode: int32(rsp.GetResult()), - Message: utils.B2S(rsp.GetFailMsg()), + Message: utils.B2S(rsp.FailMsg), }, nil } if rsp.GetFileExit() { if rsp.ImgInfo != nil { - return &guildImageUploadResponse{IsExists: true, FileId: int64(rsp.GetFileid()), DownloadIndex: string(rsp.GetDownloadIndex()), Width: int32(rsp.ImgInfo.GetFileWidth()), Height: int32(rsp.ImgInfo.GetFileHeight())}, nil + return &guildImageUploadResponse{IsExists: true, FileId: int64(rsp.GetFileid()), DownloadIndex: string(rsp.DownloadIndex), Width: int32(rsp.ImgInfo.GetFileWidth()), Height: int32(rsp.ImgInfo.GetFileHeight())}, nil } - return &guildImageUploadResponse{IsExists: true, FileId: int64(rsp.GetFileid()), DownloadIndex: string(rsp.GetDownloadIndex())}, nil + return &guildImageUploadResponse{IsExists: true, FileId: int64(rsp.GetFileid()), DownloadIndex: string(rsp.DownloadIndex)}, nil } return &guildImageUploadResponse{ FileId: int64(rsp.GetFileid()), UploadKey: rsp.UpUkey, - UploadIp: rsp.GetUpIp(), - UploadPort: rsp.GetUpPort(), - DownloadIndex: string(rsp.GetDownloadIndex()), + UploadIp: rsp.UpIp, + UploadPort: rsp.UpPort, + DownloadIndex: string(rsp.DownloadIndex), }, nil } @@ -329,9 +329,9 @@ func (s *GuildService) parseGuildChannelMessage(msg *channel.ChannelMsgContent) return nil } // mem := guild.FindMember(msg.Head.RoutingHead.GetFromTinyid()) - memberName := msg.ExtInfo.GetMemberName() + memberName := msg.ExtInfo.MemberName if memberName == nil { - memberName = msg.ExtInfo.GetFromNick() + memberName = msg.ExtInfo.FromNick } return &message.GuildChannelMessage{ Id: msg.Head.ContentHead.GetSeq(), diff --git a/client/image.go b/client/image.go index 1ca5de55..bf654f58 100644 --- a/client/image.go +++ b/client/image.go @@ -308,7 +308,7 @@ func (c *QQClient) uploadOcrImage(img io.Reader) (string, error) { if err = proto.Unmarshal(rsp, &rspExt); err != nil { return "", errors.Wrap(err, "error unmarshal highway resp") } - return string(rspExt.GetDownloadUrl()), nil + return string(rspExt.DownloadUrl), nil } // OidbSvc.0xe07_0 @@ -342,11 +342,11 @@ func decodeGroupImageStoreResponse(_ *QQClient, _ *network.IncomingPacketInfo, p if rsp.GetResult() != 0 { return &imageUploadResponse{ ResultCode: int32(rsp.GetResult()), - Message: utils.B2S(rsp.GetFailMsg()), + Message: utils.B2S(rsp.FailMsg), }, nil } if rsp.GetFileExit() { - if rsp.GetImgInfo() != nil { + if rsp.ImgInfo != nil { return &imageUploadResponse{IsExists: true, FileId: int64(rsp.GetFileid()), Width: int32(rsp.ImgInfo.GetFileWidth()), Height: int32(rsp.ImgInfo.GetFileHeight())}, nil } return &imageUploadResponse{IsExists: true, FileId: int64(rsp.GetFileid())}, nil @@ -354,8 +354,8 @@ func decodeGroupImageStoreResponse(_ *QQClient, _ *network.IncomingPacketInfo, p return &imageUploadResponse{ FileId: int64(rsp.GetFileid()), UploadKey: rsp.UpUkey, - UploadIp: rsp.GetUpIp(), - UploadPort: rsp.GetUpPort(), + UploadIp: rsp.UpIp, + UploadPort: rsp.UpPort, }, nil } diff --git a/client/multimsg.go b/client/multimsg.go index 4798a6de..9b81a2aa 100644 --- a/client/multimsg.go +++ b/client/multimsg.go @@ -141,8 +141,8 @@ func (l *forwardMsgLinker) link(name string) *message.ForwardMessage { if item == nil { return nil } - nodes := make([]*message.ForwardNode, 0, len(item.GetBuffer().GetMsg())) - for _, m := range item.GetBuffer().GetMsg() { + nodes := make([]*message.ForwardNode, 0, len(item.Buffer.Msg)) + for _, m := range item.Buffer.Msg { name := m.Head.GetFromNick() if m.Head.GetMsgType() == 82 && m.Head.GroupInfo != nil { name = m.Head.GroupInfo.GetGroupCard() @@ -187,11 +187,11 @@ func (c *QQClient) DownloadForwardMessage(resId string) *message.ForwardElement return nil } multiMsg := i.(*msg.PbMultiMsgTransmit) - if multiMsg.GetPbItemList() == nil { + if multiMsg.PbItemList == nil { return nil } var pv string - for i := 0; i < int(math.Min(4, float64(len(multiMsg.GetMsg())))); i++ { + for i := 0; i < int(math.Min(4, float64(len(multiMsg.Msg)))); i++ { m := multiMsg.Msg[i] pv += fmt.Sprintf(`%s: %s`, func() string { @@ -201,14 +201,14 @@ func (c *QQClient) DownloadForwardMessage(resId string) *message.ForwardElement return m.Head.GetFromNick() }(), message.ToReadableString( - message.ParseMessageElems(multiMsg.Msg[i].GetBody().GetRichText().Elems), + message.ParseMessageElems(multiMsg.Msg[i].Body.RichText.Elems), ), ) } return genForwardTemplate( resId, pv, "群聊的聊天记录", "[聊天记录]", "聊天记录", - fmt.Sprintf("查看 %d 条转发消息", len(multiMsg.GetMsg())), + fmt.Sprintf("查看 %d 条转发消息", len(multiMsg.Msg)), time.Now().UnixNano(), - multiMsg.GetPbItemList(), + multiMsg.PbItemList, ) } diff --git a/client/online_push.go b/client/online_push.go index ab4de977..5a913b92 100644 --- a/client/online_push.go +++ b/client/online_push.go @@ -184,7 +184,7 @@ func msgType0x210Sub27Decoder(c *QQClient, protobuf []byte) error { if info.GetField() == 1 { if g := c.FindGroup(int64(m.ModGroupProfile.GetGroupCode())); g != nil { old := g.Name - g.Name = string(info.GetValue()) + g.Name = string(info.Value) c.dispatchGroupNameUpdatedEvent(&GroupNameUpdatedEvent{ Group: g, OldName: old, @@ -238,11 +238,11 @@ func msgType0x210Sub44Decoder(c *QQClient, protobuf []byte) error { } groupJoinLock.Lock() defer groupJoinLock.Unlock() - if s44.GroupSyncMsg.GetGrpCode() == 0 { // member sync + if s44.GroupSyncMsg.GrpCode == 0 { // member sync return errors.New("invalid group code") } c.Debug("syncing members.") - if group := c.FindGroup(s44.GroupSyncMsg.GetGrpCode()); group != nil { + if group := c.FindGroup(s44.GroupSyncMsg.GrpCode); group != nil { group.lock.Lock() defer group.lock.Unlock() diff --git a/client/pb/channel/GuildChannelBase.pb.go b/client/pb/channel/GuildChannelBase.pb.go index a83d2422..6cdf44a0 100644 --- a/client/pb/channel/GuildChannelBase.pb.go +++ b/client/pb/channel/GuildChannelBase.pb.go @@ -10,13 +10,6 @@ type ChannelUserInfo struct { RoleGroups []*BaseRoleGroupInfo `protobuf:"bytes,4,rep"` } -func (x *ChannelUserInfo) GetClientIdentity() *ClientIdentity { - if x != nil { - return x.ClientIdentity - } - return nil -} - func (x *ChannelUserInfo) GetMemberType() uint32 { if x != nil && x.MemberType != nil { return *x.MemberType @@ -24,20 +17,6 @@ func (x *ChannelUserInfo) GetMemberType() uint32 { return 0 } -func (x *ChannelUserInfo) GetPermission() *ChannelUserPermission { - if x != nil { - return x.Permission - } - return nil -} - -func (x *ChannelUserInfo) GetRoleGroups() []*BaseRoleGroupInfo { - if x != nil { - return x.RoleGroups - } - return nil -} - type ChannelUserPermission struct { AllowReadFeed *bool `protobuf:"varint,1,opt"` AllowWriteFeed *bool `protobuf:"varint,2,opt"` @@ -136,13 +115,6 @@ type StChannelInfo struct { IconUrl *string `protobuf:"bytes,3,opt"` } -func (x *StChannelInfo) GetSign() *StChannelSign { - if x != nil { - return x.Sign - } - return nil -} - func (x *StChannelInfo) GetName() string { if x != nil && x.Name != nil { return *x.Name @@ -188,26 +160,12 @@ func (x *StEmotionReactionInfo) GetId() string { return "" } -func (x *StEmotionReactionInfo) GetEmojiReactionList() []*EmojiReaction { - if x != nil { - return x.EmojiReactionList - } - return nil -} - type StCommonExt struct { MapInfo []*CommonEntry `protobuf:"bytes,1,rep"` AttachInfo *string `protobuf:"bytes,2,opt"` MapBytesInfo []*BytesEntry `protobuf:"bytes,3,rep"` } -func (x *StCommonExt) GetMapInfo() []*CommonEntry { - if x != nil { - return x.MapInfo - } - return nil -} - func (x *StCommonExt) GetAttachInfo() string { if x != nil && x.AttachInfo != nil { return *x.AttachInfo @@ -215,13 +173,6 @@ func (x *StCommonExt) GetAttachInfo() string { return "" } -func (x *StCommonExt) GetMapBytesInfo() []*BytesEntry { - if x != nil { - return x.MapBytesInfo - } - return nil -} - type BytesEntry struct { Key *string `protobuf:"bytes,1,opt"` Value []byte `protobuf:"bytes,2,opt"` @@ -234,13 +185,6 @@ func (x *BytesEntry) GetKey() string { return "" } -func (x *BytesEntry) GetValue() []byte { - if x != nil { - return x.Value - } - return nil -} - type CommonEntry struct { Key *string `protobuf:"bytes,1,opt"` Value *string `protobuf:"bytes,2,opt"` diff --git a/client/pb/channel/GuildChannelBase.proto b/client/pb/channel/GuildChannelBase.proto index a2370a64..dcf0fe96 100644 --- a/client/pb/channel/GuildChannelBase.proto +++ b/client/pb/channel/GuildChannelBase.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package channel; -option go_package = "pb/channel;channel"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/channel"; import "pb/channel/MsgResponsesSvr.proto"; diff --git a/client/pb/channel/GuildFeedCloudMeta.pb.go b/client/pb/channel/GuildFeedCloudMeta.pb.go index 344bf849..7fbdb6d6 100644 --- a/client/pb/channel/GuildFeedCloudMeta.pb.go +++ b/client/pb/channel/GuildFeedCloudMeta.pb.go @@ -8,13 +8,6 @@ type ContentMetaData struct { ContentID *int64 `protobuf:"varint,2,opt"` } -func (x *ContentMetaData) GetCount() *RichTextContentCount { - if x != nil { - return x.Count - } - return nil -} - func (x *ContentMetaData) GetContentID() int64 { if x != nil && x.ContentID != nil { return *x.ContentID @@ -27,13 +20,6 @@ type FeedMetaData struct { LastModifiedTime *uint64 `protobuf:"varint,2,opt"` } -func (x *FeedMetaData) GetContent() *ContentMetaData { - if x != nil { - return x.Content - } - return nil -} - func (x *FeedMetaData) GetLastModifiedTime() uint64 { if x != nil && x.LastModifiedTime != nil { return *x.LastModifiedTime @@ -198,25 +184,11 @@ func (x *StAnimation) GetAnimationUrl() string { return "" } -func (x *StAnimation) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - type StBusiReportInfo struct { RecomReport *StRecomReportInfo `protobuf:"bytes,1,opt"` TraceID *string `protobuf:"bytes,2,opt"` } -func (x *StBusiReportInfo) GetRecomReport() *StRecomReportInfo { - if x != nil { - return x.RecomReport - } - return nil -} - func (x *StBusiReportInfo) GetTraceID() string { if x != nil && x.TraceID != nil { return *x.TraceID @@ -254,13 +226,6 @@ func (x *StChannelShareInfo) GetFeedPublishAt() uint64 { return 0 } -func (x *StChannelShareInfo) GetChannelSign() *StChannelSign { - if x != nil { - return x.ChannelSign - } - return nil -} - func (x *StChannelShareInfo) GetUpdateDurationMs() uint64 { if x != nil && x.UpdateDurationMs != nil { return *x.UpdateDurationMs @@ -268,13 +233,6 @@ func (x *StChannelShareInfo) GetUpdateDurationMs() uint64 { return 0 } -func (x *StChannelShareInfo) GetSign() *StChannelShareSign { - if x != nil { - return x.Sign - } - return nil -} - type StChannelShareSign struct { CreateAt *uint64 `protobuf:"varint,1,opt"` Token *string `protobuf:"bytes,2,opt"` @@ -349,13 +307,6 @@ func (x *StClientInfo) GetFeedclientkey() string { return "" } -func (x *StClientInfo) GetClientMap() []*CommonEntry { - if x != nil { - return x.ClientMap - } - return nil -} - type StComment struct { Id *string `protobuf:"bytes,1,opt"` PostUser *StUser `protobuf:"bytes,2,opt"` @@ -382,13 +333,6 @@ func (x *StComment) GetId() string { return "" } -func (x *StComment) GetPostUser() *StUser { - if x != nil { - return x.PostUser - } - return nil -} - func (x *StComment) GetCreateTime() uint64 { if x != nil && x.CreateTime != nil { return *x.CreateTime @@ -410,27 +354,6 @@ func (x *StComment) GetReplyCount() uint32 { return 0 } -func (x *StComment) GetVecReply() []*StReply { - if x != nil { - return x.VecReply - } - return nil -} - -func (x *StComment) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - -func (x *StComment) GetLikeInfo() *StLike { - if x != nil { - return x.LikeInfo - } - return nil -} - func (x *StComment) GetTypeFlag() uint32 { if x != nil && x.TypeFlag != nil { return *x.TypeFlag @@ -438,13 +361,6 @@ func (x *StComment) GetTypeFlag() uint32 { return 0 } -func (x *StComment) GetAtUinList() []string { - if x != nil { - return x.AtUinList - } - return nil -} - func (x *StComment) GetTypeFlag2() uint32 { if x != nil && x.TypeFlag2 != nil { return *x.TypeFlag2 @@ -459,13 +375,6 @@ func (x *StComment) GetCreateTimeNs() uint64 { return 0 } -func (x *StComment) GetStoreExtInfo() []*CommonEntry { - if x != nil { - return x.StoreExtInfo - } - return nil -} - func (x *StComment) GetThirdId() string { if x != nil && x.ThirdId != nil { return *x.ThirdId @@ -480,24 +389,10 @@ func (x *StComment) GetSourceType() uint32 { return 0 } -func (x *StComment) GetRichContents() *StRichText { - if x != nil { - return x.RichContents - } - return nil -} - type StDebugInfo struct { DebugMap []*CommonEntry `protobuf:"bytes,1,rep"` } -func (x *StDebugInfo) GetDebugMap() []*CommonEntry { - if x != nil { - return x.DebugMap - } - return nil -} - type StDittoFeed struct { DittoId *uint32 `protobuf:"varint,1,opt"` DittoPatternId *uint32 `protobuf:"varint,2,opt"` @@ -519,31 +414,10 @@ func (x *StDittoFeed) GetDittoPatternId() uint32 { return 0 } -func (x *StDittoFeed) GetDittoData() []byte { - if x != nil { - return x.DittoData - } - return nil -} - -func (x *StDittoFeed) GetDittoDataNew() []byte { - if x != nil { - return x.DittoDataNew - } - return nil -} - type StExifInfo struct { Kvs []*CommonEntry `protobuf:"bytes,1,rep"` } -func (x *StExifInfo) GetKvs() []*CommonEntry { - if x != nil { - return x.Kvs - } - return nil -} - type StExternalMedalWallInfo struct { NeedRedPoint *bool `protobuf:"varint,1,opt"` MedalInfos []*StMedalInfo `protobuf:"bytes,2,rep"` @@ -558,13 +432,6 @@ func (x *StExternalMedalWallInfo) GetNeedRedPoint() bool { return false } -func (x *StExternalMedalWallInfo) GetMedalInfos() []*StMedalInfo { - if x != nil { - return x.MedalInfos - } - return nil -} - func (x *StExternalMedalWallInfo) GetMedalWallJumpUrl() string { if x != nil && x.MedalWallJumpUrl != nil { return *x.MedalWallJumpUrl @@ -614,41 +481,6 @@ func (x *StFeed) GetId() string { return "" } -func (x *StFeed) GetTitle() *StRichText { - if x != nil { - return x.Title - } - return nil -} - -func (x *StFeed) GetSubtitle() *StRichText { - if x != nil { - return x.Subtitle - } - return nil -} - -func (x *StFeed) GetPoster() *StUser { - if x != nil { - return x.Poster - } - return nil -} - -func (x *StFeed) GetVideos() []*StVideo { - if x != nil { - return x.Videos - } - return nil -} - -func (x *StFeed) GetContents() *StRichText { - if x != nil { - return x.Contents - } - return nil -} - func (x *StFeed) GetCreateTime() uint64 { if x != nil && x.CreateTime != nil { return *x.CreateTime @@ -656,13 +488,6 @@ func (x *StFeed) GetCreateTime() uint64 { return 0 } -func (x *StFeed) GetEmotionReaction() *StEmotionReactionInfo { - if x != nil { - return x.EmotionReaction - } - return nil -} - func (x *StFeed) GetCommentCount() uint32 { if x != nil && x.CommentCount != nil { return *x.CommentCount @@ -670,76 +495,6 @@ func (x *StFeed) GetCommentCount() uint32 { return 0 } -func (x *StFeed) GetVecComment() []*StComment { - if x != nil { - return x.VecComment - } - return nil -} - -func (x *StFeed) GetShare() *StShare { - if x != nil { - return x.Share - } - return nil -} - -func (x *StFeed) GetVisitorInfo() *StVisitor { - if x != nil { - return x.VisitorInfo - } - return nil -} - -func (x *StFeed) GetImages() []*StImage { - if x != nil { - return x.Images - } - return nil -} - -func (x *StFeed) GetPoiInfo() *StPoiInfoV2 { - if x != nil { - return x.PoiInfo - } - return nil -} - -func (x *StFeed) GetTagInfos() []*StTagInfo { - if x != nil { - return x.TagInfos - } - return nil -} - -func (x *StFeed) GetBusiReport() []byte { - if x != nil { - return x.BusiReport - } - return nil -} - -func (x *StFeed) GetOpMask() []uint32 { - if x != nil { - return x.OpMask - } - return nil -} - -func (x *StFeed) GetOpinfo() *StOpinfo { - if x != nil { - return x.Opinfo - } - return nil -} - -func (x *StFeed) GetExtInfo() []*CommonEntry { - if x != nil { - return x.ExtInfo - } - return nil -} - func (x *StFeed) GetPatternInfo() string { if x != nil && x.PatternInfo != nil { return *x.PatternInfo @@ -747,13 +502,6 @@ func (x *StFeed) GetPatternInfo() string { return "" } -func (x *StFeed) GetChannelInfo() *StChannelInfo { - if x != nil { - return x.ChannelInfo - } - return nil -} - func (x *StFeed) GetCreateTimeNs() uint64 { if x != nil && x.CreateTimeNs != nil { return *x.CreateTimeNs @@ -761,27 +509,6 @@ func (x *StFeed) GetCreateTimeNs() uint64 { return 0 } -func (x *StFeed) GetSummary() *StFeedSummary { - if x != nil { - return x.Summary - } - return nil -} - -func (x *StFeed) GetRecomInfo() *StRecomInfo { - if x != nil { - return x.RecomInfo - } - return nil -} - -func (x *StFeed) GetMeta() *FeedMetaData { - if x != nil { - return x.Meta - } - return nil -} - type StFeedAbstract struct { Id *string `protobuf:"bytes,1,opt"` Title *string `protobuf:"bytes,2,opt"` @@ -810,20 +537,6 @@ func (x *StFeedAbstract) GetTitle() string { return "" } -func (x *StFeedAbstract) GetPoster() *StUser { - if x != nil { - return x.Poster - } - return nil -} - -func (x *StFeedAbstract) GetPic() *StImage { - if x != nil { - return x.Pic - } - return nil -} - func (x *StFeedAbstract) GetType() uint32 { if x != nil && x.Type != nil { return *x.Type @@ -838,13 +551,6 @@ func (x *StFeedAbstract) GetCreateTime() uint64 { return 0 } -func (x *StFeedAbstract) GetVideo() *StVideo { - if x != nil { - return x.Video - } - return nil -} - func (x *StFeedAbstract) GetFuelNum() uint32 { if x != nil && x.FuelNum != nil { return *x.FuelNum @@ -859,20 +565,6 @@ func (x *StFeedAbstract) GetContent() string { return "" } -func (x *StFeedAbstract) GetImages() []*StImage { - if x != nil { - return x.Images - } - return nil -} - -func (x *StFeedAbstract) GetCountInfo() *StFeedCount { - if x != nil { - return x.CountInfo - } - return nil -} - type StFeedCount struct { Liked *int64 `protobuf:"varint,1,opt"` Push *int64 `protobuf:"varint,2,opt"` @@ -933,13 +625,6 @@ func (x *StFollowRecomInfo) GetFollowText() string { return "" } -func (x *StFollowRecomInfo) GetFollowUsers() []*StFollowUser { - if x != nil { - return x.FollowUsers - } - return nil -} - func (x *StFollowRecomInfo) GetCommFriendText() string { if x != nil && x.CommFriendText != nil { return *x.CommFriendText @@ -1021,13 +706,6 @@ func (x *StGuidePublishBubble) GetId() string { return "" } -func (x *StGuidePublishBubble) GetBackgroundImage() *StImage { - if x != nil { - return x.BackgroundImage - } - return nil -} - func (x *StGuidePublishBubble) GetJumpUrl() string { if x != nil && x.JumpUrl != nil { return *x.JumpUrl @@ -1112,13 +790,6 @@ func (x *StImage) GetPicUrl() string { return "" } -func (x *StImage) GetVecImageUrl() []*StImageUrl { - if x != nil { - return x.VecImageUrl - } - return nil -} - func (x *StImage) GetPicId() string { if x != nil && x.PicId != nil { return *x.PicId @@ -1126,13 +797,6 @@ func (x *StImage) GetPicId() string { return "" } -func (x *StImage) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - func (x *StImage) GetImageMD5() string { if x != nil && x.ImageMD5 != nil { return *x.ImageMD5 @@ -1197,13 +861,6 @@ func (x *StImageUrl) GetHeight() uint32 { return 0 } -func (x *StImageUrl) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - type StLightInteractInfo struct { User *StUser `protobuf:"bytes,1,opt"` Relation *StRelationInfo `protobuf:"bytes,2,opt"` @@ -1211,20 +868,6 @@ type StLightInteractInfo struct { BusiData []byte `protobuf:"bytes,4,opt"` } -func (x *StLightInteractInfo) GetUser() *StUser { - if x != nil { - return x.User - } - return nil -} - -func (x *StLightInteractInfo) GetRelation() *StRelationInfo { - if x != nil { - return x.Relation - } - return nil -} - func (x *StLightInteractInfo) GetCount() uint32 { if x != nil && x.Count != nil { return *x.Count @@ -1232,13 +875,6 @@ func (x *StLightInteractInfo) GetCount() uint32 { return 0 } -func (x *StLightInteractInfo) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - type StLike struct { Id *string `protobuf:"bytes,1,opt"` Count *uint32 `protobuf:"varint,2,opt"` @@ -1272,27 +908,6 @@ func (x *StLike) GetStatus() uint32 { return 0 } -func (x *StLike) GetVecUser() []*StUser { - if x != nil { - return x.VecUser - } - return nil -} - -func (x *StLike) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - -func (x *StLike) GetPostUser() *StUser { - if x != nil { - return x.PostUser - } - return nil -} - func (x *StLike) GetHasLikedCount() uint32 { if x != nil && x.HasLikedCount != nil { return *x.HasLikedCount @@ -1323,13 +938,6 @@ type StLiteBanner struct { ExtInfo []*CommonEntry `protobuf:"bytes,6,rep"` } -func (x *StLiteBanner) GetIcon() *StImage { - if x != nil { - return x.Icon - } - return nil -} - func (x *StLiteBanner) GetTitle() string { if x != nil && x.Title != nil { return *x.Title @@ -1358,13 +966,6 @@ func (x *StLiteBanner) GetJsonStyle() string { return "" } -func (x *StLiteBanner) GetExtInfo() []*CommonEntry { - if x != nil { - return x.ExtInfo - } - return nil -} - type StMaterialDataNew struct { MaterialType *string `protobuf:"bytes,1,opt"` MaterialList []*StSingleMaterial `protobuf:"bytes,2,rep"` @@ -1377,13 +978,6 @@ func (x *StMaterialDataNew) GetMaterialType() string { return "" } -func (x *StMaterialDataNew) GetMaterialList() []*StSingleMaterial { - if x != nil { - return x.MaterialList - } - return nil -} - type StMedalInfo struct { Type *int32 `protobuf:"varint,1,opt"` MedalName *string `protobuf:"bytes,2,opt"` @@ -1481,27 +1075,6 @@ type StNotice struct { PattonInfo *StNoticePattonInfo `protobuf:"bytes,3,opt"` } -func (x *StNotice) GetPsvFeed() *StFeed { - if x != nil { - return x.PsvFeed - } - return nil -} - -func (x *StNotice) GetOrigineFeed() *StFeed { - if x != nil { - return x.OrigineFeed - } - return nil -} - -func (x *StNotice) GetPattonInfo() *StNoticePattonInfo { - if x != nil { - return x.PattonInfo - } - return nil -} - type StNoticePattonInfo struct { PattonType *uint32 `protobuf:"varint,1,opt"` PlainTxt *StPlainTxtInfo `protobuf:"bytes,2,opt"` @@ -1514,62 +1087,20 @@ func (x *StNoticePattonInfo) GetPattonType() uint32 { return 0 } -func (x *StNoticePattonInfo) GetPlainTxt() *StPlainTxtInfo { - if x != nil { - return x.PlainTxt - } - return nil -} - type StNoticeTxtInfo struct { Content *StRichText `protobuf:"bytes,1,opt"` ContentOfReference *StRichText `protobuf:"bytes,2,opt"` } -func (x *StNoticeTxtInfo) GetContent() *StRichText { - if x != nil { - return x.Content - } - return nil -} - -func (x *StNoticeTxtInfo) GetContentOfReference() *StRichText { - if x != nil { - return x.ContentOfReference - } - return nil -} - type StOpinfo struct { CreateTime []uint64 `protobuf:"varint,1,rep"` } -func (x *StOpinfo) GetCreateTime() []uint64 { - if x != nil { - return x.CreateTime - } - return nil -} - type StPlainTxtInfo struct { TxtInfo *StNoticeTxtInfo `protobuf:"bytes,1,opt"` Operation *NoticeOperation `protobuf:"bytes,2,opt"` } -func (x *StPlainTxtInfo) GetTxtInfo() *StNoticeTxtInfo { - if x != nil { - return x.TxtInfo - } - return nil -} - -func (x *StPlainTxtInfo) GetOperation() *NoticeOperation { - if x != nil { - return x.Operation - } - return nil -} - type StPoiInfoV2 struct { PoiId *string `protobuf:"bytes,1,opt"` Name *string `protobuf:"bytes,2,opt"` @@ -1635,13 +1166,6 @@ func (x *StPoiInfoV2) GetDistrictCode() int32 { return 0 } -func (x *StPoiInfoV2) GetGps() *StGPSV2 { - if x != nil { - return x.Gps - } - return nil -} - func (x *StPoiInfoV2) GetDistance() int32 { if x != nil && x.Distance != nil { return *x.Distance @@ -1747,13 +1271,6 @@ func (x *StPrePullCacheFeed) GetId() string { return "" } -func (x *StPrePullCacheFeed) GetPoster() *StUser { - if x != nil { - return x.Poster - } - return nil -} - func (x *StPrePullCacheFeed) GetCreateTime() uint64 { if x != nil && x.CreateTime != nil { return *x.CreateTime @@ -1761,13 +1278,6 @@ func (x *StPrePullCacheFeed) GetCreateTime() uint64 { return 0 } -func (x *StPrePullCacheFeed) GetBusiTranparent() []*BytesEntry { - if x != nil { - return x.BusiTranparent - } - return nil -} - type StProxyInfo struct { CmdId *int32 `protobuf:"varint,1,opt"` SubCmdId *int32 `protobuf:"varint,2,opt"` @@ -1796,13 +1306,6 @@ func (x *StProxyInfo) GetAppProtocol() string { return "" } -func (x *StProxyInfo) GetReqBody() []byte { - if x != nil { - return x.ReqBody - } - return nil -} - type StRankingItem struct { User *StUser `protobuf:"bytes,1,opt"` Relation *StRelationInfo `protobuf:"bytes,2,opt"` @@ -1813,20 +1316,6 @@ type StRankingItem struct { InTopicList *int32 `protobuf:"varint,7,opt"` } -func (x *StRankingItem) GetUser() *StUser { - if x != nil { - return x.User - } - return nil -} - -func (x *StRankingItem) GetRelation() *StRelationInfo { - if x != nil { - return x.Relation - } - return nil -} - func (x *StRankingItem) GetScore() int64 { if x != nil && x.Score != nil { return *x.Score @@ -1841,13 +1330,6 @@ func (x *StRankingItem) GetGrade() int32 { return 0 } -func (x *StRankingItem) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - func (x *StRankingItem) GetRankNo() int32 { if x != nil && x.RankNo != nil { return *x.RankNo @@ -1893,13 +1375,6 @@ func (x *StRecomForward) GetSubtitle() string { return "" } -func (x *StRecomForward) GetPoster() *StUser { - if x != nil { - return x.Poster - } - return nil -} - func (x *StRecomForward) GetCreateTime() uint64 { if x != nil && x.CreateTime != nil { return *x.CreateTime @@ -1914,13 +1389,6 @@ func (x *StRecomForward) GetType() uint32 { return 0 } -func (x *StRecomForward) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - type StRecomInfo struct { RecomReason *string `protobuf:"bytes,1,opt"` RecomAttachInfo []byte `protobuf:"bytes,2,opt"` @@ -1937,13 +1405,6 @@ func (x *StRecomInfo) GetRecomReason() string { return "" } -func (x *StRecomInfo) GetRecomAttachInfo() []byte { - if x != nil { - return x.RecomAttachInfo - } - return nil -} - func (x *StRecomInfo) GetRecomTrace() string { if x != nil && x.RecomTrace != nil { return *x.RecomTrace @@ -1951,13 +1412,6 @@ func (x *StRecomInfo) GetRecomTrace() string { return "" } -func (x *StRecomInfo) GetClientSealData() []byte { - if x != nil { - return x.ClientSealData - } - return nil -} - func (x *StRecomInfo) GetIconUrl() string { if x != nil && x.IconUrl != nil { return *x.IconUrl @@ -1976,13 +1430,6 @@ type StRecomReportInfo struct { RecomInfos []*StSingleRecomReportInfo `protobuf:"bytes,1,rep"` } -func (x *StRecomReportInfo) GetRecomInfos() []*StSingleRecomReportInfo { - if x != nil { - return x.RecomInfos - } - return nil -} - type StRelationInfo struct { Id *string `protobuf:"bytes,1,opt"` Relation *uint32 `protobuf:"varint,2,opt"` @@ -2010,13 +1457,6 @@ func (x *StRelationInfo) GetRelation() uint32 { return 0 } -func (x *StRelationInfo) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - func (x *StRelationInfo) GetRelationState() uint32 { if x != nil && x.RelationState != nil { return *x.RelationState @@ -2093,13 +1533,6 @@ func (x *StReply) GetId() string { return "" } -func (x *StReply) GetPostUser() *StUser { - if x != nil { - return x.PostUser - } - return nil -} - func (x *StReply) GetCreateTime() uint64 { if x != nil && x.CreateTime != nil { return *x.CreateTime @@ -2114,27 +1547,6 @@ func (x *StReply) GetContent() string { return "" } -func (x *StReply) GetTargetUser() *StUser { - if x != nil { - return x.TargetUser - } - return nil -} - -func (x *StReply) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - -func (x *StReply) GetLikeInfo() *StLike { - if x != nil { - return x.LikeInfo - } - return nil -} - func (x *StReply) GetTypeFlag() uint32 { if x != nil && x.TypeFlag != nil { return *x.TypeFlag @@ -2149,13 +1561,6 @@ func (x *StReply) GetModifyflag() uint32 { return 0 } -func (x *StReply) GetAtUinList() []string { - if x != nil { - return x.AtUinList - } - return nil -} - func (x *StReply) GetTypeFlag2() uint32 { if x != nil && x.TypeFlag2 != nil { return *x.TypeFlag2 @@ -2170,13 +1575,6 @@ func (x *StReply) GetCreateTimeNs() uint64 { return 0 } -func (x *StReply) GetStoreExtInfo() []*CommonEntry { - if x != nil { - return x.StoreExtInfo - } - return nil -} - func (x *StReply) GetThirdId() string { if x != nil && x.ThirdId != nil { return *x.ThirdId @@ -2198,13 +1596,6 @@ func (x *StReply) GetSourceType() uint32 { return 0 } -func (x *StReply) GetRichContents() *StRichText { - if x != nil { - return x.RichContents - } - return nil -} - type StReportInfo struct { Id *string `protobuf:"bytes,1,opt"` BusiReport []byte `protobuf:"bytes,2,opt"` @@ -2217,24 +1608,10 @@ func (x *StReportInfo) GetId() string { return "" } -func (x *StReportInfo) GetBusiReport() []byte { - if x != nil { - return x.BusiReport - } - return nil -} - type StRichText struct { Contents []*StRichTextContent `protobuf:"bytes,1,rep"` } -func (x *StRichText) GetContents() []*StRichTextContent { - if x != nil { - return x.Contents - } - return nil -} - type StRichTextAtContent struct { Type *uint32 `protobuf:"varint,1,opt"` GuildInfo *GuildChannelBaseGuildInfo `protobuf:"bytes,2,opt"` @@ -2249,27 +1626,6 @@ func (x *StRichTextAtContent) GetType() uint32 { return 0 } -func (x *StRichTextAtContent) GetGuildInfo() *GuildChannelBaseGuildInfo { - if x != nil { - return x.GuildInfo - } - return nil -} - -func (x *StRichTextAtContent) GetRoleGroupId() *GuildChannelBaseRoleGroupInfo { - if x != nil { - return x.RoleGroupId - } - return nil -} - -func (x *StRichTextAtContent) GetUser() *StUser { - if x != nil { - return x.User - } - return nil -} - type GuildChannelBaseGuildInfo struct { GuildId *uint64 `protobuf:"varint,1,opt"` Name *string `protobuf:"bytes,2,opt"` @@ -2328,13 +1684,6 @@ type StRichTextChannelContent struct { ChannelInfo *StChannelInfo `protobuf:"bytes,1,opt"` } -func (x *StRichTextChannelContent) GetChannelInfo() *StChannelInfo { - if x != nil { - return x.ChannelInfo - } - return nil -} - type StRichTextContent struct { Type *uint32 `protobuf:"varint,1,opt"` PatternId *string `protobuf:"bytes,2,opt"` @@ -2359,41 +1708,6 @@ func (x *StRichTextContent) GetPatternId() string { return "" } -func (x *StRichTextContent) GetTextContent() *StRichTextTextContent { - if x != nil { - return x.TextContent - } - return nil -} - -func (x *StRichTextContent) GetAtContent() *StRichTextAtContent { - if x != nil { - return x.AtContent - } - return nil -} - -func (x *StRichTextContent) GetUrlContent() *StRichTextURLContent { - if x != nil { - return x.UrlContent - } - return nil -} - -func (x *StRichTextContent) GetEmojiContent() *StRichTextEmojiContent { - if x != nil { - return x.EmojiContent - } - return nil -} - -func (x *StRichTextContent) GetChannelContent() *StRichTextChannelContent { - if x != nil { - return x.ChannelContent - } - return nil -} - type StRichTextEmojiContent struct { Id *string `protobuf:"bytes,1,opt"` Type *string `protobuf:"bytes,2,opt"` @@ -2555,27 +1869,6 @@ func (x *StShare) GetUrl() string { return "" } -func (x *StShare) GetAuthor() *StUser { - if x != nil { - return x.Author - } - return nil -} - -func (x *StShare) GetPoster() *StUser { - if x != nil { - return x.Poster - } - return nil -} - -func (x *StShare) GetVideos() []*StVideo { - if x != nil { - return x.Videos - } - return nil -} - func (x *StShare) GetShorturl() string { if x != nil && x.Shorturl != nil { return *x.Shorturl @@ -2590,20 +1883,6 @@ func (x *StShare) GetShareCardInfo() string { return "" } -func (x *StShare) GetShareQzoneInfo() *StShareQzoneInfo { - if x != nil { - return x.ShareQzoneInfo - } - return nil -} - -func (x *StShare) GetImages() []*StImage { - if x != nil { - return x.Images - } - return nil -} - func (x *StShare) GetPublishTotalUser() uint32 { if x != nil && x.PublishTotalUser != nil { return *x.PublishTotalUser @@ -2618,24 +1897,10 @@ func (x *StShare) GetSharedCount() uint32 { return 0 } -func (x *StShare) GetChannelShareInfo() *StChannelShareInfo { - if x != nil { - return x.ChannelShareInfo - } - return nil -} - type StShareQzoneInfo struct { Entrys []*CommonEntry `protobuf:"bytes,1,rep"` } -func (x *StShareQzoneInfo) GetEntrys() []*CommonEntry { - if x != nil { - return x.Entrys - } - return nil -} - type StSingleMaterial struct { MaterialId *string `protobuf:"bytes,1,opt"` } @@ -2659,13 +1924,6 @@ func (x *StSingleRecomReportInfo) GetReportID() string { return "" } -func (x *StSingleRecomReportInfo) GetReportData() []byte { - if x != nil { - return x.ReportData - } - return nil -} - type StTagInfo struct { TagId *string `protobuf:"bytes,1,opt"` TagName *string `protobuf:"bytes,2,opt"` @@ -2713,20 +1971,6 @@ func (x *StTagInfo) GetTagDec() string { return "" } -func (x *StTagInfo) GetUserList() []*StUser { - if x != nil { - return x.UserList - } - return nil -} - -func (x *StTagInfo) GetFeedList() []*StFeedAbstract { - if x != nil { - return x.FeedList - } - return nil -} - func (x *StTagInfo) GetTagTotalUser() uint32 { if x != nil && x.TagTotalUser != nil { return *x.TagTotalUser @@ -2762,13 +2006,6 @@ func (x *StTagInfo) GetFollowState() uint32 { return 0 } -func (x *StTagInfo) GetShareInfo() *StShare { - if x != nil { - return x.ShareInfo - } - return nil -} - func (x *StTagInfo) GetIsTop() uint32 { if x != nil && x.IsTop != nil { return *x.IsTop @@ -2790,13 +2027,6 @@ func (x *StTagInfo) GetUserViewHistory() int64 { return 0 } -func (x *StTagInfo) GetMedal() *StTagMedalInfo { - if x != nil { - return x.Medal - } - return nil -} - func (x *StTagInfo) GetStatus() uint32 { if x != nil && x.Status != nil { return *x.Status @@ -2804,13 +2034,6 @@ func (x *StTagInfo) GetStatus() uint32 { return 0 } -func (x *StTagInfo) GetOptInfo() *StTagOperateInfo { - if x != nil { - return x.OptInfo - } - return nil -} - func (x *StTagInfo) GetTagBaseStatus() uint32 { if x != nil && x.TagBaseStatus != nil { return *x.TagBaseStatus @@ -3047,13 +2270,6 @@ func (x *StUser) GetNick() string { return "" } -func (x *StUser) GetIcon() *StIconInfo { - if x != nil { - return x.Icon - } - return nil -} - func (x *StUser) GetDesc() string { if x != nil && x.Desc != nil { return *x.Desc @@ -3103,13 +2319,6 @@ func (x *StUser) GetLocation() string { return "" } -func (x *StUser) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - func (x *StUser) GetFrdState() uint32 { if x != nil && x.FrdState != nil { return *x.FrdState @@ -3131,13 +2340,6 @@ func (x *StUser) GetBlackState() uint32 { return 0 } -func (x *StUser) GetMedal() *StTagMedalInfo { - if x != nil { - return x.Medal - } - return nil -} - func (x *StUser) GetConstellation() int32 { if x != nil && x.Constellation != nil { return *x.Constellation @@ -3187,13 +2389,6 @@ func (x *StUser) GetDescType() uint32 { return 0 } -func (x *StUser) GetChannelUserInfo() *GuildChannelBaseChannelUserInfo { - if x != nil { - return x.ChannelUserInfo - } - return nil -} - func (x *StUser) GetLoginId() string { if x != nil && x.LoginId != nil { return *x.LoginId @@ -3208,13 +2403,6 @@ type GuildChannelBaseChannelUserInfo struct { RoleGroups []*GuildChannelBaseRoleGroupInfo `protobuf:"bytes,4,rep"` } -func (x *GuildChannelBaseChannelUserInfo) GetClientIdentity() *ClientIdentity { - if x != nil { - return x.ClientIdentity - } - return nil -} - func (x *GuildChannelBaseChannelUserInfo) GetMemberType() uint32 { if x != nil && x.MemberType != nil { return *x.MemberType @@ -3222,13 +2410,6 @@ func (x *GuildChannelBaseChannelUserInfo) GetMemberType() uint32 { return 0 } -func (x *GuildChannelBaseChannelUserInfo) GetRoleGroups() []*GuildChannelBaseRoleGroupInfo { - if x != nil { - return x.RoleGroups - } - return nil -} - type StUserGroupInfo struct { Id *string `protobuf:"bytes,1,opt"` Name *string `protobuf:"bytes,2,opt"` @@ -3249,40 +2430,12 @@ func (x *StUserGroupInfo) GetName() string { return "" } -func (x *StUserGroupInfo) GetUserList() []*StUser { - if x != nil { - return x.UserList - } - return nil -} - type StUserRecomInfo struct { User *StUser `protobuf:"bytes,1,opt"` FeedList []*StFeedAbstract `protobuf:"bytes,2,rep"` BusiData []byte `protobuf:"bytes,3,opt"` } -func (x *StUserRecomInfo) GetUser() *StUser { - if x != nil { - return x.User - } - return nil -} - -func (x *StUserRecomInfo) GetFeedList() []*StFeedAbstract { - if x != nil { - return x.FeedList - } - return nil -} - -func (x *StUserRecomInfo) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - type StVideo struct { FileId *string `protobuf:"bytes,1,opt"` FileSize *uint32 `protobuf:"varint,2,opt"` @@ -3370,20 +2523,6 @@ func (x *StVideo) GetVideoRate() uint32 { return 0 } -func (x *StVideo) GetVecVideoUrl() []*StVideoUrl { - if x != nil { - return x.VecVideoUrl - } - return nil -} - -func (x *StVideo) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - func (x *StVideo) GetApprovalStatus() uint32 { if x != nil && x.ApprovalStatus != nil { return *x.ApprovalStatus @@ -3433,13 +2572,6 @@ func (x *StVideo) GetOrientation() uint32 { return 0 } -func (x *StVideo) GetCover() *StImage { - if x != nil { - return x.Cover - } - return nil -} - func (x *StVideo) GetPatternId() string { if x != nil && x.PatternId != nil { return *x.PatternId @@ -3499,13 +2631,6 @@ func (x *StVideoUrl) GetTransStatus() uint32 { return 0 } -func (x *StVideoUrl) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - func (x *StVideoUrl) GetHasWatermark() bool { if x != nil && x.HasWatermark != nil { return *x.HasWatermark @@ -3527,13 +2652,6 @@ func (x *StVisitor) GetViewCount() uint32 { return 0 } -func (x *StVisitor) GetBusiData() []byte { - if x != nil { - return x.BusiData - } - return nil -} - func (x *StVisitor) GetRecomCount() uint32 { if x != nil && x.RecomCount != nil { return *x.RecomCount @@ -3552,13 +2670,6 @@ type StWearingMedal struct { MedalInfos []*StWearingMedalInfo `protobuf:"bytes,1,rep"` } -func (x *StWearingMedal) GetMedalInfos() []*StWearingMedalInfo { - if x != nil { - return x.MedalInfos - } - return nil -} - type StWearingMedalInfo struct { Type *int32 `protobuf:"varint,1,opt"` MedalName *string `protobuf:"bytes,2,opt"` diff --git a/client/pb/channel/GuildFeedCloudMeta.proto b/client/pb/channel/GuildFeedCloudMeta.proto index 32c5e996..6e8a371c 100644 --- a/client/pb/channel/GuildFeedCloudMeta.proto +++ b/client/pb/channel/GuildFeedCloudMeta.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package channel; -option go_package = "pb/channel;channel"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/channel"; import "pb/channel/GuildChannelBase.proto"; diff --git a/client/pb/channel/GuildFeedCloudRead.pb.go b/client/pb/channel/GuildFeedCloudRead.pb.go index 3eb45781..2090257f 100644 --- a/client/pb/channel/GuildFeedCloudRead.pb.go +++ b/client/pb/channel/GuildFeedCloudRead.pb.go @@ -9,13 +9,6 @@ type GetNoticesReq struct { AttachInfo *string `protobuf:"bytes,3,opt"` } -func (x *GetNoticesReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - func (x *GetNoticesReq) GetPageNum() uint32 { if x != nil && x.PageNum != nil { return *x.PageNum @@ -38,20 +31,6 @@ type GetNoticesRsp struct { AttachInfo *string `protobuf:"bytes,5,opt"` } -func (x *GetNoticesRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *GetNoticesRsp) GetNotices() []*StNotice { - if x != nil { - return x.Notices - } - return nil -} - func (x *GetNoticesRsp) GetTotalNum() uint32 { if x != nil && x.TotalNum != nil { return *x.TotalNum @@ -103,13 +82,6 @@ type StGetChannelFeedsReq struct { FeedAttchInfo *string `protobuf:"bytes,5,opt"` } -func (x *StGetChannelFeedsReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - func (x *StGetChannelFeedsReq) GetCount() uint32 { if x != nil && x.Count != nil { return *x.Count @@ -124,13 +96,6 @@ func (x *StGetChannelFeedsReq) GetFrom() uint32 { return 0 } -func (x *StGetChannelFeedsReq) GetChannelSign() *StChannelSign { - if x != nil { - return x.ChannelSign - } - return nil -} - func (x *StGetChannelFeedsReq) GetFeedAttchInfo() string { if x != nil && x.FeedAttchInfo != nil { return *x.FeedAttchInfo @@ -147,20 +112,6 @@ type StGetChannelFeedsRsp struct { RefreshToast *RefreshToast `protobuf:"bytes,6,opt"` } -func (x *StGetChannelFeedsRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StGetChannelFeedsRsp) GetVecFeed() []*StFeed { - if x != nil { - return x.VecFeed - } - return nil -} - func (x *StGetChannelFeedsRsp) GetIsFinish() uint32 { if x != nil && x.IsFinish != nil { return *x.IsFinish @@ -168,13 +119,6 @@ func (x *StGetChannelFeedsRsp) GetIsFinish() uint32 { return 0 } -func (x *StGetChannelFeedsRsp) GetUser() *StUser { - if x != nil { - return x.User - } - return nil -} - func (x *StGetChannelFeedsRsp) GetFeedAttchInfo() string { if x != nil && x.FeedAttchInfo != nil { return *x.FeedAttchInfo @@ -182,26 +126,12 @@ func (x *StGetChannelFeedsRsp) GetFeedAttchInfo() string { return "" } -func (x *StGetChannelFeedsRsp) GetRefreshToast() *RefreshToast { - if x != nil { - return x.RefreshToast - } - return nil -} - type StGetChannelShareFeedReq struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` From *uint32 `protobuf:"varint,2,opt"` ChannelShareInfo *StChannelShareInfo `protobuf:"bytes,3,opt"` } -func (x *StGetChannelShareFeedReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - func (x *StGetChannelShareFeedReq) GetFrom() uint32 { if x != nil && x.From != nil { return *x.From @@ -209,32 +139,11 @@ func (x *StGetChannelShareFeedReq) GetFrom() uint32 { return 0 } -func (x *StGetChannelShareFeedReq) GetChannelShareInfo() *StChannelShareInfo { - if x != nil { - return x.ChannelShareInfo - } - return nil -} - type StGetChannelShareFeedRsp struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` Feed *StFeed `protobuf:"bytes,2,opt"` } -func (x *StGetChannelShareFeedRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StGetChannelShareFeedRsp) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - type StGetFeedCommentsReq struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` UserId *string `protobuf:"bytes,2,opt"` @@ -245,13 +154,6 @@ type StGetFeedCommentsReq struct { EntrySchema *string `protobuf:"bytes,7,opt"` } -func (x *StGetFeedCommentsReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - func (x *StGetFeedCommentsReq) GetUserId() string { if x != nil && x.UserId != nil { return *x.UserId @@ -302,20 +204,6 @@ type StGetFeedCommentsRsp struct { AttchInfo *string `protobuf:"bytes,5,opt"` } -func (x *StGetFeedCommentsRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StGetFeedCommentsRsp) GetVecComment() []*StComment { - if x != nil { - return x.VecComment - } - return nil -} - func (x *StGetFeedCommentsRsp) GetTotalNum() uint32 { if x != nil && x.TotalNum != nil { return *x.TotalNum @@ -347,13 +235,6 @@ type StGetFeedDetailReq struct { ChannelSign *StChannelSign `protobuf:"bytes,7,opt"` } -func (x *StGetFeedDetailReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - func (x *StGetFeedDetailReq) GetFrom() uint32 { if x != nil && x.From != nil { return *x.From @@ -389,36 +270,8 @@ func (x *StGetFeedDetailReq) GetDetailType() uint32 { return 0 } -func (x *StGetFeedDetailReq) GetChannelSign() *StChannelSign { - if x != nil { - return x.ChannelSign - } - return nil -} - type StGetFeedDetailRsp struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` Feed *StFeed `protobuf:"bytes,2,opt"` LoginUser *StUser `protobuf:"bytes,3,opt"` } - -func (x *StGetFeedDetailRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StGetFeedDetailRsp) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - -func (x *StGetFeedDetailRsp) GetLoginUser() *StUser { - if x != nil { - return x.LoginUser - } - return nil -} diff --git a/client/pb/channel/GuildFeedCloudRead.proto b/client/pb/channel/GuildFeedCloudRead.proto index 5ae9204c..f5733f97 100644 --- a/client/pb/channel/GuildFeedCloudRead.proto +++ b/client/pb/channel/GuildFeedCloudRead.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package channel; -option go_package = "pb/channel;channel"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/channel"; import "pb/channel/GuildFeedCloudMeta.proto"; import "pb/channel/GuildChannelBase.proto"; diff --git a/client/pb/channel/GuildWriter.pb.go b/client/pb/channel/GuildWriter.pb.go index 82e52b0f..dfcc5544 100644 --- a/client/pb/channel/GuildWriter.pb.go +++ b/client/pb/channel/GuildWriter.pb.go @@ -15,27 +15,6 @@ type StAlterFeedReq struct { ClientContent *StClientContent `protobuf:"bytes,9,opt"` } -func (x *StAlterFeedReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StAlterFeedReq) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - -func (x *StAlterFeedReq) GetBusiReqData() []byte { - if x != nil { - return x.BusiReqData - } - return nil -} - func (x *StAlterFeedReq) GetMBitmap() uint64 { if x != nil && x.MBitmap != nil { return *x.MBitmap @@ -57,13 +36,6 @@ func (x *StAlterFeedReq) GetSrc() int32 { return 0 } -func (x *StAlterFeedReq) GetAlterFeedExtInfo() []*CommonEntry { - if x != nil { - return x.AlterFeedExtInfo - } - return nil -} - func (x *StAlterFeedReq) GetJsonFeed() string { if x != nil && x.JsonFeed != nil { return *x.JsonFeed @@ -71,59 +43,17 @@ func (x *StAlterFeedReq) GetJsonFeed() string { return "" } -func (x *StAlterFeedReq) GetClientContent() *StClientContent { - if x != nil { - return x.ClientContent - } - return nil -} - type StAlterFeedRsp struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` Feed *StFeed `protobuf:"bytes,2,opt"` BusiRspData []byte `protobuf:"bytes,3,opt"` } -func (x *StAlterFeedRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StAlterFeedRsp) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - -func (x *StAlterFeedRsp) GetBusiRspData() []byte { - if x != nil { - return x.BusiRspData - } - return nil -} - type StClientContent struct { ClientImageContents []*StClientImageContent `protobuf:"bytes,1,rep"` ClientVideoContents []*StClientVideoContent `protobuf:"bytes,2,rep"` } -func (x *StClientContent) GetClientImageContents() []*StClientImageContent { - if x != nil { - return x.ClientImageContents - } - return nil -} - -func (x *StClientContent) GetClientVideoContents() []*StClientVideoContent { - if x != nil { - return x.ClientVideoContents - } - return nil -} - type StClientImageContent struct { TaskId *string `protobuf:"bytes,1,opt"` PicId *string `protobuf:"bytes,2,opt"` @@ -193,20 +123,6 @@ type StDelFeedReq struct { Src *int32 `protobuf:"varint,4,opt"` } -func (x *StDelFeedReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StDelFeedReq) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - func (x *StDelFeedReq) GetFrom() int32 { if x != nil && x.From != nil { return *x.From @@ -225,13 +141,6 @@ type StDelFeedRsp struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` } -func (x *StDelFeedRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - type StDoCommentReq struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` CommentType *uint32 `protobuf:"varint,2,opt"` @@ -242,13 +151,6 @@ type StDoCommentReq struct { Src *int32 `protobuf:"varint,7,opt"` } -func (x *StDoCommentReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - func (x *StDoCommentReq) GetCommentType() uint32 { if x != nil && x.CommentType != nil { return *x.CommentType @@ -256,20 +158,6 @@ func (x *StDoCommentReq) GetCommentType() uint32 { return 0 } -func (x *StDoCommentReq) GetComment() *StComment { - if x != nil { - return x.Comment - } - return nil -} - -func (x *StDoCommentReq) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - func (x *StDoCommentReq) GetFrom() int32 { if x != nil && x.From != nil { return *x.From @@ -277,13 +165,6 @@ func (x *StDoCommentReq) GetFrom() int32 { return 0 } -func (x *StDoCommentReq) GetBusiReqData() []byte { - if x != nil { - return x.BusiReqData - } - return nil -} - func (x *StDoCommentReq) GetSrc() int32 { if x != nil && x.Src != nil { return *x.Src @@ -297,27 +178,6 @@ type StDoCommentRsp struct { BusiRspData []byte `protobuf:"bytes,3,opt"` } -func (x *StDoCommentRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StDoCommentRsp) GetComment() *StComment { - if x != nil { - return x.Comment - } - return nil -} - -func (x *StDoCommentRsp) GetBusiRspData() []byte { - if x != nil { - return x.BusiRspData - } - return nil -} - type StDoLikeReq struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` LikeType *uint32 `protobuf:"varint,2,opt"` @@ -331,13 +191,6 @@ type StDoLikeReq struct { EmotionReaction *StEmotionReactionInfo `protobuf:"bytes,10,opt"` } -func (x *StDoLikeReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - func (x *StDoLikeReq) GetLikeType() uint32 { if x != nil && x.LikeType != nil { return *x.LikeType @@ -345,41 +198,6 @@ func (x *StDoLikeReq) GetLikeType() uint32 { return 0 } -func (x *StDoLikeReq) GetLike() *StLike { - if x != nil { - return x.Like - } - return nil -} - -func (x *StDoLikeReq) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - -func (x *StDoLikeReq) GetBusiReqData() []byte { - if x != nil { - return x.BusiReqData - } - return nil -} - -func (x *StDoLikeReq) GetComment() *StComment { - if x != nil { - return x.Comment - } - return nil -} - -func (x *StDoLikeReq) GetReply() *StReply { - if x != nil { - return x.Reply - } - return nil -} - func (x *StDoLikeReq) GetFrom() int32 { if x != nil && x.From != nil { return *x.From @@ -394,13 +212,6 @@ func (x *StDoLikeReq) GetSrc() int32 { return 0 } -func (x *StDoLikeReq) GetEmotionReaction() *StEmotionReactionInfo { - if x != nil { - return x.EmotionReaction - } - return nil -} - type StDoLikeRsp struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` Like *StLike `protobuf:"bytes,2,opt"` @@ -408,34 +219,6 @@ type StDoLikeRsp struct { EmotionReaction *StEmotionReactionInfo `protobuf:"bytes,4,opt"` } -func (x *StDoLikeRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StDoLikeRsp) GetLike() *StLike { - if x != nil { - return x.Like - } - return nil -} - -func (x *StDoLikeRsp) GetBusiRspData() []byte { - if x != nil { - return x.BusiRspData - } - return nil -} - -func (x *StDoLikeRsp) GetEmotionReaction() *StEmotionReactionInfo { - if x != nil { - return x.EmotionReaction - } - return nil -} - type StDoReplyReq struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` ReplyType *uint32 `protobuf:"varint,2,opt"` @@ -447,13 +230,6 @@ type StDoReplyReq struct { Src *int32 `protobuf:"varint,8,opt"` } -func (x *StDoReplyReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - func (x *StDoReplyReq) GetReplyType() uint32 { if x != nil && x.ReplyType != nil { return *x.ReplyType @@ -461,27 +237,6 @@ func (x *StDoReplyReq) GetReplyType() uint32 { return 0 } -func (x *StDoReplyReq) GetReply() *StReply { - if x != nil { - return x.Reply - } - return nil -} - -func (x *StDoReplyReq) GetComment() *StComment { - if x != nil { - return x.Comment - } - return nil -} - -func (x *StDoReplyReq) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - func (x *StDoReplyReq) GetFrom() int32 { if x != nil && x.From != nil { return *x.From @@ -489,13 +244,6 @@ func (x *StDoReplyReq) GetFrom() int32 { return 0 } -func (x *StDoReplyReq) GetBusiReqData() []byte { - if x != nil { - return x.BusiReqData - } - return nil -} - func (x *StDoReplyReq) GetSrc() int32 { if x != nil && x.Src != nil { return *x.Src @@ -509,27 +257,6 @@ type StDoReplyRsp struct { BusiRspData []byte `protobuf:"bytes,3,opt"` } -func (x *StDoReplyRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StDoReplyRsp) GetReply() *StReply { - if x != nil { - return x.Reply - } - return nil -} - -func (x *StDoReplyRsp) GetBusiRspData() []byte { - if x != nil { - return x.BusiRspData - } - return nil -} - type StDoSecurityReq struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` Feed *StFeed `protobuf:"bytes,2,opt"` @@ -539,41 +266,6 @@ type StDoSecurityReq struct { SecType *int32 `protobuf:"varint,6,opt"` } -func (x *StDoSecurityReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StDoSecurityReq) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - -func (x *StDoSecurityReq) GetComment() *StComment { - if x != nil { - return x.Comment - } - return nil -} - -func (x *StDoSecurityReq) GetReply() *StReply { - if x != nil { - return x.Reply - } - return nil -} - -func (x *StDoSecurityReq) GetPoster() *StUser { - if x != nil { - return x.Poster - } - return nil -} - func (x *StDoSecurityReq) GetSecType() int32 { if x != nil && x.SecType != nil { return *x.SecType @@ -585,13 +277,6 @@ type StDoSecurityRsp struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` } -func (x *StDoSecurityRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - type StModifyFeedReq struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` Feed *StFeed `protobuf:"bytes,2,opt"` @@ -601,20 +286,6 @@ type StModifyFeedReq struct { ModifyFeedExtInfo []*CommonEntry `protobuf:"bytes,6,rep"` } -func (x *StModifyFeedReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StModifyFeedReq) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - func (x *StModifyFeedReq) GetMBitmap() uint64 { if x != nil && x.MBitmap != nil { return *x.MBitmap @@ -636,40 +307,12 @@ func (x *StModifyFeedReq) GetSrc() int32 { return 0 } -func (x *StModifyFeedReq) GetModifyFeedExtInfo() []*CommonEntry { - if x != nil { - return x.ModifyFeedExtInfo - } - return nil -} - type StModifyFeedRsp struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` Feed *StFeed `protobuf:"bytes,2,opt"` BusiRspData []byte `protobuf:"bytes,3,opt"` } -func (x *StModifyFeedRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StModifyFeedRsp) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - -func (x *StModifyFeedRsp) GetBusiRspData() []byte { - if x != nil { - return x.BusiRspData - } - return nil -} - type StPublishFeedReq struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` Feed *StFeed `protobuf:"bytes,2,opt"` @@ -681,27 +324,6 @@ type StPublishFeedReq struct { ClientContent *StClientContent `protobuf:"bytes,8,opt"` } -func (x *StPublishFeedReq) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StPublishFeedReq) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - -func (x *StPublishFeedReq) GetBusiReqData() []byte { - if x != nil { - return x.BusiReqData - } - return nil -} - func (x *StPublishFeedReq) GetFrom() int32 { if x != nil && x.From != nil { return *x.From @@ -716,13 +338,6 @@ func (x *StPublishFeedReq) GetSrc() int32 { return 0 } -func (x *StPublishFeedReq) GetStoreFeedExtInfo() []*CommonEntry { - if x != nil { - return x.StoreFeedExtInfo - } - return nil -} - func (x *StPublishFeedReq) GetJsonFeed() string { if x != nil && x.JsonFeed != nil { return *x.JsonFeed @@ -730,36 +345,8 @@ func (x *StPublishFeedReq) GetJsonFeed() string { return "" } -func (x *StPublishFeedReq) GetClientContent() *StClientContent { - if x != nil { - return x.ClientContent - } - return nil -} - type StPublishFeedRsp struct { ExtInfo *StCommonExt `protobuf:"bytes,1,opt"` Feed *StFeed `protobuf:"bytes,2,opt"` BusiRspData []byte `protobuf:"bytes,3,opt"` } - -func (x *StPublishFeedRsp) GetExtInfo() *StCommonExt { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *StPublishFeedRsp) GetFeed() *StFeed { - if x != nil { - return x.Feed - } - return nil -} - -func (x *StPublishFeedRsp) GetBusiRspData() []byte { - if x != nil { - return x.BusiRspData - } - return nil -} diff --git a/client/pb/channel/GuildWriter.proto b/client/pb/channel/GuildWriter.proto index fb641d74..f617f23e 100644 --- a/client/pb/channel/GuildWriter.proto +++ b/client/pb/channel/GuildWriter.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package channel; -option go_package = "pb/channel;channel"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/channel"; import "pb/channel/GuildFeedCloudMeta.proto"; import "pb/channel/GuildChannelBase.proto"; diff --git a/client/pb/channel/MsgResponsesSvr.pb.go b/client/pb/channel/MsgResponsesSvr.pb.go index 23422119..1b277edd 100644 --- a/client/pb/channel/MsgResponsesSvr.pb.go +++ b/client/pb/channel/MsgResponsesSvr.pb.go @@ -7,24 +7,10 @@ type BatchGetMsgRspCountReq struct { GuildMsgList []*GuildMsg `protobuf:"bytes,1,rep"` } -func (x *BatchGetMsgRspCountReq) GetGuildMsgList() []*GuildMsg { - if x != nil { - return x.GuildMsgList - } - return nil -} - type BatchGetMsgRspCountRsp struct { GuildMsgInfoList []*GuildMsgInfo `protobuf:"bytes,1,rep"` } -func (x *BatchGetMsgRspCountRsp) GetGuildMsgInfoList() []*GuildMsgInfo { - if x != nil { - return x.GuildMsgInfoList - } - return nil -} - type SvrChannelMsg struct { ChannelId *uint64 `protobuf:"varint,1,opt"` Id []*MsgId `protobuf:"bytes,2,rep"` @@ -37,13 +23,6 @@ func (x *SvrChannelMsg) GetChannelId() uint64 { return 0 } -func (x *SvrChannelMsg) GetId() []*MsgId { - if x != nil { - return x.Id - } - return nil -} - type ChannelMsgInfo struct { ChannelId *uint64 `protobuf:"varint,1,opt"` RespData []*MsgRespData `protobuf:"bytes,2,rep"` @@ -56,13 +35,6 @@ func (x *ChannelMsgInfo) GetChannelId() uint64 { return 0 } -func (x *ChannelMsgInfo) GetRespData() []*MsgRespData { - if x != nil { - return x.RespData - } - return nil -} - type EmojiReaction struct { EmojiId *string `protobuf:"bytes,1,opt"` EmojiType *uint64 `protobuf:"varint,2,opt"` @@ -118,13 +90,6 @@ func (x *GuildMsg) GetGuildId() uint64 { return 0 } -func (x *GuildMsg) GetChannelMsgList() []*SvrChannelMsg { - if x != nil { - return x.ChannelMsgList - } - return nil -} - type GuildMsgInfo struct { GuildId *uint64 `protobuf:"varint,1,opt"` ChannelMsgInfoList []*ChannelMsgInfo `protobuf:"bytes,2,rep"` @@ -137,32 +102,11 @@ func (x *GuildMsgInfo) GetGuildId() uint64 { return 0 } -func (x *GuildMsgInfo) GetChannelMsgInfoList() []*ChannelMsgInfo { - if x != nil { - return x.ChannelMsgInfoList - } - return nil -} - type MsgCnt struct { Id *MsgId `protobuf:"bytes,1,opt"` EmojiReaction []*EmojiReaction `protobuf:"bytes,2,rep"` } -func (x *MsgCnt) GetId() *MsgId { - if x != nil { - return x.Id - } - return nil -} - -func (x *MsgCnt) GetEmojiReaction() []*EmojiReaction { - if x != nil { - return x.EmojiReaction - } - return nil -} - type MsgId struct { Version *uint64 `protobuf:"varint,1,opt"` Seq *uint64 `protobuf:"varint,2,opt"` @@ -186,17 +130,3 @@ type MsgRespData struct { Id *MsgId `protobuf:"bytes,1,opt"` Cnt []byte `protobuf:"bytes,2,opt"` } - -func (x *MsgRespData) GetId() *MsgId { - if x != nil { - return x.Id - } - return nil -} - -func (x *MsgRespData) GetCnt() []byte { - if x != nil { - return x.Cnt - } - return nil -} diff --git a/client/pb/channel/MsgResponsesSvr.proto b/client/pb/channel/MsgResponsesSvr.proto index 0c8397d5..2ac2c072 100644 --- a/client/pb/channel/MsgResponsesSvr.proto +++ b/client/pb/channel/MsgResponsesSvr.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "pb/channel;channel"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/channel"; message BatchGetMsgRspCountReq { repeated GuildMsg guildMsgList = 1; diff --git a/client/pb/channel/common.pb.go b/client/pb/channel/common.pb.go index 637bc052..da0da0b7 100644 --- a/client/pb/channel/common.pb.go +++ b/client/pb/channel/common.pb.go @@ -59,13 +59,6 @@ func (x *ChannelContentHead) GetTime() uint64 { return 0 } -func (x *ChannelContentHead) GetMeta() []byte { - if x != nil { - return x.Meta - } - return nil -} - type DirectMessageMember struct { Uin *uint64 `protobuf:"varint,1,opt"` Tinyid *uint64 `protobuf:"varint,2,opt"` @@ -97,27 +90,6 @@ func (x *DirectMessageMember) GetSourceGuildId() uint64 { return 0 } -func (x *DirectMessageMember) GetSourceGuildName() []byte { - if x != nil { - return x.SourceGuildName - } - return nil -} - -func (x *DirectMessageMember) GetNickName() []byte { - if x != nil { - return x.NickName - } - return nil -} - -func (x *DirectMessageMember) GetMemberName() []byte { - if x != nil { - return x.MemberName - } - return nil -} - func (x *DirectMessageMember) GetNotifyType() uint32 { if x != nil && x.NotifyType != nil { return *x.NotifyType @@ -145,13 +117,6 @@ func (x *ChannelEvent) GetVersion() uint64 { return 0 } -func (x *ChannelEvent) GetOpInfo() *ChannelMsgOpInfo { - if x != nil { - return x.OpInfo - } - return nil -} - type ChannelExtInfo struct { FromNick []byte `protobuf:"bytes,1,opt"` GuildName []byte `protobuf:"bytes,2,opt"` @@ -169,27 +134,6 @@ type ChannelExtInfo struct { DirectMessageMember []*DirectMessageMember `protobuf:"bytes,14,rep"` } -func (x *ChannelExtInfo) GetFromNick() []byte { - if x != nil { - return x.FromNick - } - return nil -} - -func (x *ChannelExtInfo) GetGuildName() []byte { - if x != nil { - return x.GuildName - } - return nil -} - -func (x *ChannelExtInfo) GetChannelName() []byte { - if x != nil { - return x.ChannelName - } - return nil -} - func (x *ChannelExtInfo) GetVisibility() uint32 { if x != nil && x.Visibility != nil { return *x.Visibility @@ -218,13 +162,6 @@ func (x *ChannelExtInfo) GetNameType() uint32 { return 0 } -func (x *ChannelExtInfo) GetMemberName() []byte { - if x != nil { - return x.MemberName - } - return nil -} - func (x *ChannelExtInfo) GetTimestamp() uint32 { if x != nil && x.Timestamp != nil { return *x.Timestamp @@ -239,34 +176,6 @@ func (x *ChannelExtInfo) GetEventVersion() uint64 { return 0 } -func (x *ChannelExtInfo) GetEvents() []*ChannelEvent { - if x != nil { - return x.Events - } - return nil -} - -func (x *ChannelExtInfo) GetFromRoleInfo() *ChannelRole { - if x != nil { - return x.FromRoleInfo - } - return nil -} - -func (x *ChannelExtInfo) GetFreqLimitInfo() *ChannelFreqLimitInfo { - if x != nil { - return x.FreqLimitInfo - } - return nil -} - -func (x *ChannelExtInfo) GetDirectMessageMember() []*DirectMessageMember { - if x != nil { - return x.DirectMessageMember - } - return nil -} - type ChannelFreqLimitInfo struct { IsLimited *uint32 `protobuf:"varint,1,opt"` LeftCount *uint32 `protobuf:"varint,2,opt"` @@ -308,13 +217,6 @@ func (x *ChannelInfo) GetId() uint64 { return 0 } -func (x *ChannelInfo) GetName() []byte { - if x != nil { - return x.Name - } - return nil -} - func (x *ChannelInfo) GetColor() uint32 { if x != nil && x.Color != nil { return *x.Color @@ -342,13 +244,6 @@ func (x *ChannelLoginSig) GetType() uint32 { return 0 } -func (x *ChannelLoginSig) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - func (x *ChannelLoginSig) GetAppid() uint32 { if x != nil && x.Appid != nil { return *x.Appid @@ -368,13 +263,6 @@ func (x *ChannelMeta) GetFromUin() uint64 { return 0 } -func (x *ChannelMeta) GetLoginSig() *ChannelLoginSig { - if x != nil { - return x.LoginSig - } - return nil -} - type ChannelMsgContent struct { Head *ChannelMsgHead `protobuf:"bytes,1,opt"` CtrlHead *ChannelMsgCtrlHead `protobuf:"bytes,2,opt"` @@ -382,34 +270,6 @@ type ChannelMsgContent struct { ExtInfo *ChannelExtInfo `protobuf:"bytes,4,opt"` } -func (x *ChannelMsgContent) GetHead() *ChannelMsgHead { - if x != nil { - return x.Head - } - return nil -} - -func (x *ChannelMsgContent) GetCtrlHead() *ChannelMsgCtrlHead { - if x != nil { - return x.CtrlHead - } - return nil -} - -func (x *ChannelMsgContent) GetBody() *msg.MessageBody { - if x != nil { - return x.Body - } - return nil -} - -func (x *ChannelMsgContent) GetExtInfo() *ChannelExtInfo { - if x != nil { - return x.ExtInfo - } - return nil -} - type ChannelMsgCtrlHead struct { IncludeUin [][]byte `protobuf:"bytes,1,rep"` // repeated uint64 excludeUin = 2; // bytes? @@ -426,13 +286,6 @@ type ChannelMsgCtrlHead struct { PrivateType *uint32 `protobuf:"varint,13,opt"` } -func (x *ChannelMsgCtrlHead) GetIncludeUin() [][]byte { - if x != nil { - return x.IncludeUin - } - return nil -} - func (x *ChannelMsgCtrlHead) GetOfflineFlag() uint32 { if x != nil && x.OfflineFlag != nil { return *x.OfflineFlag @@ -454,13 +307,6 @@ func (x *ChannelMsgCtrlHead) GetCtrlFlag() uint64 { return 0 } -func (x *ChannelMsgCtrlHead) GetEvents() []*ChannelEvent { - if x != nil { - return x.Events - } - return nil -} - func (x *ChannelMsgCtrlHead) GetLevel() uint64 { if x != nil && x.Level != nil { return *x.Level @@ -468,13 +314,6 @@ func (x *ChannelMsgCtrlHead) GetLevel() uint64 { return 0 } -func (x *ChannelMsgCtrlHead) GetPersonalLevels() []*PersonalLevel { - if x != nil { - return x.PersonalLevels - } - return nil -} - func (x *ChannelMsgCtrlHead) GetGuildSyncSeq() uint64 { if x != nil && x.GuildSyncSeq != nil { return *x.GuildSyncSeq @@ -508,20 +347,6 @@ type ChannelMsgHead struct { ContentHead *ChannelContentHead `protobuf:"bytes,2,opt"` } -func (x *ChannelMsgHead) GetRoutingHead() *ChannelRoutingHead { - if x != nil { - return x.RoutingHead - } - return nil -} - -func (x *ChannelMsgHead) GetContentHead() *ChannelContentHead { - if x != nil { - return x.ContentHead - } - return nil -} - type ChannelMsgMeta struct { AtAllSeq *uint64 `protobuf:"varint,1,opt"` } @@ -608,13 +433,6 @@ func (x *ChannelRole) GetId() uint64 { return 0 } -func (x *ChannelRole) GetInfo() []byte { - if x != nil { - return x.Info - } - return nil -} - func (x *ChannelRole) GetFlag() uint32 { if x != nil && x.Flag != nil { return *x.Flag diff --git a/client/pb/channel/common.proto b/client/pb/channel/common.proto index 91ead324..6b7e195e 100644 --- a/client/pb/channel/common.proto +++ b/client/pb/channel/common.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package channel; -option go_package = "pb/channel;channel"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/channel;channel"; import "pb/msg/msg.proto"; diff --git a/client/pb/channel/msgpush.pb.go b/client/pb/channel/msgpush.pb.go index bc66d6f9..cb458c8f 100644 --- a/client/pb/channel/msgpush.pb.go +++ b/client/pb/channel/msgpush.pb.go @@ -7,13 +7,6 @@ type FocusInfo struct { ChannelIdList []uint64 `protobuf:"varint,1,rep"` } -func (x *FocusInfo) GetChannelIdList() []uint64 { - if x != nil { - return x.ChannelIdList - } - return nil -} - type MsgOnlinePush struct { Msgs []*ChannelMsgContent `protobuf:"bytes,1,rep"` GeneralFlag *uint32 `protobuf:"varint,2,opt"` @@ -25,13 +18,6 @@ type MsgOnlinePush struct { HugeFlag *uint32 `protobuf:"varint,8,opt"` } -func (x *MsgOnlinePush) GetMsgs() []*ChannelMsgContent { - if x != nil { - return x.Msgs - } - return nil -} - func (x *MsgOnlinePush) GetGeneralFlag() uint32 { if x != nil && x.GeneralFlag != nil { return *x.GeneralFlag @@ -46,13 +32,6 @@ func (x *MsgOnlinePush) GetNeedResp() uint32 { return 0 } -func (x *MsgOnlinePush) GetServerBuf() []byte { - if x != nil { - return x.ServerBuf - } - return nil -} - func (x *MsgOnlinePush) GetCompressFlag() uint32 { if x != nil && x.CompressFlag != nil { return *x.CompressFlag @@ -60,20 +39,6 @@ func (x *MsgOnlinePush) GetCompressFlag() uint32 { return 0 } -func (x *MsgOnlinePush) GetCompressMsg() []byte { - if x != nil { - return x.CompressMsg - } - return nil -} - -func (x *MsgOnlinePush) GetFocusInfo() *FocusInfo { - if x != nil { - return x.FocusInfo - } - return nil -} - func (x *MsgOnlinePush) GetHugeFlag() uint32 { if x != nil && x.HugeFlag != nil { return *x.HugeFlag @@ -85,24 +50,10 @@ type MsgPushResp struct { ServerBuf []byte `protobuf:"bytes,1,opt"` } -func (x *MsgPushResp) GetServerBuf() []byte { - if x != nil { - return x.ServerBuf - } - return nil -} - type PressMsg struct { Msgs []*ChannelMsgContent `protobuf:"bytes,1,rep"` } -func (x *PressMsg) GetMsgs() []*ChannelMsgContent { - if x != nil { - return x.Msgs - } - return nil -} - type ServerBuf struct { SvrIp *uint32 `protobuf:"varint,1,opt"` SvrPort *uint32 `protobuf:"varint,2,opt"` @@ -122,10 +73,3 @@ func (x *ServerBuf) GetSvrPort() uint32 { } return 0 } - -func (x *ServerBuf) GetEchoKey() []byte { - if x != nil { - return x.EchoKey - } - return nil -} diff --git a/client/pb/channel/msgpush.proto b/client/pb/channel/msgpush.proto index a686ae08..6a0af343 100644 --- a/client/pb/channel/msgpush.proto +++ b/client/pb/channel/msgpush.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package channel; -option go_package = "pb/channel;channel"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/channel"; import "pb/channel/common.proto"; diff --git a/client/pb/channel/oidb0xf62.pb.go b/client/pb/channel/oidb0xf62.pb.go index a41a2588..ccbaa3d8 100644 --- a/client/pb/channel/oidb0xf62.pb.go +++ b/client/pb/channel/oidb0xf62.pb.go @@ -11,13 +11,6 @@ type DF62ReqBody struct { Msg *ChannelMsgContent `protobuf:"bytes,1,opt"` } -func (x *DF62ReqBody) GetMsg() *ChannelMsgContent { - if x != nil { - return x.Msg - } - return nil -} - type DF62RspBody struct { Result *uint32 `protobuf:"varint,1,opt"` Errmsg []byte `protobuf:"bytes,2,opt"` @@ -36,13 +29,6 @@ func (x *DF62RspBody) GetResult() uint32 { return 0 } -func (x *DF62RspBody) GetErrmsg() []byte { - if x != nil { - return x.Errmsg - } - return nil -} - func (x *DF62RspBody) GetSendTime() uint32 { if x != nil && x.SendTime != nil { return *x.SendTime @@ -50,13 +36,6 @@ func (x *DF62RspBody) GetSendTime() uint32 { return 0 } -func (x *DF62RspBody) GetHead() *ChannelMsgHead { - if x != nil { - return x.Head - } - return nil -} - func (x *DF62RspBody) GetErrType() uint32 { if x != nil && x.ErrType != nil { return *x.ErrType @@ -64,27 +43,6 @@ func (x *DF62RspBody) GetErrType() uint32 { return 0 } -func (x *DF62RspBody) GetTransSvrInfo() *TransSvrInfo { - if x != nil { - return x.TransSvrInfo - } - return nil -} - -func (x *DF62RspBody) GetFreqLimitInfo() *ChannelFreqLimitInfo { - if x != nil { - return x.FreqLimitInfo - } - return nil -} - -func (x *DF62RspBody) GetBody() *msg.MessageBody { - if x != nil { - return x.Body - } - return nil -} - type TransSvrInfo struct { SubType *uint32 `protobuf:"varint,1,opt"` RetCode *int32 `protobuf:"varint,2,opt"` @@ -105,17 +63,3 @@ func (x *TransSvrInfo) GetRetCode() int32 { } return 0 } - -func (x *TransSvrInfo) GetErrMsg() []byte { - if x != nil { - return x.ErrMsg - } - return nil -} - -func (x *TransSvrInfo) GetTransInfo() []byte { - if x != nil { - return x.TransInfo - } - return nil -} diff --git a/client/pb/channel/oidb0xf62.proto b/client/pb/channel/oidb0xf62.proto index 4e5f0ac1..5c09056c 100644 --- a/client/pb/channel/oidb0xf62.proto +++ b/client/pb/channel/oidb0xf62.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package channel; -option go_package = "pb/channel;channel"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/channel"; import "pb/channel/common.proto"; import "pb/msg/msg.proto"; diff --git a/client/pb/channel/servtype.pb.go b/client/pb/channel/servtype.pb.go index 52d3b1ff..005f456e 100644 --- a/client/pb/channel/servtype.pb.go +++ b/client/pb/channel/servtype.pb.go @@ -79,20 +79,6 @@ func (x *CategoryInfo) GetCategoryIndex() uint32 { return 0 } -func (x *CategoryInfo) GetChannelInfo() []*CategoryChannelInfo { - if x != nil { - return x.ChannelInfo - } - return nil -} - -func (x *CategoryInfo) GetCategoryName() []byte { - if x != nil { - return x.CategoryName - } - return nil -} - func (x *CategoryInfo) GetCategoryId() uint64 { if x != nil && x.CategoryId != nil { return *x.CategoryId @@ -178,20 +164,6 @@ func (x *ChanInfoFilter) GetLastCntMsgSeq() uint32 { return 0 } -func (x *ChanInfoFilter) GetVoiceChannelInfoFilter() *VoiceChannelInfoFilter { - if x != nil { - return x.VoiceChannelInfoFilter - } - return nil -} - -func (x *ChanInfoFilter) GetLiveChannelInfoFilter() *LiveChannelInfoFilter { - if x != nil { - return x.LiveChannelInfoFilter - } - return nil -} - func (x *ChanInfoFilter) GetBannedSpeak() uint32 { if x != nil && x.BannedSpeak != nil { return *x.BannedSpeak @@ -230,13 +202,6 @@ func (x *ChangeChanInfo) GetOperatorId() uint64 { return 0 } -func (x *ChangeChanInfo) GetInfoSeq() *MsgSeq { - if x != nil { - return x.InfoSeq - } - return nil -} - func (x *ChangeChanInfo) GetUpdateType() uint32 { if x != nil && x.UpdateType != nil { return *x.UpdateType @@ -244,20 +209,6 @@ func (x *ChangeChanInfo) GetUpdateType() uint32 { return 0 } -func (x *ChangeChanInfo) GetChanInfoFilter() *ChanInfoFilter { - if x != nil { - return x.ChanInfoFilter - } - return nil -} - -func (x *ChangeChanInfo) GetChanInfo() *ServChannelInfo { - if x != nil { - return x.ChanInfo - } - return nil -} - type ChangeGuildInfo struct { GuildId *uint64 `protobuf:"varint,1,opt"` OperatorId *uint64 `protobuf:"varint,2,opt"` @@ -282,20 +233,6 @@ func (x *ChangeGuildInfo) GetOperatorId() uint64 { return 0 } -func (x *ChangeGuildInfo) GetInfoSeq() *MsgSeq { - if x != nil { - return x.InfoSeq - } - return nil -} - -func (x *ChangeGuildInfo) GetFaceSeq() *MsgSeq { - if x != nil { - return x.FaceSeq - } - return nil -} - func (x *ChangeGuildInfo) GetUpdateType() uint32 { if x != nil && x.UpdateType != nil { return *x.UpdateType @@ -303,20 +240,6 @@ func (x *ChangeGuildInfo) GetUpdateType() uint32 { return 0 } -func (x *ChangeGuildInfo) GetGuildInfoFilter() *GuildInfoFilter { - if x != nil { - return x.GuildInfoFilter - } - return nil -} - -func (x *ChangeGuildInfo) GetGuildInfo() *GuildInfo { - if x != nil { - return x.GuildInfo - } - return nil -} - type ChannelID struct { ChanId *uint64 `protobuf:"varint,1,opt"` } @@ -351,13 +274,6 @@ func (x *ServChannelInfo) GetChannelId() uint64 { return 0 } -func (x *ServChannelInfo) GetChannelName() []byte { - if x != nil { - return x.ChannelName - } - return nil -} - func (x *ServChannelInfo) GetCreatorId() uint64 { if x != nil && x.CreatorId != nil { return *x.CreatorId @@ -400,34 +316,6 @@ func (x *ServChannelInfo) GetSpeakPermission() uint32 { return 0 } -func (x *ServChannelInfo) GetLastMsgSeq() *MsgSeq { - if x != nil { - return x.LastMsgSeq - } - return nil -} - -func (x *ServChannelInfo) GetLastCntMsgSeq() *MsgSeq { - if x != nil { - return x.LastCntMsgSeq - } - return nil -} - -func (x *ServChannelInfo) GetVoiceChannelInfo() *VoiceChannelInfo { - if x != nil { - return x.VoiceChannelInfo - } - return nil -} - -func (x *ServChannelInfo) GetLiveChannelInfo() *LiveChannelInfo { - if x != nil { - return x.LiveChannelInfo - } - return nil -} - func (x *ServChannelInfo) GetBannedSpeak() uint32 { if x != nil && x.BannedSpeak != nil { return *x.BannedSpeak @@ -474,20 +362,6 @@ func (x *CommGrayTips) GetTemplId() uint64 { return 0 } -func (x *CommGrayTips) GetTemplParam() []*CommGrayTips_TemplParam { - if x != nil { - return x.TemplParam - } - return nil -} - -func (x *CommGrayTips) GetContent() []byte { - if x != nil { - return x.Content - } - return nil -} - func (x *CommGrayTips) GetTipsSeqId() uint64 { if x != nil && x.TipsSeqId != nil { return *x.TipsSeqId @@ -495,13 +369,6 @@ func (x *CommGrayTips) GetTipsSeqId() uint64 { return 0 } -func (x *CommGrayTips) GetPbReserv() []byte { - if x != nil { - return x.PbReserv - } - return nil -} - type CreateChan struct { GuildId *uint64 `protobuf:"varint,1,opt"` OperatorId *uint64 `protobuf:"varint,3,opt"` @@ -522,13 +389,6 @@ func (x *CreateChan) GetOperatorId() uint64 { return 0 } -func (x *CreateChan) GetCreateId() []*ChannelID { - if x != nil { - return x.CreateId - } - return nil -} - type CreateGuild struct { OperatorId *uint64 `protobuf:"varint,1,opt"` GuildId *uint64 `protobuf:"varint,2,opt"` @@ -568,13 +428,6 @@ func (x *DestroyChan) GetOperatorId() uint64 { return 0 } -func (x *DestroyChan) GetDeleteId() []*ChannelID { - if x != nil { - return x.DeleteId - } - return nil -} - type DestroyGuild struct { OperatorId *uint64 `protobuf:"varint,1,opt"` GuildId *uint64 `protobuf:"varint,2,opt"` @@ -624,195 +477,6 @@ type EventBody struct { ReadFeedNotify *ReadFeedNotify `protobuf:"bytes,48,opt"` } -func (x *EventBody) GetReadNotify() *ReadNotify { - if x != nil { - return x.ReadNotify - } - return nil -} - -func (x *EventBody) GetCommGrayTips() *CommGrayTips { - if x != nil { - return x.CommGrayTips - } - return nil -} - -func (x *EventBody) GetCreateGuild() *CreateGuild { - if x != nil { - return x.CreateGuild - } - return nil -} - -func (x *EventBody) GetDestroyGuild() *DestroyGuild { - if x != nil { - return x.DestroyGuild - } - return nil -} - -func (x *EventBody) GetJoinGuild() *JoinGuild { - if x != nil { - return x.JoinGuild - } - return nil -} - -func (x *EventBody) GetKickOffGuild() *KickOffGuild { - if x != nil { - return x.KickOffGuild - } - return nil -} - -func (x *EventBody) GetQuitGuild() *QuitGuild { - if x != nil { - return x.QuitGuild - } - return nil -} - -func (x *EventBody) GetChangeGuildInfo() *ChangeGuildInfo { - if x != nil { - return x.ChangeGuildInfo - } - return nil -} - -func (x *EventBody) GetCreateChan() *CreateChan { - if x != nil { - return x.CreateChan - } - return nil -} - -func (x *EventBody) GetDestroyChan() *DestroyChan { - if x != nil { - return x.DestroyChan - } - return nil -} - -func (x *EventBody) GetChangeChanInfo() *ChangeChanInfo { - if x != nil { - return x.ChangeChanInfo - } - return nil -} - -func (x *EventBody) GetSetAdmin() *SetAdmin { - if x != nil { - return x.SetAdmin - } - return nil -} - -func (x *EventBody) GetSetMsgRecvType() *SetMsgRecvType { - if x != nil { - return x.SetMsgRecvType - } - return nil -} - -func (x *EventBody) GetUpdateMsg() *UpdateMsg { - if x != nil { - return x.UpdateMsg - } - return nil -} - -func (x *EventBody) GetSetTop() *SetTop { - if x != nil { - return x.SetTop - } - return nil -} - -func (x *EventBody) GetSwitchChannel() *SwitchVoiceChannel { - if x != nil { - return x.SwitchChannel - } - return nil -} - -func (x *EventBody) GetUpdateCategory() *UpdateCategory { - if x != nil { - return x.UpdateCategory - } - return nil -} - -func (x *EventBody) GetUpdateVoiceBlockList() *UpdateVoiceBlockList { - if x != nil { - return x.UpdateVoiceBlockList - } - return nil -} - -func (x *EventBody) GetSetMute() *SetMute { - if x != nil { - return x.SetMute - } - return nil -} - -func (x *EventBody) GetLiveStatusChangeRoom() *LiveRoomStatusChangeMsg { - if x != nil { - return x.LiveStatusChangeRoom - } - return nil -} - -func (x *EventBody) GetSwitchLiveRoom() *SwitchLiveRoom { - if x != nil { - return x.SwitchLiveRoom - } - return nil -} - -func (x *EventBody) GetEvents() []*MsgEvent { - if x != nil { - return x.Events - } - return nil -} - -func (x *EventBody) GetScheduler() *SchedulerMsg { - if x != nil { - return x.Scheduler - } - return nil -} - -func (x *EventBody) GetAppChannel() *AppChannelMsg { - if x != nil { - return x.AppChannel - } - return nil -} - -func (x *EventBody) GetFeedEvent() *FeedEvent { - if x != nil { - return x.FeedEvent - } - return nil -} - -func (x *EventBody) GetWeakMsgAppChannel() *AppChannelMsg { - if x != nil { - return x.WeakMsgAppChannel - } - return nil -} - -func (x *EventBody) GetReadFeedNotify() *ReadFeedNotify { - if x != nil { - return x.ReadFeedNotify - } - return nil -} - type FeedEvent struct { GuildId *uint64 `protobuf:"varint,1,opt"` ChannelId *uint64 `protobuf:"varint,2,opt"` @@ -957,27 +621,6 @@ func (x *GuildInfo) GetGuildType() uint32 { return 0 } -func (x *GuildInfo) GetGuildName() []byte { - if x != nil { - return x.GuildName - } - return nil -} - -func (x *GuildInfo) GetRobotList() []uint64 { - if x != nil { - return x.RobotList - } - return nil -} - -func (x *GuildInfo) GetAdminList() []uint64 { - if x != nil { - return x.AdminList - } - return nil -} - func (x *GuildInfo) GetRobotMaxNum() uint32 { if x != nil && x.RobotMaxNum != nil { return *x.RobotMaxNum @@ -992,13 +635,6 @@ func (x *GuildInfo) GetAdminMaxNum() uint32 { return 0 } -func (x *GuildInfo) GetProfile() []byte { - if x != nil { - return x.Profile - } - return nil -} - func (x *GuildInfo) GetFaceSeq() uint64 { if x != nil && x.FaceSeq != nil { return *x.FaceSeq @@ -1006,13 +642,6 @@ func (x *GuildInfo) GetFaceSeq() uint64 { return 0 } -func (x *GuildInfo) GetGuildStatus() *GroupProStatus { - if x != nil { - return x.GuildStatus - } - return nil -} - func (x *GuildInfo) GetChannelNum() uint32 { if x != nil && x.ChannelNum != nil { return *x.ChannelNum @@ -1020,27 +649,6 @@ func (x *GuildInfo) GetChannelNum() uint32 { return 0 } -func (x *GuildInfo) GetMemberChangeSeq() *MsgSeq { - if x != nil { - return x.MemberChangeSeq - } - return nil -} - -func (x *GuildInfo) GetGuildInfoChangeSeq() *MsgSeq { - if x != nil { - return x.GuildInfoChangeSeq - } - return nil -} - -func (x *GuildInfo) GetChannelChangeSeq() *MsgSeq { - if x != nil { - return x.ChannelChangeSeq - } - return nil -} - type GuildInfoFilter struct { GuildCode *uint32 `protobuf:"varint,2,opt"` OwnerId *uint32 `protobuf:"varint,3,opt"` @@ -1262,13 +870,6 @@ func (x *LiveChannelInfo) GetAnchorUin() uint64 { return 0 } -func (x *LiveChannelInfo) GetName() []byte { - if x != nil { - return x.Name - } - return nil -} - type LiveChannelInfoFilter struct { IsNeedRoomId *uint32 `protobuf:"varint,1,opt"` IsNeedAnchorUin *uint32 `protobuf:"varint,2,opt"` @@ -1410,40 +1011,12 @@ func (x *ReadNotify) GetGuildId() uint64 { return 0 } -func (x *ReadNotify) GetReadMsgSeq() *MsgSeq { - if x != nil { - return x.ReadMsgSeq - } - return nil -} - -func (x *ReadNotify) GetReadCntMsgSeq() *MsgSeq { - if x != nil { - return x.ReadCntMsgSeq - } - return nil -} - -func (x *ReadNotify) GetReadMsgMeta() []byte { - if x != nil { - return x.ReadMsgMeta - } - return nil -} - type SchedulerMsg struct { CreatorHeadUrl []byte `protobuf:"bytes,1,opt"` Wording *string `protobuf:"bytes,2,opt"` ExpireTimeMs *uint64 `protobuf:"varint,3,opt"` } -func (x *SchedulerMsg) GetCreatorHeadUrl() []byte { - if x != nil { - return x.CreatorHeadUrl - } - return nil -} - func (x *SchedulerMsg) GetWording() string { if x != nil && x.Wording != nil { return *x.Wording @@ -1624,13 +1197,6 @@ func (x *SwitchLiveRoom) GetChannelId() uint64 { return 0 } -func (x *SwitchLiveRoom) GetUserInfo() *SwitchLiveRoomUserInfo { - if x != nil { - return x.UserInfo - } - return nil -} - func (x *SwitchLiveRoom) GetAction() uint32 { if x != nil && x.Action != nil { return *x.Action @@ -1670,39 +1236,11 @@ func (x *SwitchVoiceChannel) GetMemberId() uint64 { return 0 } -func (x *SwitchVoiceChannel) GetEnterDetail() *SwitchDetail { - if x != nil { - return x.EnterDetail - } - return nil -} - -func (x *SwitchVoiceChannel) GetLeaveDetail() *SwitchDetail { - if x != nil { - return x.LeaveDetail - } - return nil -} - type UpdateCategory struct { CategoryInfo []*CategoryInfo `protobuf:"bytes,1,rep"` NoClassifyCategoryInfo *CategoryInfo `protobuf:"bytes,2,opt"` } -func (x *UpdateCategory) GetCategoryInfo() []*CategoryInfo { - if x != nil { - return x.CategoryInfo - } - return nil -} - -func (x *UpdateCategory) GetNoClassifyCategoryInfo() *CategoryInfo { - if x != nil { - return x.NoClassifyCategoryInfo - } - return nil -} - type UpdateMsg struct { MsgSeq *uint64 `protobuf:"varint,1,opt"` OrigMsgUncountable *bool `protobuf:"varint,2,opt"` @@ -1815,17 +1353,3 @@ type CommGrayTips_TemplParam struct { Name []byte `protobuf:"bytes,1,opt"` Value []byte `protobuf:"bytes,2,opt"` } - -func (x *CommGrayTips_TemplParam) GetName() []byte { - if x != nil { - return x.Name - } - return nil -} - -func (x *CommGrayTips_TemplParam) GetValue() []byte { - if x != nil { - return x.Value - } - return nil -} diff --git a/client/pb/channel/servtype.proto b/client/pb/channel/servtype.proto index 409ac85e..10c76dbc 100644 --- a/client/pb/channel/servtype.proto +++ b/client/pb/channel/servtype.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package channel; -option go_package = "pb/channel;channel"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/channel"; message AppChannelMsg { optional string summary = 1; diff --git a/client/pb/channel/synclogic.pb.go b/client/pb/channel/synclogic.pb.go index 5043e802..0314c354 100644 --- a/client/pb/channel/synclogic.pb.go +++ b/client/pb/channel/synclogic.pb.go @@ -47,26 +47,12 @@ func (x *ChannelMsg) GetRspEndSeq() uint64 { return 0 } -func (x *ChannelMsg) GetMsgs() []*ChannelMsgContent { - if x != nil { - return x.Msgs - } - return nil -} - type ChannelMsgReq struct { ChannelParam *ChannelParam `protobuf:"bytes,1,opt"` WithVersionFlag *uint32 `protobuf:"varint,2,opt"` DirectMessageFlag *uint32 `protobuf:"varint,3,opt"` } -func (x *ChannelMsgReq) GetChannelParam() *ChannelParam { - if x != nil { - return x.ChannelParam - } - return nil -} - func (x *ChannelMsgReq) GetWithVersionFlag() uint32 { if x != nil && x.WithVersionFlag != nil { return *x.WithVersionFlag @@ -96,20 +82,6 @@ func (x *ChannelMsgRsp) GetResult() uint32 { return 0 } -func (x *ChannelMsgRsp) GetErrMsg() []byte { - if x != nil { - return x.ErrMsg - } - return nil -} - -func (x *ChannelMsgRsp) GetChannelMsg() *ChannelMsg { - if x != nil { - return x.ChannelMsg - } - return nil -} - func (x *ChannelMsgRsp) GetWithVersionFlag() uint32 { if x != nil && x.WithVersionFlag != nil { return *x.WithVersionFlag @@ -188,13 +160,6 @@ func (x *ChannelNode) GetNotifyType() uint32 { return 0 } -func (x *ChannelNode) GetChannelName() []byte { - if x != nil { - return x.ChannelName - } - return nil -} - func (x *ChannelNode) GetChannelType() uint32 { if x != nil && x.ChannelType != nil { return *x.ChannelType @@ -202,20 +167,6 @@ func (x *ChannelNode) GetChannelType() uint32 { return 0 } -func (x *ChannelNode) GetMeta() []byte { - if x != nil { - return x.Meta - } - return nil -} - -func (x *ChannelNode) GetReadMsgMeta() []byte { - if x != nil { - return x.ReadMsgMeta - } - return nil -} - func (x *ChannelNode) GetEventTime() uint32 { if x != nil && x.EventTime != nil { return *x.EventTime @@ -268,20 +219,6 @@ func (x *ChannelParam) GetTime() uint64 { return 0 } -func (x *ChannelParam) GetVersion() []uint64 { - if x != nil { - return x.Version - } - return nil -} - -func (x *ChannelParam) GetSeqs() []*MsgCond { - if x != nil { - return x.Seqs - } - return nil -} - type DirectMessageSource struct { TinyId *uint64 `protobuf:"varint,1,opt"` GuildId *uint64 `protobuf:"varint,2,opt"` @@ -304,27 +241,6 @@ func (x *DirectMessageSource) GetGuildId() uint64 { return 0 } -func (x *DirectMessageSource) GetGuildName() []byte { - if x != nil { - return x.GuildName - } - return nil -} - -func (x *DirectMessageSource) GetMemberName() []byte { - if x != nil { - return x.MemberName - } - return nil -} - -func (x *DirectMessageSource) GetNickName() []byte { - if x != nil { - return x.NickName - } - return nil -} - type FirstViewMsg struct { PushFlag *uint32 `protobuf:"varint,1,opt"` Seq *uint32 `protobuf:"varint,2,opt"` @@ -348,20 +264,6 @@ func (x *FirstViewMsg) GetSeq() uint32 { return 0 } -func (x *FirstViewMsg) GetGuildNodes() []*GuildNode { - if x != nil { - return x.GuildNodes - } - return nil -} - -func (x *FirstViewMsg) GetChannelMsgs() []*ChannelMsg { - if x != nil { - return x.ChannelMsgs - } - return nil -} - func (x *FirstViewMsg) GetGetMsgTime() uint64 { if x != nil && x.GetMsgTime != nil { return *x.GetMsgTime @@ -369,13 +271,6 @@ func (x *FirstViewMsg) GetGetMsgTime() uint64 { return 0 } -func (x *FirstViewMsg) GetDirectMessageGuildNodes() []*GuildNode { - if x != nil { - return x.DirectMessageGuildNodes - } - return nil -} - type FirstViewReq struct { LastMsgTime *uint64 `protobuf:"varint,1,opt"` UdcFlag *uint32 `protobuf:"varint,2,opt"` @@ -429,13 +324,6 @@ func (x *FirstViewRsp) GetResult() uint32 { return 0 } -func (x *FirstViewRsp) GetErrMsg() []byte { - if x != nil { - return x.ErrMsg - } - return nil -} - func (x *FirstViewRsp) GetSeq() uint32 { if x != nil && x.Seq != nil { return *x.Seq @@ -500,27 +388,6 @@ func (x *GuildNode) GetGuildCode() uint64 { return 0 } -func (x *GuildNode) GetChannelNodes() []*ChannelNode { - if x != nil { - return x.ChannelNodes - } - return nil -} - -func (x *GuildNode) GetGuildName() []byte { - if x != nil { - return x.GuildName - } - return nil -} - -func (x *GuildNode) GetPeerSource() *DirectMessageSource { - if x != nil { - return x.PeerSource - } - return nil -} - type MsgCond struct { Seq *uint64 `protobuf:"varint,1,opt"` EventVersion *uint64 `protobuf:"varint,2,opt"` @@ -561,13 +428,6 @@ func (x *MultiChannelMsg) GetSeq() uint32 { return 0 } -func (x *MultiChannelMsg) GetChannelMsgs() []*ChannelMsg { - if x != nil { - return x.ChannelMsgs - } - return nil -} - func (x *MultiChannelMsg) GetGetMsgTime() uint64 { if x != nil && x.GetMsgTime != nil { return *x.GetMsgTime @@ -581,13 +441,6 @@ type MultiChannelMsgReq struct { DirectMessageFlag *uint32 `protobuf:"varint,3,opt"` } -func (x *MultiChannelMsgReq) GetChannelParams() []*ChannelParam { - if x != nil { - return x.ChannelParams - } - return nil -} - func (x *MultiChannelMsgReq) GetSeq() uint32 { if x != nil && x.Seq != nil { return *x.Seq @@ -615,13 +468,6 @@ func (x *MultiChannelMsgRsp) GetResult() uint32 { return 0 } -func (x *MultiChannelMsgRsp) GetErrMsg() []byte { - if x != nil { - return x.ErrMsg - } - return nil -} - func (x *MultiChannelMsgRsp) GetSeq() uint32 { if x != nil && x.Seq != nil { return *x.Seq @@ -634,13 +480,6 @@ type ReqBody struct { DirectMessageFlag *uint32 `protobuf:"varint,2,opt"` } -func (x *ReqBody) GetChannelParam() *ChannelParam { - if x != nil { - return x.ChannelParam - } - return nil -} - func (x *ReqBody) GetDirectMessageFlag() uint32 { if x != nil && x.DirectMessageFlag != nil { return *x.DirectMessageFlag @@ -660,17 +499,3 @@ func (x *RspBody) GetResult() uint32 { } return 0 } - -func (x *RspBody) GetErrMsg() []byte { - if x != nil { - return x.ErrMsg - } - return nil -} - -func (x *RspBody) GetChannelMsg() *ChannelMsg { - if x != nil { - return x.ChannelMsg - } - return nil -} diff --git a/client/pb/channel/synclogic.proto b/client/pb/channel/synclogic.proto index 692cb2a1..8446b17d 100644 --- a/client/pb/channel/synclogic.proto +++ b/client/pb/channel/synclogic.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package channel; -option go_package = "pb/channel;channel"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/channel"; import "pb/channel/common.proto"; diff --git a/client/pb/channel/unknown.pb.go b/client/pb/channel/unknown.pb.go index a8f4a0ae..f8e86166 100644 --- a/client/pb/channel/unknown.pb.go +++ b/client/pb/channel/unknown.pb.go @@ -22,20 +22,6 @@ func (x *ChannelOidb0Xf5BRsp) GetGuildId() uint64 { return 0 } -func (x *ChannelOidb0Xf5BRsp) GetBots() []*GuildMemberInfo { - if x != nil { - return x.Bots - } - return nil -} - -func (x *ChannelOidb0Xf5BRsp) GetMembers() []*GuildMemberInfo { - if x != nil { - return x.Members - } - return nil -} - func (x *ChannelOidb0Xf5BRsp) GetNextIndex() uint32 { if x != nil && x.NextIndex != nil { return *x.NextIndex @@ -57,13 +43,6 @@ func (x *ChannelOidb0Xf5BRsp) GetNextQueryParam() string { return "" } -func (x *ChannelOidb0Xf5BRsp) GetMemberWithRoles() []*GuildGroupMembersInfo { - if x != nil { - return x.MemberWithRoles - } - return nil -} - func (x *ChannelOidb0Xf5BRsp) GetNextRoleIdIndex() uint64 { if x != nil && x.NextRoleIdIndex != nil { return *x.NextRoleIdIndex @@ -75,68 +54,26 @@ type ChannelOidb0Xf88Rsp struct { Profile *GuildUserProfile `protobuf:"bytes,1,opt"` } -func (x *ChannelOidb0Xf88Rsp) GetProfile() *GuildUserProfile { - if x != nil { - return x.Profile - } - return nil -} - type ChannelOidb0Xfc9Rsp struct { Profile *GuildUserProfile `protobuf:"bytes,1,opt"` } -func (x *ChannelOidb0Xfc9Rsp) GetProfile() *GuildUserProfile { - if x != nil { - return x.Profile - } - return nil -} - type ChannelOidb0Xf57Rsp struct { Rsp *GuildMetaRsp `protobuf:"bytes,1,opt"` } -func (x *ChannelOidb0Xf57Rsp) GetRsp() *GuildMetaRsp { - if x != nil { - return x.Rsp - } - return nil -} - type ChannelOidb0Xf55Rsp struct { Info *GuildChannelInfo `protobuf:"bytes,1,opt"` } -func (x *ChannelOidb0Xf55Rsp) GetInfo() *GuildChannelInfo { - if x != nil { - return x.Info - } - return nil -} - type ChannelOidb0Xf5DRsp struct { Rsp *ChannelListRsp `protobuf:"bytes,1,opt"` } -func (x *ChannelOidb0Xf5DRsp) GetRsp() *ChannelListRsp { - if x != nil { - return x.Rsp - } - return nil -} - type ChannelOidb0X1017Rsp struct { P1 *P10X1017 `protobuf:"bytes,1,opt"` } -func (x *ChannelOidb0X1017Rsp) GetP1() *P10X1017 { - if x != nil { - return x.P1 - } - return nil -} - type P10X1017 struct { TinyId *uint64 `protobuf:"varint,1,opt"` Roles []*GuildUserRole `protobuf:"bytes,3,rep"` @@ -149,13 +86,6 @@ func (x *P10X1017) GetTinyId() uint64 { return 0 } -func (x *P10X1017) GetRoles() []*GuildUserRole { - if x != nil { - return x.Roles - } - return nil -} - type ChannelOidb0X1019Rsp struct { GuildId *uint64 `protobuf:"varint,1,opt"` Roles []*GuildRole `protobuf:"bytes,2,rep"` @@ -168,13 +98,6 @@ func (x *ChannelOidb0X1019Rsp) GetGuildId() uint64 { return 0 } -func (x *ChannelOidb0X1019Rsp) GetRoles() []*GuildRole { - if x != nil { - return x.Roles - } - return nil -} - type ChannelOidb0X1016Rsp struct { RoleId *uint64 `protobuf:"varint,2,opt"` } @@ -198,13 +121,6 @@ func (x *GuildMetaRsp) GetGuildId() uint64 { return 0 } -func (x *GuildMetaRsp) GetMeta() *GuildMeta { - if x != nil { - return x.Meta - } - return nil -} - type ChannelListRsp struct { GuildId *uint64 `protobuf:"varint,1,opt"` Channels []*GuildChannelInfo `protobuf:"bytes,2,rep"` // 5: Category infos @@ -217,13 +133,6 @@ func (x *ChannelListRsp) GetGuildId() uint64 { return 0 } -func (x *ChannelListRsp) GetChannels() []*GuildChannelInfo { - if x != nil { - return x.Channels - } - return nil -} - type GuildGroupMembersInfo struct { RoleId *uint64 `protobuf:"varint,1,opt"` Members []*GuildMemberInfo `protobuf:"bytes,2,rep"` @@ -238,13 +147,6 @@ func (x *GuildGroupMembersInfo) GetRoleId() uint64 { return 0 } -func (x *GuildGroupMembersInfo) GetMembers() []*GuildMemberInfo { - if x != nil { - return x.Members - } - return nil -} - func (x *GuildGroupMembersInfo) GetRoleName() string { if x != nil && x.RoleName != nil { return *x.RoleName @@ -629,13 +531,6 @@ func (x *GuildChannelInfo) GetVisibleType() int32 { return 0 } -func (x *GuildChannelInfo) GetTopMsg() *GuildChannelTopMsgInfo { - if x != nil { - return x.TopMsg - } - return nil -} - func (x *GuildChannelInfo) GetCurrentSlowModeKey() int32 { if x != nil && x.CurrentSlowModeKey != nil { return *x.CurrentSlowModeKey @@ -643,13 +538,6 @@ func (x *GuildChannelInfo) GetCurrentSlowModeKey() int32 { return 0 } -func (x *GuildChannelInfo) GetSlowModeInfos() []*GuildChannelSlowModeInfo { - if x != nil { - return x.SlowModeInfos - } - return nil -} - type GuildChannelSlowModeInfo struct { SlowModeKey *int32 `protobuf:"varint,1,opt"` SpeakFrequency *int32 `protobuf:"varint,2,opt"` diff --git a/client/pb/channel/unknown.proto b/client/pb/channel/unknown.proto index 483b23f5..7aa2e714 100644 --- a/client/pb/channel/unknown.proto +++ b/client/pb/channel/unknown.proto @@ -3,7 +3,7 @@ syntax = "proto2"; package channel; -option go_package = "pb/channel;channel"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/channel"; // see sub_37628C message ChannelOidb0xf5bRsp { diff --git a/client/pb/cmd0x346/cmd0x346.pb.go b/client/pb/cmd0x346/cmd0x346.pb.go index c78ae718..7747e190 100644 --- a/client/pb/cmd0x346/cmd0x346.pb.go +++ b/client/pb/cmd0x346/cmd0x346.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: cmd0x346.proto +// source: pb/cmd0x346/cmd0x346.proto package cmd0x346 @@ -8,20 +8,6 @@ type ApplyCleanTrafficRsp struct { RetMsg string `protobuf:"bytes,20,opt"` } -func (x *ApplyCleanTrafficRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyCleanTrafficRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - type ApplyCopyFromReq struct { SrcUin int64 `protobuf:"varint,10,opt"` SrcGroup int64 `protobuf:"varint,20,opt"` @@ -36,83 +22,6 @@ type ApplyCopyFromReq struct { TotalSpace int64 `protobuf:"varint,110,opt"` } -func (x *ApplyCopyFromReq) GetSrcUin() int64 { - if x != nil { - return x.SrcUin - } - return 0 -} - -func (x *ApplyCopyFromReq) GetSrcGroup() int64 { - if x != nil { - return x.SrcGroup - } - return 0 -} - -func (x *ApplyCopyFromReq) GetSrcSvcid() int32 { - if x != nil { - return x.SrcSvcid - } - return 0 -} - -func (x *ApplyCopyFromReq) GetSrcParentfolder() []byte { - if x != nil { - return x.SrcParentfolder - } - return nil -} - -func (x *ApplyCopyFromReq) GetSrcUuid() []byte { - if x != nil { - return x.SrcUuid - } - return nil -} - -func (x *ApplyCopyFromReq) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - -func (x *ApplyCopyFromReq) GetDstUin() int64 { - if x != nil { - return x.DstUin - } - return 0 -} - -func (x *ApplyCopyFromReq) GetFileSize() int64 { - if x != nil { - return x.FileSize - } - return 0 -} - -func (x *ApplyCopyFromReq) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *ApplyCopyFromReq) GetDangerLevel() int32 { - if x != nil { - return x.DangerLevel - } - return 0 -} - -func (x *ApplyCopyFromReq) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - type ApplyCopyFromRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` @@ -120,34 +29,6 @@ type ApplyCopyFromRsp struct { TotalSpace int64 `protobuf:"varint,40,opt"` } -func (x *ApplyCopyFromRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyCopyFromRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyCopyFromRsp) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - -func (x *ApplyCopyFromRsp) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - type ApplyCopyToReq struct { DstId int64 `protobuf:"varint,10,opt"` DstUin int64 `protobuf:"varint,20,opt"` @@ -159,135 +40,23 @@ type ApplyCopyToReq struct { Uuid []byte `protobuf:"bytes,80,opt"` } -func (x *ApplyCopyToReq) GetDstId() int64 { - if x != nil { - return x.DstId - } - return 0 -} - -func (x *ApplyCopyToReq) GetDstUin() int64 { - if x != nil { - return x.DstUin - } - return 0 -} - -func (x *ApplyCopyToReq) GetDstSvcid() int32 { - if x != nil { - return x.DstSvcid - } - return 0 -} - -func (x *ApplyCopyToReq) GetSrcUin() int64 { - if x != nil { - return x.SrcUin - } - return 0 -} - -func (x *ApplyCopyToReq) GetFileSize() int64 { - if x != nil { - return x.FileSize - } - return 0 -} - -func (x *ApplyCopyToReq) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *ApplyCopyToReq) GetLocalFilepath() string { - if x != nil { - return x.LocalFilepath - } - return "" -} - -func (x *ApplyCopyToReq) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - type ApplyCopyToRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` FileKey string `protobuf:"bytes,30,opt"` } -func (x *ApplyCopyToRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyCopyToRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyCopyToRsp) GetFileKey() string { - if x != nil { - return x.FileKey - } - return "" -} - type ApplyDownloadAbsReq struct { Uin int64 `protobuf:"varint,10,opt"` Uuid []byte `protobuf:"bytes,20,opt"` } -func (x *ApplyDownloadAbsReq) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *ApplyDownloadAbsReq) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - type ApplyDownloadAbsRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` DownloadInfo *DownloadInfo `protobuf:"bytes,30,opt"` } -func (x *ApplyDownloadAbsRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyDownloadAbsRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyDownloadAbsRsp) GetDownloadInfo() *DownloadInfo { - if x != nil { - return x.DownloadInfo - } - return nil -} - type ApplyDownloadReq struct { Uin int64 `protobuf:"varint,10,opt"` Uuid []byte `protobuf:"bytes,20,opt"` @@ -295,34 +64,6 @@ type ApplyDownloadReq struct { ExtIntype int32 `protobuf:"varint,500,opt"` } -func (x *ApplyDownloadReq) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *ApplyDownloadReq) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - -func (x *ApplyDownloadReq) GetOwnerType() int32 { - if x != nil { - return x.OwnerType - } - return 0 -} - -func (x *ApplyDownloadReq) GetExtIntype() int32 { - if x != nil { - return x.ExtIntype - } - return 0 -} - type ApplyDownloadRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` @@ -330,34 +71,6 @@ type ApplyDownloadRsp struct { FileInfo *FileInfo `protobuf:"bytes,40,opt"` } -func (x *ApplyDownloadRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyDownloadRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyDownloadRsp) GetDownloadInfo() *DownloadInfo { - if x != nil { - return x.DownloadInfo - } - return nil -} - -func (x *ApplyDownloadRsp) GetFileInfo() *FileInfo { - if x != nil { - return x.FileInfo - } - return nil -} - type ApplyForwardFileReq struct { SenderUin int64 `protobuf:"varint,10,opt"` RecverUin int64 `protobuf:"varint,20,opt"` @@ -366,41 +79,6 @@ type ApplyForwardFileReq struct { TotalSpace int64 `protobuf:"varint,50,opt"` } -func (x *ApplyForwardFileReq) GetSenderUin() int64 { - if x != nil { - return x.SenderUin - } - return 0 -} - -func (x *ApplyForwardFileReq) GetRecverUin() int64 { - if x != nil { - return x.RecverUin - } - return 0 -} - -func (x *ApplyForwardFileReq) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - -func (x *ApplyForwardFileReq) GetDangerLevel() int32 { - if x != nil { - return x.DangerLevel - } - return 0 -} - -func (x *ApplyForwardFileReq) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - type ApplyForwardFileRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` @@ -409,41 +87,6 @@ type ApplyForwardFileRsp struct { Uuid []byte `protobuf:"bytes,50,opt"` } -func (x *ApplyForwardFileRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyForwardFileRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyForwardFileRsp) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - -func (x *ApplyForwardFileRsp) GetUsedSpace() int64 { - if x != nil { - return x.UsedSpace - } - return 0 -} - -func (x *ApplyForwardFileRsp) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - type ApplyGetTrafficReq struct { } @@ -456,75 +99,12 @@ type ApplyGetTrafficRsp struct { AllFileNum int32 `protobuf:"varint,60,opt"` } -func (x *ApplyGetTrafficRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyGetTrafficRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyGetTrafficRsp) GetUseFileSize() int64 { - if x != nil { - return x.UseFileSize - } - return 0 -} - -func (x *ApplyGetTrafficRsp) GetUseFileNum() int32 { - if x != nil { - return x.UseFileNum - } - return 0 -} - -func (x *ApplyGetTrafficRsp) GetAllFileSize() int64 { - if x != nil { - return x.AllFileSize - } - return 0 -} - -func (x *ApplyGetTrafficRsp) GetAllFileNum() int32 { - if x != nil { - return x.AllFileNum - } - return 0 -} - type ApplyListDownloadReq struct { Uin int64 `protobuf:"varint,10,opt"` BeginIndex int32 `protobuf:"varint,20,opt"` ReqCount int32 `protobuf:"varint,30,opt"` } -func (x *ApplyListDownloadReq) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *ApplyListDownloadReq) GetBeginIndex() int32 { - if x != nil { - return x.BeginIndex - } - return 0 -} - -func (x *ApplyListDownloadReq) GetReqCount() int32 { - if x != nil { - return x.ReqCount - } - return 0 -} - type ApplyListDownloadRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` @@ -535,55 +115,6 @@ type ApplyListDownloadRsp struct { FileList []*FileInfo `protobuf:"bytes,70,rep"` } -func (x *ApplyListDownloadRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyListDownloadRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyListDownloadRsp) GetTotalCount() int32 { - if x != nil { - return x.TotalCount - } - return 0 -} - -func (x *ApplyListDownloadRsp) GetBeginIndex() int32 { - if x != nil { - return x.BeginIndex - } - return 0 -} - -func (x *ApplyListDownloadRsp) GetRspCount() int32 { - if x != nil { - return x.RspCount - } - return 0 -} - -func (x *ApplyListDownloadRsp) GetIsEnd() int32 { - if x != nil { - return x.IsEnd - } - return 0 -} - -func (x *ApplyListDownloadRsp) GetFileList() []*FileInfo { - if x != nil { - return x.FileList - } - return nil -} - type ApplyUploadHitReq struct { SenderUin int64 `protobuf:"varint,10,opt"` RecverUin int64 `protobuf:"varint,20,opt"` @@ -595,62 +126,6 @@ type ApplyUploadHitReq struct { TotalSpace int64 `protobuf:"varint,80,opt"` } -func (x *ApplyUploadHitReq) GetSenderUin() int64 { - if x != nil { - return x.SenderUin - } - return 0 -} - -func (x *ApplyUploadHitReq) GetRecverUin() int64 { - if x != nil { - return x.RecverUin - } - return 0 -} - -func (x *ApplyUploadHitReq) GetFileSize() int64 { - if x != nil { - return x.FileSize - } - return 0 -} - -func (x *ApplyUploadHitReq) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *ApplyUploadHitReq) GetBytes_10MMd5() []byte { - if x != nil { - return x.Bytes_10MMd5 - } - return nil -} - -func (x *ApplyUploadHitReq) GetLocalFilepath() string { - if x != nil { - return x.LocalFilepath - } - return "" -} - -func (x *ApplyUploadHitReq) GetDangerLevel() int32 { - if x != nil { - return x.DangerLevel - } - return 0 -} - -func (x *ApplyUploadHitReq) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - type ApplyUploadHitReqV2 struct { SenderUin int64 `protobuf:"varint,10,opt"` RecverUin int64 `protobuf:"varint,20,opt"` @@ -664,76 +139,6 @@ type ApplyUploadHitReqV2 struct { TotalSpace int64 `protobuf:"varint,100,opt"` } -func (x *ApplyUploadHitReqV2) GetSenderUin() int64 { - if x != nil { - return x.SenderUin - } - return 0 -} - -func (x *ApplyUploadHitReqV2) GetRecverUin() int64 { - if x != nil { - return x.RecverUin - } - return 0 -} - -func (x *ApplyUploadHitReqV2) GetFileSize() int64 { - if x != nil { - return x.FileSize - } - return 0 -} - -func (x *ApplyUploadHitReqV2) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *ApplyUploadHitReqV2) GetBytes_10MMd5() []byte { - if x != nil { - return x.Bytes_10MMd5 - } - return nil -} - -func (x *ApplyUploadHitReqV2) GetBytes_3Sha() []byte { - if x != nil { - return x.Bytes_3Sha - } - return nil -} - -func (x *ApplyUploadHitReqV2) GetSha() []byte { - if x != nil { - return x.Sha - } - return nil -} - -func (x *ApplyUploadHitReqV2) GetLocalFilepath() string { - if x != nil { - return x.LocalFilepath - } - return "" -} - -func (x *ApplyUploadHitReqV2) GetDangerLevel() int32 { - if x != nil { - return x.DangerLevel - } - return 0 -} - -func (x *ApplyUploadHitReqV2) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - type ApplyUploadHitReqV3 struct { SenderUin int64 `protobuf:"varint,10,opt"` RecverUin int64 `protobuf:"varint,20,opt"` @@ -746,69 +151,6 @@ type ApplyUploadHitReqV3 struct { TotalSpace int64 `protobuf:"varint,90,opt"` } -func (x *ApplyUploadHitReqV3) GetSenderUin() int64 { - if x != nil { - return x.SenderUin - } - return 0 -} - -func (x *ApplyUploadHitReqV3) GetRecverUin() int64 { - if x != nil { - return x.RecverUin - } - return 0 -} - -func (x *ApplyUploadHitReqV3) GetFileSize() int64 { - if x != nil { - return x.FileSize - } - return 0 -} - -func (x *ApplyUploadHitReqV3) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *ApplyUploadHitReqV3) GetBytes_10MMd5() []byte { - if x != nil { - return x.Bytes_10MMd5 - } - return nil -} - -func (x *ApplyUploadHitReqV3) GetSha() []byte { - if x != nil { - return x.Sha - } - return nil -} - -func (x *ApplyUploadHitReqV3) GetLocalFilepath() string { - if x != nil { - return x.LocalFilepath - } - return "" -} - -func (x *ApplyUploadHitReqV3) GetDangerLevel() int32 { - if x != nil { - return x.DangerLevel - } - return 0 -} - -func (x *ApplyUploadHitReqV3) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - type ApplyUploadHitRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` @@ -821,69 +163,6 @@ type ApplyUploadHitRsp struct { UsedSpace int64 `protobuf:"varint,90,opt"` } -func (x *ApplyUploadHitRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyUploadHitRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyUploadHitRsp) GetUploadIp() string { - if x != nil { - return x.UploadIp - } - return "" -} - -func (x *ApplyUploadHitRsp) GetUploadPort() int32 { - if x != nil { - return x.UploadPort - } - return 0 -} - -func (x *ApplyUploadHitRsp) GetUploadDomain() string { - if x != nil { - return x.UploadDomain - } - return "" -} - -func (x *ApplyUploadHitRsp) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - -func (x *ApplyUploadHitRsp) GetUploadKey() []byte { - if x != nil { - return x.UploadKey - } - return nil -} - -func (x *ApplyUploadHitRsp) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - -func (x *ApplyUploadHitRsp) GetUsedSpace() int64 { - if x != nil { - return x.UsedSpace - } - return 0 -} - type ApplyUploadHitRspV2 struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` @@ -896,69 +175,6 @@ type ApplyUploadHitRspV2 struct { UsedSpace int64 `protobuf:"varint,90,opt"` } -func (x *ApplyUploadHitRspV2) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyUploadHitRspV2) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyUploadHitRspV2) GetUploadIp() string { - if x != nil { - return x.UploadIp - } - return "" -} - -func (x *ApplyUploadHitRspV2) GetUploadPort() int32 { - if x != nil { - return x.UploadPort - } - return 0 -} - -func (x *ApplyUploadHitRspV2) GetUploadDomain() string { - if x != nil { - return x.UploadDomain - } - return "" -} - -func (x *ApplyUploadHitRspV2) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - -func (x *ApplyUploadHitRspV2) GetUploadKey() []byte { - if x != nil { - return x.UploadKey - } - return nil -} - -func (x *ApplyUploadHitRspV2) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - -func (x *ApplyUploadHitRspV2) GetUsedSpace() int64 { - if x != nil { - return x.UsedSpace - } - return 0 -} - type ApplyUploadHitRspV3 struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` @@ -971,69 +187,6 @@ type ApplyUploadHitRspV3 struct { UsedSpace int64 `protobuf:"varint,90,opt"` } -func (x *ApplyUploadHitRspV3) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyUploadHitRspV3) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyUploadHitRspV3) GetUploadIp() string { - if x != nil { - return x.UploadIp - } - return "" -} - -func (x *ApplyUploadHitRspV3) GetUploadPort() int32 { - if x != nil { - return x.UploadPort - } - return 0 -} - -func (x *ApplyUploadHitRspV3) GetUploadDomain() string { - if x != nil { - return x.UploadDomain - } - return "" -} - -func (x *ApplyUploadHitRspV3) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - -func (x *ApplyUploadHitRspV3) GetUploadKey() []byte { - if x != nil { - return x.UploadKey - } - return nil -} - -func (x *ApplyUploadHitRspV3) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - -func (x *ApplyUploadHitRspV3) GetUsedSpace() int64 { - if x != nil { - return x.UsedSpace - } - return 0 -} - type ApplyUploadReq struct { SenderUin int64 `protobuf:"varint,10,opt"` RecverUin int64 `protobuf:"varint,20,opt"` @@ -1046,69 +199,6 @@ type ApplyUploadReq struct { TotalSpace int64 `protobuf:"varint,90,opt"` } -func (x *ApplyUploadReq) GetSenderUin() int64 { - if x != nil { - return x.SenderUin - } - return 0 -} - -func (x *ApplyUploadReq) GetRecverUin() int64 { - if x != nil { - return x.RecverUin - } - return 0 -} - -func (x *ApplyUploadReq) GetFileType() int32 { - if x != nil { - return x.FileType - } - return 0 -} - -func (x *ApplyUploadReq) GetFileSize() int64 { - if x != nil { - return x.FileSize - } - return 0 -} - -func (x *ApplyUploadReq) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *ApplyUploadReq) GetBytes_10MMd5() []byte { - if x != nil { - return x.Bytes_10MMd5 - } - return nil -} - -func (x *ApplyUploadReq) GetLocalFilepath() string { - if x != nil { - return x.LocalFilepath - } - return "" -} - -func (x *ApplyUploadReq) GetDangerLevel() int32 { - if x != nil { - return x.DangerLevel - } - return 0 -} - -func (x *ApplyUploadReq) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - type ApplyUploadReqV2 struct { SenderUin int64 `protobuf:"varint,10,opt"` RecverUin int64 `protobuf:"varint,20,opt"` @@ -1121,69 +211,6 @@ type ApplyUploadReqV2 struct { TotalSpace int64 `protobuf:"varint,90,opt"` } -func (x *ApplyUploadReqV2) GetSenderUin() int64 { - if x != nil { - return x.SenderUin - } - return 0 -} - -func (x *ApplyUploadReqV2) GetRecverUin() int64 { - if x != nil { - return x.RecverUin - } - return 0 -} - -func (x *ApplyUploadReqV2) GetFileSize() int64 { - if x != nil { - return x.FileSize - } - return 0 -} - -func (x *ApplyUploadReqV2) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *ApplyUploadReqV2) GetBytes_10MMd5() []byte { - if x != nil { - return x.Bytes_10MMd5 - } - return nil -} - -func (x *ApplyUploadReqV2) GetBytes_3Sha() []byte { - if x != nil { - return x.Bytes_3Sha - } - return nil -} - -func (x *ApplyUploadReqV2) GetLocalFilepath() string { - if x != nil { - return x.LocalFilepath - } - return "" -} - -func (x *ApplyUploadReqV2) GetDangerLevel() int32 { - if x != nil { - return x.DangerLevel - } - return 0 -} - -func (x *ApplyUploadReqV2) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - type ApplyUploadReqV3 struct { SenderUin int64 `protobuf:"varint,10,opt"` RecverUin int64 `protobuf:"varint,20,opt"` @@ -1196,69 +223,6 @@ type ApplyUploadReqV3 struct { TotalSpace int64 `protobuf:"varint,90,opt"` } -func (x *ApplyUploadReqV3) GetSenderUin() int64 { - if x != nil { - return x.SenderUin - } - return 0 -} - -func (x *ApplyUploadReqV3) GetRecverUin() int64 { - if x != nil { - return x.RecverUin - } - return 0 -} - -func (x *ApplyUploadReqV3) GetFileSize() int64 { - if x != nil { - return x.FileSize - } - return 0 -} - -func (x *ApplyUploadReqV3) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *ApplyUploadReqV3) GetBytes_10MMd5() []byte { - if x != nil { - return x.Bytes_10MMd5 - } - return nil -} - -func (x *ApplyUploadReqV3) GetSha() []byte { - if x != nil { - return x.Sha - } - return nil -} - -func (x *ApplyUploadReqV3) GetLocalFilepath() string { - if x != nil { - return x.LocalFilepath - } - return "" -} - -func (x *ApplyUploadReqV3) GetDangerLevel() int32 { - if x != nil { - return x.DangerLevel - } - return 0 -} - -func (x *ApplyUploadReqV3) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - type ApplyUploadRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` @@ -1275,97 +239,6 @@ type ApplyUploadRsp struct { UploadipList []string `protobuf:"bytes,130,rep"` } -func (x *ApplyUploadRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyUploadRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyUploadRsp) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - -func (x *ApplyUploadRsp) GetUsedSpace() int64 { - if x != nil { - return x.UsedSpace - } - return 0 -} - -func (x *ApplyUploadRsp) GetUploadedSize() int64 { - if x != nil { - return x.UploadedSize - } - return 0 -} - -func (x *ApplyUploadRsp) GetUploadIp() string { - if x != nil { - return x.UploadIp - } - return "" -} - -func (x *ApplyUploadRsp) GetUploadDomain() string { - if x != nil { - return x.UploadDomain - } - return "" -} - -func (x *ApplyUploadRsp) GetUploadPort() int32 { - if x != nil { - return x.UploadPort - } - return 0 -} - -func (x *ApplyUploadRsp) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - -func (x *ApplyUploadRsp) GetUploadKey() []byte { - if x != nil { - return x.UploadKey - } - return nil -} - -func (x *ApplyUploadRsp) GetBoolFileExist() bool { - if x != nil { - return x.BoolFileExist - } - return false -} - -func (x *ApplyUploadRsp) GetPackSize() int32 { - if x != nil { - return x.PackSize - } - return 0 -} - -func (x *ApplyUploadRsp) GetUploadipList() []string { - if x != nil { - return x.UploadipList - } - return nil -} - type ApplyUploadRspV2 struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` @@ -1384,111 +257,6 @@ type ApplyUploadRspV2 struct { Sha []byte `protobuf:"bytes,141,opt"` } -func (x *ApplyUploadRspV2) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyUploadRspV2) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyUploadRspV2) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - -func (x *ApplyUploadRspV2) GetUsedSpace() int64 { - if x != nil { - return x.UsedSpace - } - return 0 -} - -func (x *ApplyUploadRspV2) GetUploadedSize() int64 { - if x != nil { - return x.UploadedSize - } - return 0 -} - -func (x *ApplyUploadRspV2) GetUploadIp() string { - if x != nil { - return x.UploadIp - } - return "" -} - -func (x *ApplyUploadRspV2) GetUploadDomain() string { - if x != nil { - return x.UploadDomain - } - return "" -} - -func (x *ApplyUploadRspV2) GetUploadPort() int32 { - if x != nil { - return x.UploadPort - } - return 0 -} - -func (x *ApplyUploadRspV2) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - -func (x *ApplyUploadRspV2) GetUploadKey() []byte { - if x != nil { - return x.UploadKey - } - return nil -} - -func (x *ApplyUploadRspV2) GetBoolFileExist() bool { - if x != nil { - return x.BoolFileExist - } - return false -} - -func (x *ApplyUploadRspV2) GetPackSize() int32 { - if x != nil { - return x.PackSize - } - return 0 -} - -func (x *ApplyUploadRspV2) GetUploadipList() []string { - if x != nil { - return x.UploadipList - } - return nil -} - -func (x *ApplyUploadRspV2) GetHttpsvrApiVer() int32 { - if x != nil { - return x.HttpsvrApiVer - } - return 0 -} - -func (x *ApplyUploadRspV2) GetSha() []byte { - if x != nil { - return x.Sha - } - return nil -} - type ApplyUploadRspV3 struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` @@ -1509,125 +277,6 @@ type ApplyUploadRspV3 struct { UploadLanip string `protobuf:"bytes,170,opt"` } -func (x *ApplyUploadRspV3) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ApplyUploadRspV3) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ApplyUploadRspV3) GetTotalSpace() int64 { - if x != nil { - return x.TotalSpace - } - return 0 -} - -func (x *ApplyUploadRspV3) GetUsedSpace() int64 { - if x != nil { - return x.UsedSpace - } - return 0 -} - -func (x *ApplyUploadRspV3) GetUploadedSize() int64 { - if x != nil { - return x.UploadedSize - } - return 0 -} - -func (x *ApplyUploadRspV3) GetUploadIp() string { - if x != nil { - return x.UploadIp - } - return "" -} - -func (x *ApplyUploadRspV3) GetUploadDomain() string { - if x != nil { - return x.UploadDomain - } - return "" -} - -func (x *ApplyUploadRspV3) GetUploadPort() int32 { - if x != nil { - return x.UploadPort - } - return 0 -} - -func (x *ApplyUploadRspV3) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - -func (x *ApplyUploadRspV3) GetUploadKey() []byte { - if x != nil { - return x.UploadKey - } - return nil -} - -func (x *ApplyUploadRspV3) GetBoolFileExist() bool { - if x != nil { - return x.BoolFileExist - } - return false -} - -func (x *ApplyUploadRspV3) GetPackSize() int32 { - if x != nil { - return x.PackSize - } - return 0 -} - -func (x *ApplyUploadRspV3) GetUploadIpList() []string { - if x != nil { - return x.UploadIpList - } - return nil -} - -func (x *ApplyUploadRspV3) GetUploadHttpsPort() int32 { - if x != nil { - return x.UploadHttpsPort - } - return 0 -} - -func (x *ApplyUploadRspV3) GetUploadHttpsDomain() string { - if x != nil { - return x.UploadHttpsDomain - } - return "" -} - -func (x *ApplyUploadRspV3) GetUploadDns() string { - if x != nil { - return x.UploadDns - } - return "" -} - -func (x *ApplyUploadRspV3) GetUploadLanip() string { - if x != nil { - return x.UploadLanip - } - return "" -} - type DelMessageReq struct { UinSender int64 `protobuf:"varint,1,opt"` UinReceiver int64 `protobuf:"varint,2,opt"` @@ -1636,41 +285,6 @@ type DelMessageReq struct { SeqNo int32 `protobuf:"varint,30,opt"` } -func (x *DelMessageReq) GetUinSender() int64 { - if x != nil { - return x.UinSender - } - return 0 -} - -func (x *DelMessageReq) GetUinReceiver() int64 { - if x != nil { - return x.UinReceiver - } - return 0 -} - -func (x *DelMessageReq) GetTime() int32 { - if x != nil { - return x.Time - } - return 0 -} - -func (x *DelMessageReq) GetRandom() int32 { - if x != nil { - return x.Random - } - return 0 -} - -func (x *DelMessageReq) GetSeqNo() int32 { - if x != nil { - return x.SeqNo - } - return 0 -} - type DeleteFileReq struct { Uin int64 `protobuf:"varint,10,opt"` PeerUin int64 `protobuf:"varint,20,opt"` @@ -1678,53 +292,11 @@ type DeleteFileReq struct { Uuid []byte `protobuf:"bytes,40,opt"` } -func (x *DeleteFileReq) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *DeleteFileReq) GetPeerUin() int64 { - if x != nil { - return x.PeerUin - } - return 0 -} - -func (x *DeleteFileReq) GetDeleteType() int32 { - if x != nil { - return x.DeleteType - } - return 0 -} - -func (x *DeleteFileReq) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - type DeleteFileRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` } -func (x *DeleteFileRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *DeleteFileRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - type DownloadInfo struct { DownloadKey []byte `protobuf:"bytes,10,opt"` DownloadIp string `protobuf:"bytes,20,opt"` @@ -1735,101 +307,17 @@ type DownloadInfo struct { Cookie string `protobuf:"bytes,70,opt"` } -func (x *DownloadInfo) GetDownloadKey() []byte { - if x != nil { - return x.DownloadKey - } - return nil -} - -func (x *DownloadInfo) GetDownloadIp() string { - if x != nil { - return x.DownloadIp - } - return "" -} - -func (x *DownloadInfo) GetDownloadDomain() string { - if x != nil { - return x.DownloadDomain - } - return "" -} - -func (x *DownloadInfo) GetPort() int32 { - if x != nil { - return x.Port - } - return 0 -} - -func (x *DownloadInfo) GetDownloadUrl() string { - if x != nil { - return x.DownloadUrl - } - return "" -} - -func (x *DownloadInfo) GetDownloadipList() []string { - if x != nil { - return x.DownloadipList - } - return nil -} - -func (x *DownloadInfo) GetCookie() string { - if x != nil { - return x.Cookie - } - return "" -} - type DownloadSuccReq struct { Uin int64 `protobuf:"varint,10,opt"` Uuid []byte `protobuf:"bytes,20,opt"` } -func (x *DownloadSuccReq) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *DownloadSuccReq) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - type DownloadSuccRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` DownStat int32 `protobuf:"varint,30,opt"` } -func (x *DownloadSuccRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *DownloadSuccRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *DownloadSuccRsp) GetDownStat() int32 { - if x != nil { - return x.DownStat - } - return 0 -} - type ExtensionReq struct { Id int64 `protobuf:"varint,1,opt"` Type int64 `protobuf:"varint,2,opt"` @@ -1847,104 +335,6 @@ type ExtensionReq struct { PttTime int32 `protobuf:"varint,90800,opt"` } -func (x *ExtensionReq) GetId() int64 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *ExtensionReq) GetType() int64 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *ExtensionReq) GetDstPhonenum() string { - if x != nil { - return x.DstPhonenum - } - return "" -} - -func (x *ExtensionReq) GetPhoneConvertType() int32 { - if x != nil { - return x.PhoneConvertType - } - return 0 -} - -func (x *ExtensionReq) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - -func (x *ExtensionReq) GetRouteId() int64 { - if x != nil { - return x.RouteId - } - return 0 -} - -func (x *ExtensionReq) GetDelMessageReq() *DelMessageReq { - if x != nil { - return x.DelMessageReq - } - return nil -} - -func (x *ExtensionReq) GetDownloadUrlType() int32 { - if x != nil { - return x.DownloadUrlType - } - return 0 -} - -func (x *ExtensionReq) GetPttFormat() int32 { - if x != nil { - return x.PttFormat - } - return 0 -} - -func (x *ExtensionReq) GetIsNeedInnerIp() int32 { - if x != nil { - return x.IsNeedInnerIp - } - return 0 -} - -func (x *ExtensionReq) GetNetType() int32 { - if x != nil { - return x.NetType - } - return 0 -} - -func (x *ExtensionReq) GetVoiceType() int32 { - if x != nil { - return x.VoiceType - } - return 0 -} - -func (x *ExtensionReq) GetFileType() int32 { - if x != nil { - return x.FileType - } - return 0 -} - -func (x *ExtensionReq) GetPttTime() int32 { - if x != nil { - return x.PttTime - } - return 0 -} - type ExtensionRsp struct { } @@ -1965,215 +355,33 @@ type FileInfo struct { ExpireTime int32 `protobuf:"varint,130,opt"` } -func (x *FileInfo) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *FileInfo) GetDangerEvel() int32 { - if x != nil { - return x.DangerEvel - } - return 0 -} - -func (x *FileInfo) GetFileSize() int64 { - if x != nil { - return x.FileSize - } - return 0 -} - -func (x *FileInfo) GetLifeTime() int32 { - if x != nil { - return x.LifeTime - } - return 0 -} - -func (x *FileInfo) GetUploadTime() int32 { - if x != nil { - return x.UploadTime - } - return 0 -} - -func (x *FileInfo) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - -func (x *FileInfo) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *FileInfo) GetAbsFileType() int32 { - if x != nil { - return x.AbsFileType - } - return 0 -} - -func (x *FileInfo) GetBytes_10MMd5() []byte { - if x != nil { - return x.Bytes_10MMd5 - } - return nil -} - -func (x *FileInfo) GetSha() []byte { - if x != nil { - return x.Sha - } - return nil -} - -func (x *FileInfo) GetClientType() int32 { - if x != nil { - return x.ClientType - } - return 0 -} - -func (x *FileInfo) GetOwnerUin() int64 { - if x != nil { - return x.OwnerUin - } - return 0 -} - -func (x *FileInfo) GetPeerUin() int64 { - if x != nil { - return x.PeerUin - } - return 0 -} - -func (x *FileInfo) GetExpireTime() int32 { - if x != nil { - return x.ExpireTime - } - return 0 -} - type FileQueryReq struct { Uin int64 `protobuf:"varint,10,opt"` Uuid []byte `protobuf:"bytes,20,opt"` } -func (x *FileQueryReq) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *FileQueryReq) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - type FileQueryRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` FileInfo *FileInfo `protobuf:"bytes,30,opt"` } -func (x *FileQueryRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *FileQueryRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *FileQueryRsp) GetFileInfo() *FileInfo { - if x != nil { - return x.FileInfo - } - return nil -} - type RecallFileReq struct { Uin int64 `protobuf:"varint,1,opt"` Uuid []byte `protobuf:"bytes,2,opt"` } -func (x *RecallFileReq) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *RecallFileReq) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - type RecallFileRsp struct { RetCode int32 `protobuf:"varint,1,opt"` RetMsg string `protobuf:"bytes,2,opt"` } -func (x *RecallFileRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *RecallFileRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - type RecvListQueryReq struct { Uin int64 `protobuf:"varint,1,opt"` BeginIndex int32 `protobuf:"varint,2,opt"` ReqCount int32 `protobuf:"varint,3,opt"` } -func (x *RecvListQueryReq) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *RecvListQueryReq) GetBeginIndex() int32 { - if x != nil { - return x.BeginIndex - } - return 0 -} - -func (x *RecvListQueryReq) GetReqCount() int32 { - if x != nil { - return x.ReqCount - } - return 0 -} - type RecvListQueryRsp struct { RetCode int32 `protobuf:"varint,1,opt"` RetMsg string `protobuf:"bytes,2,opt"` @@ -2184,101 +392,17 @@ type RecvListQueryRsp struct { FileList []*FileInfo `protobuf:"bytes,7,rep"` } -func (x *RecvListQueryRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *RecvListQueryRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *RecvListQueryRsp) GetFileTotCount() int32 { - if x != nil { - return x.FileTotCount - } - return 0 -} - -func (x *RecvListQueryRsp) GetBeginIndex() int32 { - if x != nil { - return x.BeginIndex - } - return 0 -} - -func (x *RecvListQueryRsp) GetRspFileCount() int32 { - if x != nil { - return x.RspFileCount - } - return 0 -} - -func (x *RecvListQueryRsp) GetIsEnd() int32 { - if x != nil { - return x.IsEnd - } - return 0 -} - -func (x *RecvListQueryRsp) GetFileList() []*FileInfo { - if x != nil { - return x.FileList - } - return nil -} - type RenewFileReq struct { Uin int64 `protobuf:"varint,1,opt"` Uuid []byte `protobuf:"bytes,2,opt"` AddTtl int32 `protobuf:"varint,3,opt"` } -func (x *RenewFileReq) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *RenewFileReq) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - -func (x *RenewFileReq) GetAddTtl() int32 { - if x != nil { - return x.AddTtl - } - return 0 -} - type RenewFileRsp struct { RetCode int32 `protobuf:"varint,1,opt"` RetMsg string `protobuf:"bytes,2,opt"` } -func (x *RenewFileRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *RenewFileRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - type C346ReqBody struct { Cmd int32 `protobuf:"varint,1,opt"` Seq int32 `protobuf:"varint,2,opt"` @@ -2309,188 +433,6 @@ type C346ReqBody struct { ExtensionReq *ExtensionReq `protobuf:"bytes,99999,opt"` } -func (x *C346ReqBody) GetCmd() int32 { - if x != nil { - return x.Cmd - } - return 0 -} - -func (x *C346ReqBody) GetSeq() int32 { - if x != nil { - return x.Seq - } - return 0 -} - -func (x *C346ReqBody) GetRecvListQueryReq() *RecvListQueryReq { - if x != nil { - return x.RecvListQueryReq - } - return nil -} - -func (x *C346ReqBody) GetSendListQueryReq() *SendListQueryReq { - if x != nil { - return x.SendListQueryReq - } - return nil -} - -func (x *C346ReqBody) GetRenewFileReq() *RenewFileReq { - if x != nil { - return x.RenewFileReq - } - return nil -} - -func (x *C346ReqBody) GetRecallFileReq() *RecallFileReq { - if x != nil { - return x.RecallFileReq - } - return nil -} - -func (x *C346ReqBody) GetApplyUploadReq() *ApplyUploadReq { - if x != nil { - return x.ApplyUploadReq - } - return nil -} - -func (x *C346ReqBody) GetApplyUploadHitReq() *ApplyUploadHitReq { - if x != nil { - return x.ApplyUploadHitReq - } - return nil -} - -func (x *C346ReqBody) GetApplyForwardFileReq() *ApplyForwardFileReq { - if x != nil { - return x.ApplyForwardFileReq - } - return nil -} - -func (x *C346ReqBody) GetUploadSuccReq() *UploadSuccReq { - if x != nil { - return x.UploadSuccReq - } - return nil -} - -func (x *C346ReqBody) GetDeleteFileReq() *DeleteFileReq { - if x != nil { - return x.DeleteFileReq - } - return nil -} - -func (x *C346ReqBody) GetDownloadSuccReq() *DownloadSuccReq { - if x != nil { - return x.DownloadSuccReq - } - return nil -} - -func (x *C346ReqBody) GetApplyDownloadAbsReq() *ApplyDownloadAbsReq { - if x != nil { - return x.ApplyDownloadAbsReq - } - return nil -} - -func (x *C346ReqBody) GetApplyDownloadReq() *ApplyDownloadReq { - if x != nil { - return x.ApplyDownloadReq - } - return nil -} - -func (x *C346ReqBody) GetApplyListDownloadReq() *ApplyListDownloadReq { - if x != nil { - return x.ApplyListDownloadReq - } - return nil -} - -func (x *C346ReqBody) GetFileQueryReq() *FileQueryReq { - if x != nil { - return x.FileQueryReq - } - return nil -} - -func (x *C346ReqBody) GetApplyCopyFromReq() *ApplyCopyFromReq { - if x != nil { - return x.ApplyCopyFromReq - } - return nil -} - -func (x *C346ReqBody) GetApplyUploadReqV2() *ApplyUploadReqV2 { - if x != nil { - return x.ApplyUploadReqV2 - } - return nil -} - -func (x *C346ReqBody) GetApplyUploadReqV3() *ApplyUploadReqV3 { - if x != nil { - return x.ApplyUploadReqV3 - } - return nil -} - -func (x *C346ReqBody) GetApplyUploadHitReqV2() *ApplyUploadHitReqV2 { - if x != nil { - return x.ApplyUploadHitReqV2 - } - return nil -} - -func (x *C346ReqBody) GetApplyUploadHitReqV3() *ApplyUploadHitReqV3 { - if x != nil { - return x.ApplyUploadHitReqV3 - } - return nil -} - -func (x *C346ReqBody) GetBusinessId() int32 { - if x != nil { - return x.BusinessId - } - return 0 -} - -func (x *C346ReqBody) GetClientType() int32 { - if x != nil { - return x.ClientType - } - return 0 -} - -func (x *C346ReqBody) GetApplyCopyToReq() *ApplyCopyToReq { - if x != nil { - return x.ApplyCopyToReq - } - return nil -} - -func (x *C346ReqBody) GetApplyGetTrafficReq() *ApplyGetTrafficReq { - if x != nil { - return x.ApplyGetTrafficReq - } - return nil -} - -func (x *C346ReqBody) GetExtensionReq() *ExtensionReq { - if x != nil { - return x.ExtensionReq - } - return nil -} - type C346RspBody struct { Cmd int32 `protobuf:"varint,1,opt"` Seq int32 `protobuf:"varint,2,opt"` @@ -2521,222 +463,12 @@ type C346RspBody struct { ExtensionRsp *ExtensionRsp `protobuf:"bytes,99999,opt"` } -func (x *C346RspBody) GetCmd() int32 { - if x != nil { - return x.Cmd - } - return 0 -} - -func (x *C346RspBody) GetSeq() int32 { - if x != nil { - return x.Seq - } - return 0 -} - -func (x *C346RspBody) GetRecvListQueryRsp() *RecvListQueryRsp { - if x != nil { - return x.RecvListQueryRsp - } - return nil -} - -func (x *C346RspBody) GetSendListQueryRsp() *SendListQueryRsp { - if x != nil { - return x.SendListQueryRsp - } - return nil -} - -func (x *C346RspBody) GetRenewFileRsp() *RenewFileRsp { - if x != nil { - return x.RenewFileRsp - } - return nil -} - -func (x *C346RspBody) GetRecallFileRsp() *RecallFileRsp { - if x != nil { - return x.RecallFileRsp - } - return nil -} - -func (x *C346RspBody) GetApplyUploadRsp() *ApplyUploadRsp { - if x != nil { - return x.ApplyUploadRsp - } - return nil -} - -func (x *C346RspBody) GetApplyUploadHitRsp() *ApplyUploadHitRsp { - if x != nil { - return x.ApplyUploadHitRsp - } - return nil -} - -func (x *C346RspBody) GetApplyForwardFileRsp() *ApplyForwardFileRsp { - if x != nil { - return x.ApplyForwardFileRsp - } - return nil -} - -func (x *C346RspBody) GetUploadSuccRsp() *UploadSuccRsp { - if x != nil { - return x.UploadSuccRsp - } - return nil -} - -func (x *C346RspBody) GetDeleteFileRsp() *DeleteFileRsp { - if x != nil { - return x.DeleteFileRsp - } - return nil -} - -func (x *C346RspBody) GetDownloadSuccRsp() *DownloadSuccRsp { - if x != nil { - return x.DownloadSuccRsp - } - return nil -} - -func (x *C346RspBody) GetApplyDownloadAbsRsp() *ApplyDownloadAbsRsp { - if x != nil { - return x.ApplyDownloadAbsRsp - } - return nil -} - -func (x *C346RspBody) GetApplyDownloadRsp() *ApplyDownloadRsp { - if x != nil { - return x.ApplyDownloadRsp - } - return nil -} - -func (x *C346RspBody) GetApplyListDownloadRsp() *ApplyListDownloadRsp { - if x != nil { - return x.ApplyListDownloadRsp - } - return nil -} - -func (x *C346RspBody) GetFileQueryRsp() *FileQueryRsp { - if x != nil { - return x.FileQueryRsp - } - return nil -} - -func (x *C346RspBody) GetApplyCopyFromRsp() *ApplyCopyFromRsp { - if x != nil { - return x.ApplyCopyFromRsp - } - return nil -} - -func (x *C346RspBody) GetApplyUploadRspV2() *ApplyUploadRspV2 { - if x != nil { - return x.ApplyUploadRspV2 - } - return nil -} - -func (x *C346RspBody) GetApplyUploadRspV3() *ApplyUploadRspV3 { - if x != nil { - return x.ApplyUploadRspV3 - } - return nil -} - -func (x *C346RspBody) GetApplyUploadHitRspV2() *ApplyUploadHitRspV2 { - if x != nil { - return x.ApplyUploadHitRspV2 - } - return nil -} - -func (x *C346RspBody) GetApplyUploadHitRspV3() *ApplyUploadHitRspV3 { - if x != nil { - return x.ApplyUploadHitRspV3 - } - return nil -} - -func (x *C346RspBody) GetBusinessId() int32 { - if x != nil { - return x.BusinessId - } - return 0 -} - -func (x *C346RspBody) GetClientType() int32 { - if x != nil { - return x.ClientType - } - return 0 -} - -func (x *C346RspBody) GetApplyCopyToRsp() *ApplyCopyToRsp { - if x != nil { - return x.ApplyCopyToRsp - } - return nil -} - -func (x *C346RspBody) GetApplyCleanTrafficRsp() *ApplyCleanTrafficRsp { - if x != nil { - return x.ApplyCleanTrafficRsp - } - return nil -} - -func (x *C346RspBody) GetApplyGetTrafficRsp() *ApplyGetTrafficRsp { - if x != nil { - return x.ApplyGetTrafficRsp - } - return nil -} - -func (x *C346RspBody) GetExtensionRsp() *ExtensionRsp { - if x != nil { - return x.ExtensionRsp - } - return nil -} - type SendListQueryReq struct { Uin int64 `protobuf:"varint,1,opt"` BeginIndex int32 `protobuf:"varint,2,opt"` ReqCount int32 `protobuf:"varint,3,opt"` } -func (x *SendListQueryReq) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *SendListQueryReq) GetBeginIndex() int32 { - if x != nil { - return x.BeginIndex - } - return 0 -} - -func (x *SendListQueryReq) GetReqCount() int32 { - if x != nil { - return x.ReqCount - } - return 0 -} - type SendListQueryRsp struct { RetCode int32 `protobuf:"varint,1,opt"` RetMsg string `protobuf:"bytes,2,opt"` @@ -2749,119 +481,14 @@ type SendListQueryRsp struct { FileList []*FileInfo `protobuf:"bytes,9,rep"` } -func (x *SendListQueryRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *SendListQueryRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *SendListQueryRsp) GetFileTotCount() int32 { - if x != nil { - return x.FileTotCount - } - return 0 -} - -func (x *SendListQueryRsp) GetBeginIndex() int32 { - if x != nil { - return x.BeginIndex - } - return 0 -} - -func (x *SendListQueryRsp) GetRspFileCount() int32 { - if x != nil { - return x.RspFileCount - } - return 0 -} - -func (x *SendListQueryRsp) GetIsEnd() int32 { - if x != nil { - return x.IsEnd - } - return 0 -} - -func (x *SendListQueryRsp) GetTotLimit() int64 { - if x != nil { - return x.TotLimit - } - return 0 -} - -func (x *SendListQueryRsp) GetUsedLimit() int64 { - if x != nil { - return x.UsedLimit - } - return 0 -} - -func (x *SendListQueryRsp) GetFileList() []*FileInfo { - if x != nil { - return x.FileList - } - return nil -} - type UploadSuccReq struct { SenderUin int64 `protobuf:"varint,10,opt"` RecverUin int64 `protobuf:"varint,20,opt"` Uuid []byte `protobuf:"bytes,30,opt"` } -func (x *UploadSuccReq) GetSenderUin() int64 { - if x != nil { - return x.SenderUin - } - return 0 -} - -func (x *UploadSuccReq) GetRecverUin() int64 { - if x != nil { - return x.RecverUin - } - return 0 -} - -func (x *UploadSuccReq) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - type UploadSuccRsp struct { RetCode int32 `protobuf:"varint,10,opt"` RetMsg string `protobuf:"bytes,20,opt"` FileInfo *FileInfo `protobuf:"bytes,30,opt"` } - -func (x *UploadSuccRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *UploadSuccRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *UploadSuccRsp) GetFileInfo() *FileInfo { - if x != nil { - return x.FileInfo - } - return nil -} diff --git a/client/pb/cmd0x346/cmd0x346.proto b/client/pb/cmd0x346/cmd0x346.proto index 86c0b244..65fbb554 100644 --- a/client/pb/cmd0x346/cmd0x346.proto +++ b/client/pb/cmd0x346/cmd0x346.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;cmd0x346"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/cmd0x346"; message ApplyCleanTrafficRsp { int32 retCode = 10; diff --git a/client/pb/cmd0x352/cmd0x352.pb.go b/client/pb/cmd0x352/cmd0x352.pb.go index 8192b036..4cd2461b 100644 --- a/client/pb/cmd0x352/cmd0x352.pb.go +++ b/client/pb/cmd0x352/cmd0x352.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: cmd0x352.proto +// source: pb/cmd0x352/cmd0x352.proto package cmd0x352 @@ -18,13 +18,6 @@ func (x *ReqBody) GetSubcmd() uint32 { return 0 } -func (x *ReqBody) GetTryupImgReq() []*D352TryUpImgReq { - if x != nil { - return x.TryupImgReq - } - return nil -} - func (x *ReqBody) GetNetType() uint32 { if x != nil && x.NetType != nil { return *x.NetType @@ -48,13 +41,6 @@ func (x *RspBody) GetSubcmd() uint32 { return 0 } -func (x *RspBody) GetTryupImgRsp() []*TryUpImgRsp { - if x != nil { - return x.TryupImgRsp - } - return nil -} - func (x *RspBody) GetNewBigchan() bool { if x != nil && x.NewBigchan != nil { return *x.NewBigchan @@ -62,13 +48,6 @@ func (x *RspBody) GetNewBigchan() bool { return false } -func (x *RspBody) GetFailMsg() []byte { - if x != nil { - return x.FailMsg - } - return nil -} - type D352TryUpImgReq struct { SrcUin *uint64 `protobuf:"varint,1,opt"` DstUin *uint64 `protobuf:"varint,2,opt"` @@ -116,13 +95,6 @@ func (x *D352TryUpImgReq) GetFileId() uint64 { return 0 } -func (x *D352TryUpImgReq) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - func (x *D352TryUpImgReq) GetFileSize() uint64 { if x != nil && x.FileSize != nil { return *x.FileSize @@ -130,13 +102,6 @@ func (x *D352TryUpImgReq) GetFileSize() uint64 { return 0 } -func (x *D352TryUpImgReq) GetFileName() []byte { - if x != nil { - return x.FileName - } - return nil -} - func (x *D352TryUpImgReq) GetSrcTerm() uint32 { if x != nil && x.SrcTerm != nil { return *x.SrcTerm @@ -207,20 +172,6 @@ func (x *D352TryUpImgReq) GetPicType() uint32 { return 0 } -func (x *D352TryUpImgReq) GetBuildVer() []byte { - if x != nil { - return x.BuildVer - } - return nil -} - -func (x *D352TryUpImgReq) GetFileIndex() []byte { - if x != nil { - return x.FileIndex - } - return nil -} - func (x *D352TryUpImgReq) GetStoreDays() uint32 { if x != nil && x.StoreDays != nil { return *x.StoreDays @@ -249,13 +200,6 @@ func (x *D352TryUpImgReq) GetSrvUpload() uint32 { return 0 } -func (x *D352TryUpImgReq) GetTransferUrl() []byte { - if x != nil { - return x.TransferUrl - } - return nil -} - type TryUpImgRsp struct { FileId *uint64 `protobuf:"varint,1,opt"` ClientIp *uint32 `protobuf:"varint,2,opt"` @@ -303,13 +247,6 @@ func (x *TryUpImgRsp) GetResult() uint32 { return 0 } -func (x *TryUpImgRsp) GetFailMsg() []byte { - if x != nil { - return x.FailMsg - } - return nil -} - func (x *TryUpImgRsp) GetFileExit() bool { if x != nil && x.FileExit != nil { return *x.FileExit @@ -317,41 +254,6 @@ func (x *TryUpImgRsp) GetFileExit() bool { return false } -func (x *TryUpImgRsp) GetUpIp() []uint32 { - if x != nil { - return x.UpIp - } - return nil -} - -func (x *TryUpImgRsp) GetUpPort() []uint32 { - if x != nil { - return x.UpPort - } - return nil -} - -func (x *TryUpImgRsp) GetUpUkey() []byte { - if x != nil { - return x.UpUkey - } - return nil -} - -func (x *TryUpImgRsp) GetUpResid() []byte { - if x != nil { - return x.UpResid - } - return nil -} - -func (x *TryUpImgRsp) GetUpUuid() []byte { - if x != nil { - return x.UpUuid - } - return nil -} - func (x *TryUpImgRsp) GetUpOffset() uint64 { if x != nil && x.UpOffset != nil { return *x.UpOffset @@ -366,13 +268,6 @@ func (x *TryUpImgRsp) GetBlockSize() uint64 { return 0 } -func (x *TryUpImgRsp) GetEncryptDstip() []byte { - if x != nil { - return x.EncryptDstip - } - return nil -} - func (x *TryUpImgRsp) GetRoamdays() uint32 { if x != nil && x.Roamdays != nil { return *x.Roamdays @@ -380,48 +275,6 @@ func (x *TryUpImgRsp) GetRoamdays() uint32 { return 0 } -func (x *TryUpImgRsp) GetClientIp6() []byte { - if x != nil { - return x.ClientIp6 - } - return nil -} - -func (x *TryUpImgRsp) GetThumbDownPara() []byte { - if x != nil { - return x.ThumbDownPara - } - return nil -} - -func (x *TryUpImgRsp) GetOriginalDownPara() []byte { - if x != nil { - return x.OriginalDownPara - } - return nil -} - -func (x *TryUpImgRsp) GetDownDomain() []byte { - if x != nil { - return x.DownDomain - } - return nil -} - -func (x *TryUpImgRsp) GetBigDownPara() []byte { - if x != nil { - return x.BigDownPara - } - return nil -} - -func (x *TryUpImgRsp) GetBigThumbDownPara() []byte { - if x != nil { - return x.BigThumbDownPara - } - return nil -} - func (x *TryUpImgRsp) GetHttpsUrlFlag() uint32 { if x != nil && x.HttpsUrlFlag != nil { return *x.HttpsUrlFlag diff --git a/client/pb/cmd0x352/cmd0x352.proto b/client/pb/cmd0x352/cmd0x352.proto index 3ea0ee9e..ca60aa94 100644 --- a/client/pb/cmd0x352/cmd0x352.proto +++ b/client/pb/cmd0x352/cmd0x352.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;cmd0x352"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/cmd0x352"; /* message DelImgReq { optional uint64 srcUin = 1; diff --git a/client/pb/cmd0x388/cmd0x388.pb.go b/client/pb/cmd0x388/cmd0x388.pb.go index d8881ed1..8f3c0d55 100644 --- a/client/pb/cmd0x388/cmd0x388.pb.go +++ b/client/pb/cmd0x388/cmd0x388.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: cmd0x388.proto +// source: pb/cmd0x388/cmd0x388.proto package cmd0x388 @@ -50,20 +50,6 @@ func (x *DelImgReq) GetBuType() uint32 { return 0 } -func (x *DelImgReq) GetBuildVer() []byte { - if x != nil { - return x.BuildVer - } - return nil -} - -func (x *DelImgReq) GetFileResid() []byte { - if x != nil { - return x.FileResid - } - return nil -} - func (x *DelImgReq) GetPicWidth() uint32 { if x != nil && x.PicWidth != nil { return *x.PicWidth @@ -91,31 +77,10 @@ func (x *DelImgRsp) GetResult() uint32 { return 0 } -func (x *DelImgRsp) GetFailMsg() []byte { - if x != nil { - return x.FailMsg - } - return nil -} - -func (x *DelImgRsp) GetFileResid() []byte { - if x != nil { - return x.FileResid - } - return nil -} - type ExpRoamExtendInfo struct { Resid []byte `protobuf:"bytes,1,opt"` } -func (x *ExpRoamExtendInfo) GetResid() []byte { - if x != nil { - return x.Resid - } - return nil -} - type ExpRoamPicInfo struct { ShopFlag *uint32 `protobuf:"varint,1,opt"` PkgId *uint32 `protobuf:"varint,2,opt"` @@ -136,35 +101,14 @@ func (x *ExpRoamPicInfo) GetPkgId() uint32 { return 0 } -func (x *ExpRoamPicInfo) GetPicId() []byte { - if x != nil { - return x.PicId - } - return nil -} - type ExtensionCommPicTryUp struct { Extinfo [][]byte `protobuf:"bytes,1,rep"` } -func (x *ExtensionCommPicTryUp) GetExtinfo() [][]byte { - if x != nil { - return x.Extinfo - } - return nil -} - type ExtensionExpRoamTryUp struct { ExproamPicInfo []*ExpRoamPicInfo `protobuf:"bytes,1,rep"` } -func (x *ExtensionExpRoamTryUp) GetExproamPicInfo() []*ExpRoamPicInfo { - if x != nil { - return x.ExproamPicInfo - } - return nil -} - type GetImgUrlReq struct { GroupCode *uint64 `protobuf:"varint,1,opt"` DstUin *uint64 `protobuf:"varint,2,opt"` @@ -212,13 +156,6 @@ func (x *GetImgUrlReq) GetFileid() uint64 { return 0 } -func (x *GetImgUrlReq) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - func (x *GetImgUrlReq) GetUrlFlag() uint32 { if x != nil && x.UrlFlag != nil { return *x.UrlFlag @@ -261,13 +198,6 @@ func (x *GetImgUrlReq) GetBuType() uint32 { return 0 } -func (x *GetImgUrlReq) GetBuildVer() []byte { - if x != nil { - return x.BuildVer - } - return nil -} - func (x *GetImgUrlReq) GetFileId() uint64 { if x != nil && x.FileId != nil { return *x.FileId @@ -345,13 +275,6 @@ func (x *GetImgUrlReq) GetQqmeetChannelId() uint64 { return 0 } -func (x *GetImgUrlReq) GetDownloadIndex() []byte { - if x != nil { - return x.DownloadIndex - } - return nil -} - type GetImgUrlRsp struct { Fileid *uint64 `protobuf:"varint,1,opt"` FileMd5 []byte `protobuf:"bytes,2,opt"` @@ -383,13 +306,6 @@ func (x *GetImgUrlRsp) GetFileid() uint64 { return 0 } -func (x *GetImgUrlRsp) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - func (x *GetImgUrlRsp) GetResult() uint32 { if x != nil && x.Result != nil { return *x.Result @@ -397,83 +313,6 @@ func (x *GetImgUrlRsp) GetResult() uint32 { return 0 } -func (x *GetImgUrlRsp) GetFailMsg() []byte { - if x != nil { - return x.FailMsg - } - return nil -} - -func (x *GetImgUrlRsp) GetImgInfo() *ImgInfo { - if x != nil { - return x.ImgInfo - } - return nil -} - -func (x *GetImgUrlRsp) GetThumbDownUrl() [][]byte { - if x != nil { - return x.ThumbDownUrl - } - return nil -} - -func (x *GetImgUrlRsp) GetOriginalDownUrl() [][]byte { - if x != nil { - return x.OriginalDownUrl - } - return nil -} - -func (x *GetImgUrlRsp) GetBigDownUrl() [][]byte { - if x != nil { - return x.BigDownUrl - } - return nil -} - -func (x *GetImgUrlRsp) GetDownIp() []uint32 { - if x != nil { - return x.DownIp - } - return nil -} - -func (x *GetImgUrlRsp) GetDownPort() []uint32 { - if x != nil { - return x.DownPort - } - return nil -} - -func (x *GetImgUrlRsp) GetDownDomain() []byte { - if x != nil { - return x.DownDomain - } - return nil -} - -func (x *GetImgUrlRsp) GetThumbDownPara() []byte { - if x != nil { - return x.ThumbDownPara - } - return nil -} - -func (x *GetImgUrlRsp) GetOriginalDownPara() []byte { - if x != nil { - return x.OriginalDownPara - } - return nil -} - -func (x *GetImgUrlRsp) GetBigDownPara() []byte { - if x != nil { - return x.BigDownPara - } - return nil -} - func (x *GetImgUrlRsp) GetFileId() uint64 { if x != nil && x.FileId != nil { return *x.FileId @@ -488,20 +327,6 @@ func (x *GetImgUrlRsp) GetAutoDownType() uint32 { return 0 } -func (x *GetImgUrlRsp) GetOrderDownType() []uint32 { - if x != nil { - return x.OrderDownType - } - return nil -} - -func (x *GetImgUrlRsp) GetBigThumbDownPara() []byte { - if x != nil { - return x.BigThumbDownPara - } - return nil -} - func (x *GetImgUrlRsp) GetHttpsUrlFlag() uint32 { if x != nil && x.HttpsUrlFlag != nil { return *x.HttpsUrlFlag @@ -509,20 +334,6 @@ func (x *GetImgUrlRsp) GetHttpsUrlFlag() uint32 { return 0 } -func (x *GetImgUrlRsp) GetDownIp6() []*IPv6Info { - if x != nil { - return x.DownIp6 - } - return nil -} - -func (x *GetImgUrlRsp) GetClientIp6() []byte { - if x != nil { - return x.ClientIp6 - } - return nil -} - type GetPttUrlReq struct { GroupCode *uint64 `protobuf:"varint,1,opt"` DstUin *uint64 `protobuf:"varint,2,opt"` @@ -562,13 +373,6 @@ func (x *GetPttUrlReq) GetFileid() uint64 { return 0 } -func (x *GetPttUrlReq) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - func (x *GetPttUrlReq) GetReqTerm() uint32 { if x != nil && x.ReqTerm != nil { return *x.ReqTerm @@ -597,13 +401,6 @@ func (x *GetPttUrlReq) GetBuType() uint32 { return 0 } -func (x *GetPttUrlReq) GetBuildVer() []byte { - if x != nil { - return x.BuildVer - } - return nil -} - func (x *GetPttUrlReq) GetFileId() uint64 { if x != nil && x.FileId != nil { return *x.FileId @@ -611,13 +408,6 @@ func (x *GetPttUrlReq) GetFileId() uint64 { return 0 } -func (x *GetPttUrlReq) GetFileKey() []byte { - if x != nil { - return x.FileKey - } - return nil -} - func (x *GetPttUrlReq) GetCodec() uint32 { if x != nil && x.Codec != nil { return *x.Codec @@ -671,13 +461,6 @@ func (x *GetPttUrlRsp) GetFileid() uint64 { return 0 } -func (x *GetPttUrlRsp) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - func (x *GetPttUrlRsp) GetResult() uint32 { if x != nil && x.Result != nil { return *x.Result @@ -685,48 +468,6 @@ func (x *GetPttUrlRsp) GetResult() uint32 { return 0 } -func (x *GetPttUrlRsp) GetFailMsg() []byte { - if x != nil { - return x.FailMsg - } - return nil -} - -func (x *GetPttUrlRsp) GetDownUrl() [][]byte { - if x != nil { - return x.DownUrl - } - return nil -} - -func (x *GetPttUrlRsp) GetDownIp() []uint32 { - if x != nil { - return x.DownIp - } - return nil -} - -func (x *GetPttUrlRsp) GetDownPort() []uint32 { - if x != nil { - return x.DownPort - } - return nil -} - -func (x *GetPttUrlRsp) GetDownDomain() []byte { - if x != nil { - return x.DownDomain - } - return nil -} - -func (x *GetPttUrlRsp) GetDownPara() []byte { - if x != nil { - return x.DownPara - } - return nil -} - func (x *GetPttUrlRsp) GetFileId() uint64 { if x != nil && x.FileId != nil { return *x.FileId @@ -748,20 +489,6 @@ func (x *GetPttUrlRsp) GetAllowRetry() uint32 { return 0 } -func (x *GetPttUrlRsp) GetDownIp6() []*IPv6Info { - if x != nil { - return x.DownIp6 - } - return nil -} - -func (x *GetPttUrlRsp) GetClientIp6() []byte { - if x != nil { - return x.ClientIp6 - } - return nil -} - func (x *GetPttUrlRsp) GetDomain() string { if x != nil && x.Domain != nil { return *x.Domain @@ -774,13 +501,6 @@ type IPv6Info struct { Port *uint32 `protobuf:"varint,2,opt"` } -func (x *IPv6Info) GetIp6() []byte { - if x != nil { - return x.Ip6 - } - return nil -} - func (x *IPv6Info) GetPort() uint32 { if x != nil && x.Port != nil { return *x.Port @@ -796,13 +516,6 @@ type ImgInfo struct { FileHeight *uint32 `protobuf:"varint,5,opt"` } -func (x *ImgInfo) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - func (x *ImgInfo) GetFileType() uint32 { if x != nil && x.FileType != nil { return *x.FileType @@ -884,34 +597,6 @@ func (x *D388ReqBody) GetSubcmd() uint32 { return 0 } -func (x *D388ReqBody) GetTryupImgReq() []*TryUpImgReq { - if x != nil { - return x.TryupImgReq - } - return nil -} - -func (x *D388ReqBody) GetGetimgUrlReq() []*GetImgUrlReq { - if x != nil { - return x.GetimgUrlReq - } - return nil -} - -func (x *D388ReqBody) GetTryupPttReq() []*TryUpPttReq { - if x != nil { - return x.TryupPttReq - } - return nil -} - -func (x *D388ReqBody) GetGetpttUrlReq() []*GetPttUrlReq { - if x != nil { - return x.GetpttUrlReq - } - return nil -} - func (x *D388ReqBody) GetCommandId() uint32 { if x != nil && x.CommandId != nil { return *x.CommandId @@ -919,20 +604,6 @@ func (x *D388ReqBody) GetCommandId() uint32 { return 0 } -func (x *D388ReqBody) GetDelImgReq() []*DelImgReq { - if x != nil { - return x.DelImgReq - } - return nil -} - -func (x *D388ReqBody) GetExtension() []byte { - if x != nil { - return x.Extension - } - return nil -} - type D388RspBody struct { ClientIp *uint32 `protobuf:"varint,1,opt"` Subcmd *uint32 `protobuf:"varint,2,opt"` @@ -957,41 +628,6 @@ func (x *D388RspBody) GetSubcmd() uint32 { return 0 } -func (x *D388RspBody) GetTryupImgRsp() []*D388TryUpImgRsp { - if x != nil { - return x.TryupImgRsp - } - return nil -} - -func (x *D388RspBody) GetGetimgUrlRsp() []*GetImgUrlRsp { - if x != nil { - return x.GetimgUrlRsp - } - return nil -} - -func (x *D388RspBody) GetTryupPttRsp() []*TryUpPttRsp { - if x != nil { - return x.TryupPttRsp - } - return nil -} - -func (x *D388RspBody) GetGetpttUrlRsp() []*GetPttUrlRsp { - if x != nil { - return x.GetpttUrlRsp - } - return nil -} - -func (x *D388RspBody) GetDelImgRsp() []*DelImgRsp { - if x != nil { - return x.DelImgRsp - } - return nil -} - type TryUpImgReq struct { GroupCode *uint64 `protobuf:"varint,1,opt"` SrcUin *uint64 `protobuf:"varint,2,opt"` @@ -1038,13 +674,6 @@ func (x *TryUpImgReq) GetFileId() uint64 { return 0 } -func (x *TryUpImgReq) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - func (x *TryUpImgReq) GetFileSize() uint64 { if x != nil && x.FileSize != nil { return *x.FileSize @@ -1052,13 +681,6 @@ func (x *TryUpImgReq) GetFileSize() uint64 { return 0 } -func (x *TryUpImgReq) GetFileName() []byte { - if x != nil { - return x.FileName - } - return nil -} - func (x *TryUpImgReq) GetSrcTerm() uint32 { if x != nil && x.SrcTerm != nil { return *x.SrcTerm @@ -1101,13 +723,6 @@ func (x *TryUpImgReq) GetPicType() uint32 { return 0 } -func (x *TryUpImgReq) GetBuildVer() []byte { - if x != nil { - return x.BuildVer - } - return nil -} - func (x *TryUpImgReq) GetInnerIp() uint32 { if x != nil && x.InnerIp != nil { return *x.InnerIp @@ -1129,13 +744,6 @@ func (x *TryUpImgReq) GetOriginalPic() uint32 { return 0 } -func (x *TryUpImgReq) GetFileIndex() []byte { - if x != nil { - return x.FileIndex - } - return nil -} - func (x *TryUpImgReq) GetDstUin() uint64 { if x != nil && x.DstUin != nil { return *x.DstUin @@ -1150,13 +758,6 @@ func (x *TryUpImgReq) GetSrvUpload() uint32 { return 0 } -func (x *TryUpImgReq) GetTransferUrl() []byte { - if x != nil { - return x.TransferUrl - } - return nil -} - func (x *TryUpImgReq) GetQqmeetGuildId() uint64 { if x != nil && x.QqmeetGuildId != nil { return *x.QqmeetGuildId @@ -1204,13 +805,6 @@ func (x *D388TryUpImgRsp) GetResult() uint32 { return 0 } -func (x *D388TryUpImgRsp) GetFailMsg() []byte { - if x != nil { - return x.FailMsg - } - return nil -} - func (x *D388TryUpImgRsp) GetFileExit() bool { if x != nil && x.FileExit != nil { return *x.FileExit @@ -1218,34 +812,6 @@ func (x *D388TryUpImgRsp) GetFileExit() bool { return false } -func (x *D388TryUpImgRsp) GetImgInfo() *ImgInfo { - if x != nil { - return x.ImgInfo - } - return nil -} - -func (x *D388TryUpImgRsp) GetUpIp() []uint32 { - if x != nil { - return x.UpIp - } - return nil -} - -func (x *D388TryUpImgRsp) GetUpPort() []uint32 { - if x != nil { - return x.UpPort - } - return nil -} - -func (x *D388TryUpImgRsp) GetUpUkey() []byte { - if x != nil { - return x.UpUkey - } - return nil -} - func (x *D388TryUpImgRsp) GetFileid() uint64 { if x != nil && x.Fileid != nil { return *x.Fileid @@ -1274,34 +840,6 @@ func (x *D388TryUpImgRsp) GetNewBigChan() bool { return false } -func (x *D388TryUpImgRsp) GetUpIp6() []*IPv6Info { - if x != nil { - return x.UpIp6 - } - return nil -} - -func (x *D388TryUpImgRsp) GetClientIp6() []byte { - if x != nil { - return x.ClientIp6 - } - return nil -} - -func (x *D388TryUpImgRsp) GetDownloadIndex() []byte { - if x != nil { - return x.DownloadIndex - } - return nil -} - -func (x *D388TryUpImgRsp) GetInfo4Busi() *TryUpInfo4Busi { - if x != nil { - return x.Info4Busi - } - return nil -} - type TryUpInfo4Busi struct { DownDomain []byte `protobuf:"bytes,1,opt"` ThumbDownUrl []byte `protobuf:"bytes,2,opt"` @@ -1310,41 +848,6 @@ type TryUpInfo4Busi struct { FileResid []byte `protobuf:"bytes,5,opt"` } -func (x *TryUpInfo4Busi) GetDownDomain() []byte { - if x != nil { - return x.DownDomain - } - return nil -} - -func (x *TryUpInfo4Busi) GetThumbDownUrl() []byte { - if x != nil { - return x.ThumbDownUrl - } - return nil -} - -func (x *TryUpInfo4Busi) GetOriginalDownUrl() []byte { - if x != nil { - return x.OriginalDownUrl - } - return nil -} - -func (x *TryUpInfo4Busi) GetBigDownUrl() []byte { - if x != nil { - return x.BigDownUrl - } - return nil -} - -func (x *TryUpInfo4Busi) GetFileResid() []byte { - if x != nil { - return x.FileResid - } - return nil -} - type TryUpPttReq struct { GroupCode *uint64 `protobuf:"varint,1,opt"` SrcUin *uint64 `protobuf:"varint,2,opt"` @@ -1385,13 +888,6 @@ func (x *TryUpPttReq) GetFileId() uint64 { return 0 } -func (x *TryUpPttReq) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - func (x *TryUpPttReq) GetFileSize() uint64 { if x != nil && x.FileSize != nil { return *x.FileSize @@ -1399,13 +895,6 @@ func (x *TryUpPttReq) GetFileSize() uint64 { return 0 } -func (x *TryUpPttReq) GetFileName() []byte { - if x != nil { - return x.FileName - } - return nil -} - func (x *TryUpPttReq) GetSrcTerm() uint32 { if x != nil && x.SrcTerm != nil { return *x.SrcTerm @@ -1427,13 +916,6 @@ func (x *TryUpPttReq) GetBuType() uint32 { return 0 } -func (x *TryUpPttReq) GetBuildVer() []byte { - if x != nil { - return x.BuildVer - } - return nil -} - func (x *TryUpPttReq) GetInnerIp() uint32 { if x != nil && x.InnerIp != nil { return *x.InnerIp @@ -1507,13 +989,6 @@ func (x *TryUpPttRsp) GetResult() uint32 { return 0 } -func (x *TryUpPttRsp) GetFailMsg() []byte { - if x != nil { - return x.FailMsg - } - return nil -} - func (x *TryUpPttRsp) GetFileExit() bool { if x != nil && x.FileExit != nil { return *x.FileExit @@ -1521,27 +996,6 @@ func (x *TryUpPttRsp) GetFileExit() bool { return false } -func (x *TryUpPttRsp) GetUpIp() []uint32 { - if x != nil { - return x.UpIp - } - return nil -} - -func (x *TryUpPttRsp) GetUpPort() []uint32 { - if x != nil { - return x.UpPort - } - return nil -} - -func (x *TryUpPttRsp) GetUpUkey() []byte { - if x != nil { - return x.UpUkey - } - return nil -} - func (x *TryUpPttRsp) GetFileid() uint64 { if x != nil && x.Fileid != nil { return *x.Fileid @@ -1563,30 +1017,9 @@ func (x *TryUpPttRsp) GetBlockSize() uint64 { return 0 } -func (x *TryUpPttRsp) GetFileKey() []byte { - if x != nil { - return x.FileKey - } - return nil -} - func (x *TryUpPttRsp) GetChannelType() uint32 { if x != nil && x.ChannelType != nil { return *x.ChannelType } return 0 } - -func (x *TryUpPttRsp) GetUpIp6() []*IPv6Info { - if x != nil { - return x.UpIp6 - } - return nil -} - -func (x *TryUpPttRsp) GetClientIp6() []byte { - if x != nil { - return x.ClientIp6 - } - return nil -} diff --git a/client/pb/cmd0x388/cmd0x388.proto b/client/pb/cmd0x388/cmd0x388.proto index dc7f731c..725654f0 100644 --- a/client/pb/cmd0x388/cmd0x388.proto +++ b/client/pb/cmd0x388/cmd0x388.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;cmd0x388"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/cmd0x388"; message DelImgReq { optional uint64 srcUin = 1; diff --git a/client/pb/cmd0x3f6/cmd0x3f6.pb.go b/client/pb/cmd0x3f6/cmd0x3f6.pb.go index ab87fe0c..96e38774 100644 --- a/client/pb/cmd0x3f6/cmd0x3f6.pb.go +++ b/client/pb/cmd0x3f6/cmd0x3f6.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: cmd0x3f6.proto +// source: pb/cmd0x3f6/cmd0x3f6.proto package cmd0x3f6 @@ -16,20 +16,6 @@ func (x *C3F6ReqBody) GetSubCmd() uint32 { return 0 } -func (x *C3F6ReqBody) GetCrmCommonHead() *C3F6CRMMsgHead { - if x != nil { - return x.CrmCommonHead - } - return nil -} - -func (x *C3F6ReqBody) GetSubcmdLoginProcessCompleteReqBody() *QDUserLoginProcessCompleteReqBody { - if x != nil { - return x.SubcmdLoginProcessCompleteReqBody - } - return nil -} - type C3F6RspBody struct { SubCmd *uint32 `protobuf:"varint,1,opt"` CrmCommonHead *C3F6CRMMsgHead `protobuf:"bytes,2,opt"` @@ -43,20 +29,6 @@ func (x *C3F6RspBody) GetSubCmd() uint32 { return 0 } -func (x *C3F6RspBody) GetCrmCommonHead() *C3F6CRMMsgHead { - if x != nil { - return x.CrmCommonHead - } - return nil -} - -func (x *C3F6RspBody) GetSubcmdLoginProcessCompleteRspBody() *QDUserLoginProcessCompleteRspBody { - if x != nil { - return x.SubcmdLoginProcessCompleteRspBody - } - return nil -} - type QDUserLoginProcessCompleteReqBody struct { Kfext *uint64 `protobuf:"varint,1,opt"` Pubno *uint32 `protobuf:"varint,2,opt"` @@ -127,13 +99,6 @@ func (x *QDUserLoginProcessCompleteReqBody) GetSoftwareInfo() string { return "" } -func (x *QDUserLoginProcessCompleteReqBody) GetGuid() []byte { - if x != nil { - return x.Guid - } - return nil -} - func (x *QDUserLoginProcessCompleteReqBody) GetAppName() string { if x != nil && x.AppName != nil { return *x.AppName @@ -171,13 +136,6 @@ type QDUserLoginProcessCompleteRspBody struct { OpenAccountTime *uint32 `protobuf:"varint,20,opt"` } -func (x *QDUserLoginProcessCompleteRspBody) GetRet() *RetInfo { - if x != nil { - return x.Ret - } - return nil -} - func (x *QDUserLoginProcessCompleteRspBody) GetUrl() string { if x != nil && x.Url != nil { return *x.Url @@ -220,13 +178,6 @@ func (x *QDUserLoginProcessCompleteRspBody) GetModulePrivilege() uint64 { return 0 } -func (x *QDUserLoginProcessCompleteRspBody) GetModuleSubPrivilege() []uint32 { - if x != nil { - return x.ModuleSubPrivilege - } - return nil -} - func (x *QDUserLoginProcessCompleteRspBody) GetMasterSet() uint32 { if x != nil && x.MasterSet != nil { return *x.MasterSet diff --git a/client/pb/cmd0x3f6/cmd0x3f6.proto b/client/pb/cmd0x3f6/cmd0x3f6.proto index 2a2a848c..101516f2 100644 --- a/client/pb/cmd0x3f6/cmd0x3f6.proto +++ b/client/pb/cmd0x3f6/cmd0x3f6.proto @@ -1,5 +1,5 @@ syntax = "proto2"; -option go_package = "./;cmd0x3f6"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/cmd0x3f6"; message C3F6ReqBody { optional uint32 subCmd = 1; diff --git a/client/pb/cmd0x6ff/smbcmd0x519.pb.go b/client/pb/cmd0x6ff/smbcmd0x519.pb.go index 465b0fbc..30cb33f8 100644 --- a/client/pb/cmd0x6ff/smbcmd0x519.pb.go +++ b/client/pb/cmd0x6ff/smbcmd0x519.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: smbcmd0x519.proto +// source: pb/cmd0x6ff/smbcmd0x519.proto package cmd0x6ff @@ -144,13 +144,6 @@ type GetNavigationMenuRspBody struct { VerNo *uint32 `protobuf:"varint,4,opt"` } -func (x *GetNavigationMenuRspBody) GetRet() *C519RetInfo { - if x != nil { - return x.Ret - } - return nil -} - func (x *GetNavigationMenuRspBody) GetIsShow() int32 { if x != nil && x.IsShow != nil { return *x.IsShow @@ -186,27 +179,6 @@ func (x *C519ReqBody) GetSubCmd() uint32 { return 0 } -func (x *C519ReqBody) GetCrmCommonHead() *C519CRMMsgHead { - if x != nil { - return x.CrmCommonHead - } - return nil -} - -func (x *C519ReqBody) GetGetAddressDetailListReqBody() *GetAddressDetailListReqBody { - if x != nil { - return x.GetAddressDetailListReqBody - } - return nil -} - -func (x *C519ReqBody) GetGetNavigationMenuReq() *GetNavigationMenuReqBody { - if x != nil { - return x.GetNavigationMenuReq - } - return nil -} - type C519RetInfo struct { RetCode *uint32 `protobuf:"varint,1,opt"` ErrorMsg *string `protobuf:"bytes,2,opt"` @@ -240,27 +212,6 @@ func (x *C519RspBody) GetSubCmd() uint32 { return 0 } -func (x *C519RspBody) GetCrmCommonHead() *C519CRMMsgHead { - if x != nil { - return x.CrmCommonHead - } - return nil -} - -func (x *C519RspBody) GetGetAddressDetailListRspBody() *GetAddressDetailListRspBody { - if x != nil { - return x.GetAddressDetailListRspBody - } - return nil -} - -func (x *C519RspBody) GetGetNavigationMenuRsp() *GetNavigationMenuRspBody { - if x != nil { - return x.GetNavigationMenuRsp - } - return nil -} - type GetAddressDetailListReqBody struct { Timestamp *uint32 `protobuf:"fixed32,1,opt"` Timestamp2 *uint64 `protobuf:"fixed64,2,opt"` @@ -288,13 +239,6 @@ type GetAddressDetailListRspBody struct { Timestamp2 *uint64 `protobuf:"fixed64,5,opt"` } -func (x *GetAddressDetailListRspBody) GetRet() *C519RetInfo { - if x != nil { - return x.Ret - } - return nil -} - func (x *GetAddressDetailListRspBody) GetTimestamp() uint32 { if x != nil && x.Timestamp != nil { return *x.Timestamp @@ -309,13 +253,6 @@ func (x *GetAddressDetailListRspBody) GetFull() bool { return false } -func (x *GetAddressDetailListRspBody) GetAddressDetail() []*AddressDetail { - if x != nil { - return x.AddressDetail - } - return nil -} - func (x *GetAddressDetailListRspBody) GetTimestamp2() uint64 { if x != nil && x.Timestamp2 != nil { return *x.Timestamp2 @@ -389,20 +326,6 @@ func (x *AddressDetail) GetGroupid() uint32 { return 0 } -func (x *AddressDetail) GetAddGroupName() []byte { - if x != nil { - return x.AddGroupName - } - return nil -} - -func (x *AddressDetail) GetName() []byte { - if x != nil { - return x.Name - } - return nil -} - func (x *AddressDetail) GetGender() uint32 { if x != nil && x.Gender != nil { return *x.Gender @@ -417,97 +340,6 @@ func (x *AddressDetail) GetBirthday() uint32 { return 0 } -func (x *AddressDetail) GetCompany0() []byte { - if x != nil { - return x.Company0 - } - return nil -} - -func (x *AddressDetail) GetCompanyPosition0() []byte { - if x != nil { - return x.CompanyPosition0 - } - return nil -} - -func (x *AddressDetail) GetCompany1() []byte { - if x != nil { - return x.Company1 - } - return nil -} - -func (x *AddressDetail) GetCompanyPosition1() []byte { - if x != nil { - return x.CompanyPosition1 - } - return nil -} - -func (x *AddressDetail) GetFixedPhone0() []byte { - if x != nil { - return x.FixedPhone0 - } - return nil -} - -func (x *AddressDetail) GetFixedPhone1() []byte { - if x != nil { - return x.FixedPhone1 - } - return nil -} - -func (x *AddressDetail) GetEmail0() []byte { - if x != nil { - return x.Email0 - } - return nil -} - -func (x *AddressDetail) GetEmail1() []byte { - if x != nil { - return x.Email1 - } - return nil -} - -func (x *AddressDetail) GetFax0() []byte { - if x != nil { - return x.Fax0 - } - return nil -} - -func (x *AddressDetail) GetFax1() []byte { - if x != nil { - return x.Fax1 - } - return nil -} - -func (x *AddressDetail) GetComment() []byte { - if x != nil { - return x.Comment - } - return nil -} - -func (x *AddressDetail) GetHeadUrl() []byte { - if x != nil { - return x.HeadUrl - } - return nil -} - -func (x *AddressDetail) GetMobilePhone() []*AddressMobileInfo { - if x != nil { - return x.MobilePhone - } - return nil -} - func (x *AddressDetail) GetMobilePhoneUpdated() bool { if x != nil && x.MobilePhoneUpdated != nil { return *x.MobilePhoneUpdated @@ -515,13 +347,6 @@ func (x *AddressDetail) GetMobilePhoneUpdated() bool { return false } -func (x *AddressDetail) GetQq() []*AddressQQinfo { - if x != nil { - return x.Qq - } - return nil -} - func (x *AddressDetail) GetQqPhoneUpdated() bool { if x != nil && x.QqPhoneUpdated != nil { return *x.QqPhoneUpdated @@ -536,20 +361,6 @@ func (x *AddressDetail) GetModifyTime2() uint64 { return 0 } -func (x *AddressDetail) GetClientRegion() *NewBizClientRegion { - if x != nil { - return x.ClientRegion - } - return nil -} - -func (x *AddressDetail) GetClientRegionCode() *NewBizClientRegionCode { - if x != nil { - return x.ClientRegionCode - } - return nil -} - type AddressMobileInfo struct { Index *uint32 `protobuf:"varint,1,opt"` Account []byte `protobuf:"bytes,2,opt"` @@ -563,20 +374,6 @@ func (x *AddressMobileInfo) GetIndex() uint32 { return 0 } -func (x *AddressMobileInfo) GetAccount() []byte { - if x != nil { - return x.Account - } - return nil -} - -func (x *AddressMobileInfo) GetFormattedAccount() []byte { - if x != nil { - return x.FormattedAccount - } - return nil -} - type AddressQQinfo struct { Index *uint32 `protobuf:"varint,1,opt"` Account *uint64 `protobuf:"varint,2,opt"` diff --git a/client/pb/cmd0x6ff/smbcmd0x519.proto b/client/pb/cmd0x6ff/smbcmd0x519.proto index 1a9d7bdc..3fcc227b 100644 --- a/client/pb/cmd0x6ff/smbcmd0x519.proto +++ b/client/pb/cmd0x6ff/smbcmd0x519.proto @@ -1,5 +1,5 @@ syntax = "proto2"; -option go_package = "./;cmd0x6ff"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/cmd0x6ff"; message C519CRMMsgHead { optional uint32 crmSubCmd = 1; diff --git a/client/pb/cmd0x6ff/subcmd0x501.pb.go b/client/pb/cmd0x6ff/subcmd0x501.pb.go index ec2ed637..f2f153c7 100644 --- a/client/pb/cmd0x6ff/subcmd0x501.pb.go +++ b/client/pb/cmd0x6ff/subcmd0x501.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: subcmd0x501.proto +// source: pb/cmd0x6ff/subcmd0x501.proto package cmd0x6ff @@ -7,24 +7,10 @@ type C501ReqBody struct { ReqBody *SubCmd0X501ReqBody `protobuf:"bytes,1281,opt"` } -func (x *C501ReqBody) GetReqBody() *SubCmd0X501ReqBody { - if x != nil { - return x.ReqBody - } - return nil -} - type C501RspBody struct { RspBody *SubCmd0X501RspBody `protobuf:"bytes,1281,opt"` } -func (x *C501RspBody) GetRspBody() *SubCmd0X501RspBody { - if x != nil { - return x.RspBody - } - return nil -} - type SubCmd0X501ReqBody struct { Uin *uint64 `protobuf:"varint,1,opt"` IdcId *uint32 `protobuf:"varint,2,opt"` @@ -64,13 +50,6 @@ func (x *SubCmd0X501ReqBody) GetLoginSigType() uint32 { return 0 } -func (x *SubCmd0X501ReqBody) GetLoginSigTicket() []byte { - if x != nil { - return x.LoginSigTicket - } - return nil -} - func (x *SubCmd0X501ReqBody) GetRequestFlag() uint32 { if x != nil && x.RequestFlag != nil { return *x.RequestFlag @@ -78,13 +57,6 @@ func (x *SubCmd0X501ReqBody) GetRequestFlag() uint32 { return 0 } -func (x *SubCmd0X501ReqBody) GetServiceTypes() []uint32 { - if x != nil { - return x.ServiceTypes - } - return nil -} - func (x *SubCmd0X501ReqBody) GetBid() uint32 { if x != nil && x.Bid != nil { return *x.Bid @@ -98,27 +70,6 @@ type SubCmd0X501RspBody struct { Addrs []*SrvAddrs `protobuf:"bytes,3,rep"` } -func (x *SubCmd0X501RspBody) GetSigSession() []byte { - if x != nil { - return x.SigSession - } - return nil -} - -func (x *SubCmd0X501RspBody) GetSessionKey() []byte { - if x != nil { - return x.SessionKey - } - return nil -} - -func (x *SubCmd0X501RspBody) GetAddrs() []*SrvAddrs { - if x != nil { - return x.Addrs - } - return nil -} - type SrvAddrs struct { ServiceType *uint32 `protobuf:"varint,1,opt"` Addrs []*IpAddr `protobuf:"bytes,2,rep"` @@ -131,13 +82,6 @@ func (x *SrvAddrs) GetServiceType() uint32 { return 0 } -func (x *SrvAddrs) GetAddrs() []*IpAddr { - if x != nil { - return x.Addrs - } - return nil -} - type IpAddr struct { Type *uint32 `protobuf:"varint,1,opt"` Ip *uint32 `protobuf:"fixed32,2,opt"` diff --git a/client/pb/cmd0x6ff/subcmd0x501.proto b/client/pb/cmd0x6ff/subcmd0x501.proto index dc101ec3..08482da5 100644 --- a/client/pb/cmd0x6ff/subcmd0x501.proto +++ b/client/pb/cmd0x6ff/subcmd0x501.proto @@ -1,5 +1,5 @@ syntax = "proto2"; -option go_package = "./;cmd0x6ff"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/cmd0x6ff"; message C501ReqBody { optional SubCmd0x501ReqBody ReqBody = 1281; diff --git a/client/pb/data.pb.go b/client/pb/data.pb.go index 98c807fb..529be82b 100644 --- a/client/pb/data.pb.go +++ b/client/pb/data.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: data.proto +// source: pb/data.proto package pb @@ -15,99 +15,15 @@ type DeviceInfo struct { InnerVersion string `protobuf:"bytes,9,opt"` } -func (x *DeviceInfo) GetBootloader() string { - if x != nil { - return x.Bootloader - } - return "" -} - -func (x *DeviceInfo) GetProcVersion() string { - if x != nil { - return x.ProcVersion - } - return "" -} - -func (x *DeviceInfo) GetCodename() string { - if x != nil { - return x.Codename - } - return "" -} - -func (x *DeviceInfo) GetIncremental() string { - if x != nil { - return x.Incremental - } - return "" -} - -func (x *DeviceInfo) GetFingerprint() string { - if x != nil { - return x.Fingerprint - } - return "" -} - -func (x *DeviceInfo) GetBootId() string { - if x != nil { - return x.BootId - } - return "" -} - -func (x *DeviceInfo) GetAndroidId() string { - if x != nil { - return x.AndroidId - } - return "" -} - -func (x *DeviceInfo) GetBaseBand() string { - if x != nil { - return x.BaseBand - } - return "" -} - -func (x *DeviceInfo) GetInnerVersion() string { - if x != nil { - return x.InnerVersion - } - return "" -} - type RequestBody struct { RptConfigList []*ConfigSeq `protobuf:"bytes,1,rep"` } -func (x *RequestBody) GetRptConfigList() []*ConfigSeq { - if x != nil { - return x.RptConfigList - } - return nil -} - type ConfigSeq struct { Type int32 `protobuf:"varint,1,opt"` Version int32 `protobuf:"varint,2,opt"` } -func (x *ConfigSeq) GetType() int32 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *ConfigSeq) GetVersion() int32 { - if x != nil { - return x.Version - } - return 0 -} - type D50ReqBody struct { Appid int64 `protobuf:"varint,1,opt"` MaxPkgSize int32 `protobuf:"varint,2,opt"` @@ -122,83 +38,6 @@ type D50ReqBody struct { ReqMutualmarkLbsshare int32 `protobuf:"varint,181001,opt"` } -func (x *D50ReqBody) GetAppid() int64 { - if x != nil { - return x.Appid - } - return 0 -} - -func (x *D50ReqBody) GetMaxPkgSize() int32 { - if x != nil { - return x.MaxPkgSize - } - return 0 -} - -func (x *D50ReqBody) GetStartTime() int32 { - if x != nil { - return x.StartTime - } - return 0 -} - -func (x *D50ReqBody) GetStartIndex() int32 { - if x != nil { - return x.StartIndex - } - return 0 -} - -func (x *D50ReqBody) GetReqNum() int32 { - if x != nil { - return x.ReqNum - } - return 0 -} - -func (x *D50ReqBody) GetUinList() []int64 { - if x != nil { - return x.UinList - } - return nil -} - -func (x *D50ReqBody) GetReqMusicSwitch() int32 { - if x != nil { - return x.ReqMusicSwitch - } - return 0 -} - -func (x *D50ReqBody) GetReqMutualmarkAlienation() int32 { - if x != nil { - return x.ReqMutualmarkAlienation - } - return 0 -} - -func (x *D50ReqBody) GetReqMutualmarkScore() int32 { - if x != nil { - return x.ReqMutualmarkScore - } - return 0 -} - -func (x *D50ReqBody) GetReqKsingSwitch() int32 { - if x != nil { - return x.ReqKsingSwitch - } - return 0 -} - -func (x *D50ReqBody) GetReqMutualmarkLbsshare() int32 { - if x != nil { - return x.ReqMutualmarkLbsshare - } - return 0 -} - type ReqDataHighwayHead struct { MsgBasehead *DataHighwayHead `protobuf:"bytes,1,opt"` MsgSeghead *SegHead `protobuf:"bytes,2,opt"` @@ -206,34 +45,6 @@ type ReqDataHighwayHead struct { Timestamp int64 `protobuf:"varint,4,opt"` //LoginSigHead? msgLoginSigHead = 5; } -func (x *ReqDataHighwayHead) GetMsgBasehead() *DataHighwayHead { - if x != nil { - return x.MsgBasehead - } - return nil -} - -func (x *ReqDataHighwayHead) GetMsgSeghead() *SegHead { - if x != nil { - return x.MsgSeghead - } - return nil -} - -func (x *ReqDataHighwayHead) GetReqExtendinfo() []byte { - if x != nil { - return x.ReqExtendinfo - } - return nil -} - -func (x *ReqDataHighwayHead) GetTimestamp() int64 { - if x != nil { - return x.Timestamp - } - return 0 -} - type RspDataHighwayHead struct { MsgBasehead *DataHighwayHead `protobuf:"bytes,1,opt"` MsgSeghead *SegHead `protobuf:"bytes,2,opt"` @@ -247,76 +58,6 @@ type RspDataHighwayHead struct { IsReset int32 `protobuf:"varint,10,opt"` } -func (x *RspDataHighwayHead) GetMsgBasehead() *DataHighwayHead { - if x != nil { - return x.MsgBasehead - } - return nil -} - -func (x *RspDataHighwayHead) GetMsgSeghead() *SegHead { - if x != nil { - return x.MsgSeghead - } - return nil -} - -func (x *RspDataHighwayHead) GetErrorCode() int32 { - if x != nil { - return x.ErrorCode - } - return 0 -} - -func (x *RspDataHighwayHead) GetAllowRetry() int32 { - if x != nil { - return x.AllowRetry - } - return 0 -} - -func (x *RspDataHighwayHead) GetCachecost() int32 { - if x != nil { - return x.Cachecost - } - return 0 -} - -func (x *RspDataHighwayHead) GetHtcost() int32 { - if x != nil { - return x.Htcost - } - return 0 -} - -func (x *RspDataHighwayHead) GetRspExtendinfo() []byte { - if x != nil { - return x.RspExtendinfo - } - return nil -} - -func (x *RspDataHighwayHead) GetTimestamp() int64 { - if x != nil { - return x.Timestamp - } - return 0 -} - -func (x *RspDataHighwayHead) GetRange() int64 { - if x != nil { - return x.Range - } - return 0 -} - -func (x *RspDataHighwayHead) GetIsReset() int32 { - if x != nil { - return x.IsReset - } - return 0 -} - type DataHighwayHead struct { Version int32 `protobuf:"varint,1,opt"` Uin string `protobuf:"bytes,2,opt"` @@ -330,76 +71,6 @@ type DataHighwayHead struct { LocaleId int32 `protobuf:"varint,10,opt"` } -func (x *DataHighwayHead) GetVersion() int32 { - if x != nil { - return x.Version - } - return 0 -} - -func (x *DataHighwayHead) GetUin() string { - if x != nil { - return x.Uin - } - return "" -} - -func (x *DataHighwayHead) GetCommand() string { - if x != nil { - return x.Command - } - return "" -} - -func (x *DataHighwayHead) GetSeq() int32 { - if x != nil { - return x.Seq - } - return 0 -} - -func (x *DataHighwayHead) GetRetryTimes() int32 { - if x != nil { - return x.RetryTimes - } - return 0 -} - -func (x *DataHighwayHead) GetAppid() int32 { - if x != nil { - return x.Appid - } - return 0 -} - -func (x *DataHighwayHead) GetDataflag() int32 { - if x != nil { - return x.Dataflag - } - return 0 -} - -func (x *DataHighwayHead) GetCommandId() int32 { - if x != nil { - return x.CommandId - } - return 0 -} - -func (x *DataHighwayHead) GetBuildVer() string { - if x != nil { - return x.BuildVer - } - return "" -} - -func (x *DataHighwayHead) GetLocaleId() int32 { - if x != nil { - return x.LocaleId - } - return 0 -} - type SegHead struct { Serviceid int32 `protobuf:"varint,1,opt"` Filesize int64 `protobuf:"varint,2,opt"` @@ -415,101 +86,10 @@ type SegHead struct { UpdateCacheip int32 `protobuf:"varint,12,opt"` } -func (x *SegHead) GetServiceid() int32 { - if x != nil { - return x.Serviceid - } - return 0 -} - -func (x *SegHead) GetFilesize() int64 { - if x != nil { - return x.Filesize - } - return 0 -} - -func (x *SegHead) GetDataoffset() int64 { - if x != nil { - return x.Dataoffset - } - return 0 -} - -func (x *SegHead) GetDatalength() int32 { - if x != nil { - return x.Datalength - } - return 0 -} - -func (x *SegHead) GetRtcode() int32 { - if x != nil { - return x.Rtcode - } - return 0 -} - -func (x *SegHead) GetServiceticket() []byte { - if x != nil { - return x.Serviceticket - } - return nil -} - -func (x *SegHead) GetFlag() int32 { - if x != nil { - return x.Flag - } - return 0 -} - -func (x *SegHead) GetMd5() []byte { - if x != nil { - return x.Md5 - } - return nil -} - -func (x *SegHead) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - -func (x *SegHead) GetCacheAddr() int32 { - if x != nil { - return x.CacheAddr - } - return 0 -} - -func (x *SegHead) GetQueryTimes() int32 { - if x != nil { - return x.QueryTimes - } - return 0 -} - -func (x *SegHead) GetUpdateCacheip() int32 { - if x != nil { - return x.UpdateCacheip - } - return 0 -} - type DeleteMessageRequest struct { Items []*MessageItem `protobuf:"bytes,1,rep"` } -func (x *DeleteMessageRequest) GetItems() []*MessageItem { - if x != nil { - return x.Items - } - return nil -} - type MessageItem struct { FromUin int64 `protobuf:"varint,1,opt"` ToUin int64 `protobuf:"varint,2,opt"` @@ -519,59 +99,10 @@ type MessageItem struct { Sig []byte `protobuf:"bytes,7,opt"` } -func (x *MessageItem) GetFromUin() int64 { - if x != nil { - return x.FromUin - } - return 0 -} - -func (x *MessageItem) GetToUin() int64 { - if x != nil { - return x.ToUin - } - return 0 -} - -func (x *MessageItem) GetMsgType() int32 { - if x != nil { - return x.MsgType - } - return 0 -} - -func (x *MessageItem) GetMsgSeq() int32 { - if x != nil { - return x.MsgSeq - } - return 0 -} - -func (x *MessageItem) GetMsgUid() int64 { - if x != nil { - return x.MsgUid - } - return 0 -} - -func (x *MessageItem) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - type SubD4 struct { Uin int64 `protobuf:"varint,1,opt"` } -func (x *SubD4) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - type Sub8A struct { MsgInfo []*Sub8AMsgInfo `protobuf:"bytes,1,rep"` AppId int32 `protobuf:"varint,2,opt"` @@ -580,41 +111,6 @@ type Sub8A struct { Reserved []byte `protobuf:"bytes,5,opt"` } -func (x *Sub8A) GetMsgInfo() []*Sub8AMsgInfo { - if x != nil { - return x.MsgInfo - } - return nil -} - -func (x *Sub8A) GetAppId() int32 { - if x != nil { - return x.AppId - } - return 0 -} - -func (x *Sub8A) GetInstId() int32 { - if x != nil { - return x.InstId - } - return 0 -} - -func (x *Sub8A) GetLongMessageFlag() int32 { - if x != nil { - return x.LongMessageFlag - } - return 0 -} - -func (x *Sub8A) GetReserved() []byte { - if x != nil { - return x.Reserved - } - return nil -} - type Sub8AMsgInfo struct { FromUin int64 `protobuf:"varint,1,opt"` ToUin int64 `protobuf:"varint,2,opt"` @@ -627,126 +123,21 @@ type Sub8AMsgInfo struct { DevSeq int32 `protobuf:"varint,9,opt"` } -func (x *Sub8AMsgInfo) GetFromUin() int64 { - if x != nil { - return x.FromUin - } - return 0 -} - -func (x *Sub8AMsgInfo) GetToUin() int64 { - if x != nil { - return x.ToUin - } - return 0 -} - -func (x *Sub8AMsgInfo) GetMsgSeq() int32 { - if x != nil { - return x.MsgSeq - } - return 0 -} - -func (x *Sub8AMsgInfo) GetMsgUid() int64 { - if x != nil { - return x.MsgUid - } - return 0 -} - -func (x *Sub8AMsgInfo) GetMsgTime() int64 { - if x != nil { - return x.MsgTime - } - return 0 -} - -func (x *Sub8AMsgInfo) GetMsgRandom() int32 { - if x != nil { - return x.MsgRandom - } - return 0 -} - -func (x *Sub8AMsgInfo) GetPkgNum() int32 { - if x != nil { - return x.PkgNum - } - return 0 -} - -func (x *Sub8AMsgInfo) GetPkgIndex() int32 { - if x != nil { - return x.PkgIndex - } - return 0 -} - -func (x *Sub8AMsgInfo) GetDevSeq() int32 { - if x != nil { - return x.DevSeq - } - return 0 -} - type SubB3 struct { Type int32 `protobuf:"varint,1,opt"` MsgAddFrdNotify *SubB3AddFrdNotify `protobuf:"bytes,2,opt"` } -func (x *SubB3) GetType() int32 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *SubB3) GetMsgAddFrdNotify() *SubB3AddFrdNotify { - if x != nil { - return x.MsgAddFrdNotify - } - return nil -} - type SubB3AddFrdNotify struct { Uin int64 `protobuf:"varint,1,opt"` Nick string `protobuf:"bytes,5,opt"` } -func (x *SubB3AddFrdNotify) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *SubB3AddFrdNotify) GetNick() string { - if x != nil { - return x.Nick - } - return "" -} - type Sub44 struct { FriendSyncMsg *Sub44FriendSyncMsg `protobuf:"bytes,1,opt"` GroupSyncMsg *Sub44GroupSyncMsg `protobuf:"bytes,2,opt"` } -func (x *Sub44) GetFriendSyncMsg() *Sub44FriendSyncMsg { - if x != nil { - return x.FriendSyncMsg - } - return nil -} - -func (x *Sub44) GetGroupSyncMsg() *Sub44GroupSyncMsg { - if x != nil { - return x.GroupSyncMsg - } - return nil -} - type Sub44FriendSyncMsg struct { Uin int64 `protobuf:"varint,1,opt"` FUin int64 `protobuf:"varint,2,opt"` @@ -758,62 +149,6 @@ type Sub44FriendSyncMsg struct { StrWording []string `protobuf:"bytes,8,rep"` } -func (x *Sub44FriendSyncMsg) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *Sub44FriendSyncMsg) GetFUin() int64 { - if x != nil { - return x.FUin - } - return 0 -} - -func (x *Sub44FriendSyncMsg) GetProcessType() int32 { - if x != nil { - return x.ProcessType - } - return 0 -} - -func (x *Sub44FriendSyncMsg) GetTime() int32 { - if x != nil { - return x.Time - } - return 0 -} - -func (x *Sub44FriendSyncMsg) GetProcessFlag() int32 { - if x != nil { - return x.ProcessFlag - } - return 0 -} - -func (x *Sub44FriendSyncMsg) GetSourceId() int32 { - if x != nil { - return x.SourceId - } - return 0 -} - -func (x *Sub44FriendSyncMsg) GetSourceSubId() int32 { - if x != nil { - return x.SourceSubId - } - return 0 -} - -func (x *Sub44FriendSyncMsg) GetStrWording() []string { - if x != nil { - return x.StrWording - } - return nil -} - type Sub44GroupSyncMsg struct { MsgType int32 `protobuf:"varint,1,opt"` MsgSeq int64 `protobuf:"varint,2,opt"` @@ -836,139 +171,6 @@ type Sub44GroupSyncMsg struct { ProcessFlag int32 `protobuf:"varint,19,opt"` } -func (x *Sub44GroupSyncMsg) GetMsgType() int32 { - if x != nil { - return x.MsgType - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetMsgSeq() int64 { - if x != nil { - return x.MsgSeq - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetGrpCode() int64 { - if x != nil { - return x.GrpCode - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetGaCode() int64 { - if x != nil { - return x.GaCode - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetOptUin1() int64 { - if x != nil { - return x.OptUin1 - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetOptUin2() int64 { - if x != nil { - return x.OptUin2 - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetMsgBuf() []byte { - if x != nil { - return x.MsgBuf - } - return nil -} - -func (x *Sub44GroupSyncMsg) GetAuthKey() []byte { - if x != nil { - return x.AuthKey - } - return nil -} - -func (x *Sub44GroupSyncMsg) GetMsgStatus() int32 { - if x != nil { - return x.MsgStatus - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetActionUin() int64 { - if x != nil { - return x.ActionUin - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetActionTime() int64 { - if x != nil { - return x.ActionTime - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetCurMaxMemCount() int32 { - if x != nil { - return x.CurMaxMemCount - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetNextMaxMemCount() int32 { - if x != nil { - return x.NextMaxMemCount - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetCurMemCount() int32 { - if x != nil { - return x.CurMemCount - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetReqSrcId() int32 { - if x != nil { - return x.ReqSrcId - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetReqSrcSubId() int32 { - if x != nil { - return x.ReqSrcSubId - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetInviterRole() int32 { - if x != nil { - return x.InviterRole - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetExtAdminNum() int32 { - if x != nil { - return x.ExtAdminNum - } - return 0 -} - -func (x *Sub44GroupSyncMsg) GetProcessFlag() int32 { - if x != nil { - return x.ProcessFlag - } - return 0 -} - type GroupMemberReqBody struct { GroupCode int64 `protobuf:"varint,1,opt"` Uin int64 `protobuf:"varint,2,opt"` @@ -977,41 +179,6 @@ type GroupMemberReqBody struct { RichCardNameVer int32 `protobuf:"varint,5,opt"` } -func (x *GroupMemberReqBody) GetGroupCode() int64 { - if x != nil { - return x.GroupCode - } - return 0 -} - -func (x *GroupMemberReqBody) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *GroupMemberReqBody) GetNewClient() bool { - if x != nil { - return x.NewClient - } - return false -} - -func (x *GroupMemberReqBody) GetClientType() int32 { - if x != nil { - return x.ClientType - } - return 0 -} - -func (x *GroupMemberReqBody) GetRichCardNameVer() int32 { - if x != nil { - return x.RichCardNameVer - } - return 0 -} - type GroupMemberRspBody struct { GroupCode int64 `protobuf:"varint,1,opt"` SelfRole int32 `protobuf:"varint,2,opt"` @@ -1020,41 +187,6 @@ type GroupMemberRspBody struct { GroupType int32 `protobuf:"varint,5,opt"` } -func (x *GroupMemberRspBody) GetGroupCode() int64 { - if x != nil { - return x.GroupCode - } - return 0 -} - -func (x *GroupMemberRspBody) GetSelfRole() int32 { - if x != nil { - return x.SelfRole - } - return 0 -} - -func (x *GroupMemberRspBody) GetMemInfo() *GroupMemberInfo { - if x != nil { - return x.MemInfo - } - return nil -} - -func (x *GroupMemberRspBody) GetBoolSelfLocationShared() bool { - if x != nil { - return x.BoolSelfLocationShared - } - return false -} - -func (x *GroupMemberRspBody) GetGroupType() int32 { - if x != nil { - return x.GroupType - } - return 0 -} - type GroupMemberInfo struct { Uin int64 `protobuf:"varint,1,opt"` Result int32 `protobuf:"varint,2,opt"` @@ -1096,248 +228,3 @@ type GroupMemberInfo struct { Level int32 `protobuf:"varint,39,opt"` Honor string `protobuf:"bytes,41,opt"` } - -func (x *GroupMemberInfo) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *GroupMemberInfo) GetResult() int32 { - if x != nil { - return x.Result - } - return 0 -} - -func (x *GroupMemberInfo) GetErrmsg() []byte { - if x != nil { - return x.Errmsg - } - return nil -} - -func (x *GroupMemberInfo) GetIsFriend() bool { - if x != nil { - return x.IsFriend - } - return false -} - -func (x *GroupMemberInfo) GetRemark() []byte { - if x != nil { - return x.Remark - } - return nil -} - -func (x *GroupMemberInfo) GetIsConcerned() bool { - if x != nil { - return x.IsConcerned - } - return false -} - -func (x *GroupMemberInfo) GetCredit() int32 { - if x != nil { - return x.Credit - } - return 0 -} - -func (x *GroupMemberInfo) GetCard() []byte { - if x != nil { - return x.Card - } - return nil -} - -func (x *GroupMemberInfo) GetSex() int32 { - if x != nil { - return x.Sex - } - return 0 -} - -func (x *GroupMemberInfo) GetLocation() []byte { - if x != nil { - return x.Location - } - return nil -} - -func (x *GroupMemberInfo) GetNick() []byte { - if x != nil { - return x.Nick - } - return nil -} - -func (x *GroupMemberInfo) GetAge() int32 { - if x != nil { - return x.Age - } - return 0 -} - -func (x *GroupMemberInfo) GetLev() []byte { - if x != nil { - return x.Lev - } - return nil -} - -func (x *GroupMemberInfo) GetJoin() int64 { - if x != nil { - return x.Join - } - return 0 -} - -func (x *GroupMemberInfo) GetLastSpeak() int64 { - if x != nil { - return x.LastSpeak - } - return 0 -} - -func (x *GroupMemberInfo) GetGbarTitle() []byte { - if x != nil { - return x.GbarTitle - } - return nil -} - -func (x *GroupMemberInfo) GetGbarUrl() []byte { - if x != nil { - return x.GbarUrl - } - return nil -} - -func (x *GroupMemberInfo) GetGbarCnt() int32 { - if x != nil { - return x.GbarCnt - } - return 0 -} - -func (x *GroupMemberInfo) GetIsAllowModCard() bool { - if x != nil { - return x.IsAllowModCard - } - return false -} - -func (x *GroupMemberInfo) GetIsVip() bool { - if x != nil { - return x.IsVip - } - return false -} - -func (x *GroupMemberInfo) GetIsYearVip() bool { - if x != nil { - return x.IsYearVip - } - return false -} - -func (x *GroupMemberInfo) GetIsSuperVip() bool { - if x != nil { - return x.IsSuperVip - } - return false -} - -func (x *GroupMemberInfo) GetIsSuperQq() bool { - if x != nil { - return x.IsSuperQq - } - return false -} - -func (x *GroupMemberInfo) GetVipLev() int32 { - if x != nil { - return x.VipLev - } - return 0 -} - -func (x *GroupMemberInfo) GetRole() int32 { - if x != nil { - return x.Role - } - return 0 -} - -func (x *GroupMemberInfo) GetLocationShared() bool { - if x != nil { - return x.LocationShared - } - return false -} - -func (x *GroupMemberInfo) GetInt64Distance() int64 { - if x != nil { - return x.Int64Distance - } - return 0 -} - -func (x *GroupMemberInfo) GetConcernType() int32 { - if x != nil { - return x.ConcernType - } - return 0 -} - -func (x *GroupMemberInfo) GetSpecialTitle() []byte { - if x != nil { - return x.SpecialTitle - } - return nil -} - -func (x *GroupMemberInfo) GetSpecialTitleExpireTime() int32 { - if x != nil { - return x.SpecialTitleExpireTime - } - return 0 -} - -func (x *GroupMemberInfo) GetPhoneNum() []byte { - if x != nil { - return x.PhoneNum - } - return nil -} - -func (x *GroupMemberInfo) GetJob() []byte { - if x != nil { - return x.Job - } - return nil -} - -func (x *GroupMemberInfo) GetMedalId() int32 { - if x != nil { - return x.MedalId - } - return 0 -} - -func (x *GroupMemberInfo) GetLevel() int32 { - if x != nil { - return x.Level - } - return 0 -} - -func (x *GroupMemberInfo) GetHonor() string { - if x != nil { - return x.Honor - } - return "" -} diff --git a/client/pb/data.proto b/client/pb/data.proto index 9a2fa4d4..c4b18bf5 100644 --- a/client/pb/data.proto +++ b/client/pb/data.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;pb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/pb"; message DeviceInfo { string bootloader = 1; diff --git a/client/pb/exciting/group.pb.go b/client/pb/exciting/group.pb.go index 665e1a61..1f9c046c 100644 --- a/client/pb/exciting/group.pb.go +++ b/client/pb/exciting/group.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: group.proto +// source: pb/exciting/group.proto package exciting @@ -24,13 +24,6 @@ func (x *GroupFileUploadExt) GetUnknown2() int32 { return 0 } -func (x *GroupFileUploadExt) GetEntry() *GroupFileUploadEntry { - if x != nil { - return x.Entry - } - return nil -} - func (x *GroupFileUploadExt) GetUnknown3() int32 { if x != nil && x.Unknown3 != nil { return *x.Unknown3 @@ -46,41 +39,6 @@ type GroupFileUploadEntry struct { Host *ExcitingHostConfig `protobuf:"bytes,500,opt"` } -func (x *GroupFileUploadEntry) GetBusiBuff() *ExcitingBusiInfo { - if x != nil { - return x.BusiBuff - } - return nil -} - -func (x *GroupFileUploadEntry) GetFileEntry() *ExcitingFileEntry { - if x != nil { - return x.FileEntry - } - return nil -} - -func (x *GroupFileUploadEntry) GetClientInfo() *ExcitingClientInfo { - if x != nil { - return x.ClientInfo - } - return nil -} - -func (x *GroupFileUploadEntry) GetFileNameInfo() *ExcitingFileNameInfo { - if x != nil { - return x.FileNameInfo - } - return nil -} - -func (x *GroupFileUploadEntry) GetHost() *ExcitingHostConfig { - if x != nil { - return x.Host - } - return nil -} - type ExcitingBusiInfo struct { BusId *int32 `protobuf:"varint,1,opt"` SenderUin *int64 `protobuf:"varint,100,opt"` @@ -131,34 +89,6 @@ func (x *ExcitingFileEntry) GetFileSize() int64 { return 0 } -func (x *ExcitingFileEntry) GetMd5() []byte { - if x != nil { - return x.Md5 - } - return nil -} - -func (x *ExcitingFileEntry) GetSha1() []byte { - if x != nil { - return x.Sha1 - } - return nil -} - -func (x *ExcitingFileEntry) GetFileId() []byte { - if x != nil { - return x.FileId - } - return nil -} - -func (x *ExcitingFileEntry) GetUploadKey() []byte { - if x != nil { - return x.UploadKey - } - return nil -} - type ExcitingClientInfo struct { ClientType *int32 `protobuf:"varint,100,opt"` // probable AppId *string `protobuf:"bytes,200,opt"` @@ -217,25 +147,11 @@ type ExcitingHostConfig struct { Hosts []*ExcitingHostInfo `protobuf:"bytes,200,rep"` } -func (x *ExcitingHostConfig) GetHosts() []*ExcitingHostInfo { - if x != nil { - return x.Hosts - } - return nil -} - type ExcitingHostInfo struct { Url *ExcitingUrlInfo `protobuf:"bytes,1,opt"` Port *int32 `protobuf:"varint,2,opt"` } -func (x *ExcitingHostInfo) GetUrl() *ExcitingUrlInfo { - if x != nil { - return x.Url - } - return nil -} - func (x *ExcitingHostInfo) GetPort() int32 { if x != nil && x.Port != nil { return *x.Port diff --git a/client/pb/exciting/group.proto b/client/pb/exciting/group.proto index 12436ee8..9466bef3 100644 --- a/client/pb/exciting/group.proto +++ b/client/pb/exciting/group.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;exciting"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/exciting"; message GroupFileUploadExt { optional int32 unknown1 = 1; diff --git a/client/pb/faceroam/faceroam.pb.go b/client/pb/faceroam/faceroam.pb.go index 7ea2ccf8..8d889eb7 100644 --- a/client/pb/faceroam/faceroam.pb.go +++ b/client/pb/faceroam/faceroam.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: faceroam.proto +// source: pb/faceroam/faceroam.proto package faceroam @@ -38,13 +38,6 @@ type FaceroamReqBody struct { ReqDeleteItem *ReqDeleteItem `protobuf:"bytes,5,opt"` } -func (x *FaceroamReqBody) GetComm() *PlatInfo { - if x != nil { - return x.Comm - } - return nil -} - func (x *FaceroamReqBody) GetUin() uint64 { if x != nil && x.Uin != nil { return *x.Uin @@ -59,31 +52,10 @@ func (x *FaceroamReqBody) GetSubCmd() uint32 { return 0 } -func (x *FaceroamReqBody) GetReqUserInfo() *ReqUserInfo { - if x != nil { - return x.ReqUserInfo - } - return nil -} - -func (x *FaceroamReqBody) GetReqDeleteItem() *ReqDeleteItem { - if x != nil { - return x.ReqDeleteItem - } - return nil -} - type ReqDeleteItem struct { Filename []string `protobuf:"bytes,1,rep"` } -func (x *ReqDeleteItem) GetFilename() []string { - if x != nil { - return x.Filename - } - return nil -} - type ReqUserInfo struct { } @@ -116,39 +88,11 @@ func (x *FaceroamRspBody) GetSubCmd() uint32 { return 0 } -func (x *FaceroamRspBody) GetRspUserInfo() *RspUserInfo { - if x != nil { - return x.RspUserInfo - } - return nil -} - -func (x *FaceroamRspBody) GetRspDeleteItem() *RspDeleteItem { - if x != nil { - return x.RspDeleteItem - } - return nil -} - type RspDeleteItem struct { Filename []string `protobuf:"bytes,1,rep"` Ret []int64 `protobuf:"varint,2,rep"` } -func (x *RspDeleteItem) GetFilename() []string { - if x != nil { - return x.Filename - } - return nil -} - -func (x *RspDeleteItem) GetRet() []int64 { - if x != nil { - return x.Ret - } - return nil -} - type RspUserInfo struct { Filename []string `protobuf:"bytes,1,rep"` DeleteFile []string `protobuf:"bytes,2,rep"` @@ -157,20 +101,6 @@ type RspUserInfo struct { EmojiType []uint32 `protobuf:"varint,5,rep"` } -func (x *RspUserInfo) GetFilename() []string { - if x != nil { - return x.Filename - } - return nil -} - -func (x *RspUserInfo) GetDeleteFile() []string { - if x != nil { - return x.DeleteFile - } - return nil -} - func (x *RspUserInfo) GetBid() string { if x != nil && x.Bid != nil { return *x.Bid @@ -184,10 +114,3 @@ func (x *RspUserInfo) GetMaxRoamSize() uint32 { } return 0 } - -func (x *RspUserInfo) GetEmojiType() []uint32 { - if x != nil { - return x.EmojiType - } - return nil -} diff --git a/client/pb/faceroam/faceroam.proto b/client/pb/faceroam/faceroam.proto index bda50299..a8ee8f72 100644 --- a/client/pb/faceroam/faceroam.proto +++ b/client/pb/faceroam/faceroam.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;faceroam"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/faceroam"; message PlatInfo { optional int64 implat = 1; diff --git a/client/pb/highway/bdhExtInfo.pb.go b/client/pb/highway/bdhExtInfo.pb.go index eaa1ed55..6604f9c3 100644 --- a/client/pb/highway/bdhExtInfo.pb.go +++ b/client/pb/highway/bdhExtInfo.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: bdhExtInfo.proto +// source: pb/highway/bdhExtInfo.proto package highway @@ -15,13 +15,6 @@ func (x *CommFileExtReq) GetActionType() uint32 { return 0 } -func (x *CommFileExtReq) GetUuid() []byte { - if x != nil { - return x.Uuid - } - return nil -} - type CommFileExtRsp struct { Retcode *int32 `protobuf:"varint,1,opt"` DownloadUrl []byte `protobuf:"bytes,2,opt"` @@ -34,13 +27,6 @@ func (x *CommFileExtRsp) GetRetcode() int32 { return 0 } -func (x *CommFileExtRsp) GetDownloadUrl() []byte { - if x != nil { - return x.DownloadUrl - } - return nil -} - type PicInfo struct { Idx *uint32 `protobuf:"varint,1,opt"` Size *uint32 `protobuf:"varint,2,opt"` @@ -62,13 +48,6 @@ func (x *PicInfo) GetSize() uint32 { return 0 } -func (x *PicInfo) GetBinMd5() []byte { - if x != nil { - return x.BinMd5 - } - return nil -} - func (x *PicInfo) GetType() uint32 { if x != nil && x.Type != nil { return *x.Type @@ -85,13 +64,6 @@ type QQVoiceExtReq struct { Pinyin *uint32 `protobuf:"varint,6,opt"` } -func (x *QQVoiceExtReq) GetQid() []byte { - if x != nil { - return x.Qid - } - return nil -} - func (x *QQVoiceExtReq) GetFmt() uint32 { if x != nil && x.Fmt != nil { return *x.Fmt @@ -133,13 +105,6 @@ type QQVoiceExtRsp struct { Result []*QQVoiceResult `protobuf:"bytes,3,rep"` } -func (x *QQVoiceExtRsp) GetQid() []byte { - if x != nil { - return x.Qid - } - return nil -} - func (x *QQVoiceExtRsp) GetRetcode() int32 { if x != nil && x.Retcode != nil { return *x.Retcode @@ -147,33 +112,12 @@ func (x *QQVoiceExtRsp) GetRetcode() int32 { return 0 } -func (x *QQVoiceExtRsp) GetResult() []*QQVoiceResult { - if x != nil { - return x.Result - } - return nil -} - type QQVoiceResult struct { Text []byte `protobuf:"bytes,1,opt"` Pinyin []byte `protobuf:"bytes,2,opt"` Source *uint32 `protobuf:"varint,3,opt"` } -func (x *QQVoiceResult) GetText() []byte { - if x != nil { - return x.Text - } - return nil -} - -func (x *QQVoiceResult) GetPinyin() []byte { - if x != nil { - return x.Pinyin - } - return nil -} - func (x *QQVoiceResult) GetSource() uint32 { if x != nil && x.Source != nil { return *x.Source @@ -204,27 +148,6 @@ func (x *ShortVideoReqExtInfo) GetSessionId() uint64 { return 0 } -func (x *ShortVideoReqExtInfo) GetThumbinfo() *PicInfo { - if x != nil { - return x.Thumbinfo - } - return nil -} - -func (x *ShortVideoReqExtInfo) GetVideoinfo() *VideoInfo { - if x != nil { - return x.Videoinfo - } - return nil -} - -func (x *ShortVideoReqExtInfo) GetShortvideoSureReq() *ShortVideoSureReqInfo { - if x != nil { - return x.ShortvideoSureReq - } - return nil -} - func (x *ShortVideoReqExtInfo) GetIsMergeCmdBeforeData() bool { if x != nil && x.IsMergeCmdBeforeData != nil { return *x.IsMergeCmdBeforeData @@ -264,34 +187,6 @@ func (x *ShortVideoRspExtInfo) GetRetcode() int32 { return 0 } -func (x *ShortVideoRspExtInfo) GetErrinfo() []byte { - if x != nil { - return x.Errinfo - } - return nil -} - -func (x *ShortVideoRspExtInfo) GetThumbinfo() *PicInfo { - if x != nil { - return x.Thumbinfo - } - return nil -} - -func (x *ShortVideoRspExtInfo) GetVideoinfo() *VideoInfo { - if x != nil { - return x.Videoinfo - } - return nil -} - -func (x *ShortVideoRspExtInfo) GetShortvideoSureRsp() *ShortVideoSureRspInfo { - if x != nil { - return x.ShortvideoSureRsp - } - return nil -} - func (x *ShortVideoRspExtInfo) GetRetryFlag() uint32 { if x != nil && x.RetryFlag != nil { return *x.RetryFlag @@ -347,27 +242,6 @@ func (x *ShortVideoSureReqInfo) GetClientType() uint32 { return 0 } -func (x *ShortVideoSureReqInfo) GetThumbinfo() *PicInfo { - if x != nil { - return x.Thumbinfo - } - return nil -} - -func (x *ShortVideoSureReqInfo) GetMergeVideoinfo() []*VideoInfo { - if x != nil { - return x.MergeVideoinfo - } - return nil -} - -func (x *ShortVideoSureReqInfo) GetDropVideoinfo() []*VideoInfo { - if x != nil { - return x.DropVideoinfo - } - return nil -} - func (x *ShortVideoSureReqInfo) GetBusinessType() uint32 { if x != nil && x.BusinessType != nil { return *x.BusinessType @@ -389,27 +263,6 @@ type ShortVideoSureRspInfo struct { MergeCost *uint32 `protobuf:"varint,4,opt"` } -func (x *ShortVideoSureRspInfo) GetFileid() []byte { - if x != nil { - return x.Fileid - } - return nil -} - -func (x *ShortVideoSureRspInfo) GetUkey() []byte { - if x != nil { - return x.Ukey - } - return nil -} - -func (x *ShortVideoSureRspInfo) GetVideoinfo() *VideoInfo { - if x != nil { - return x.Videoinfo - } - return nil -} - func (x *ShortVideoSureRspInfo) GetMergeCost() uint32 { if x != nil && x.MergeCost != nil { return *x.MergeCost @@ -435,61 +288,12 @@ func (x *StoryVideoExtRsp) GetRetcode() int32 { return 0 } -func (x *StoryVideoExtRsp) GetMsg() []byte { - if x != nil { - return x.Msg - } - return nil -} - -func (x *StoryVideoExtRsp) GetCdnUrl() []byte { - if x != nil { - return x.CdnUrl - } - return nil -} - -func (x *StoryVideoExtRsp) GetFileKey() []byte { - if x != nil { - return x.FileKey - } - return nil -} - -func (x *StoryVideoExtRsp) GetFileId() []byte { - if x != nil { - return x.FileId - } - return nil -} - type UploadPicExtInfo struct { FileResid []byte `protobuf:"bytes,1,opt"` DownloadUrl []byte `protobuf:"bytes,2,opt"` ThumbDownloadUrl []byte `protobuf:"bytes,3,opt"` } -func (x *UploadPicExtInfo) GetFileResid() []byte { - if x != nil { - return x.FileResid - } - return nil -} - -func (x *UploadPicExtInfo) GetDownloadUrl() []byte { - if x != nil { - return x.DownloadUrl - } - return nil -} - -func (x *UploadPicExtInfo) GetThumbDownloadUrl() []byte { - if x != nil { - return x.ThumbDownloadUrl - } - return nil -} - type VideoInfo struct { Idx *uint32 `protobuf:"varint,1,opt"` Size *uint32 `protobuf:"varint,2,opt"` @@ -516,13 +320,6 @@ func (x *VideoInfo) GetSize() uint32 { return 0 } -func (x *VideoInfo) GetBinMd5() []byte { - if x != nil { - return x.BinMd5 - } - return nil -} - func (x *VideoInfo) GetFormat() uint32 { if x != nil && x.Format != nil { return *x.Format diff --git a/client/pb/highway/bdhExtInfo.proto b/client/pb/highway/bdhExtInfo.proto index 5a213576..8f200ef1 100644 --- a/client/pb/highway/bdhExtInfo.proto +++ b/client/pb/highway/bdhExtInfo.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;highway"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/highway"; message CommFileExtReq { optional uint32 actionType = 1; diff --git a/client/pb/longmsg/longmsg.pb.go b/client/pb/longmsg/longmsg.pb.go index cb2ae233..496eb720 100644 --- a/client/pb/longmsg/longmsg.pb.go +++ b/client/pb/longmsg/longmsg.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: longmsg.proto +// source: pb/longmsg/longmsg.proto package longmsg @@ -8,39 +8,11 @@ type LongMsgDeleteReq struct { MsgType int32 `protobuf:"varint,2,opt"` } -func (x *LongMsgDeleteReq) GetMsgResid() []byte { - if x != nil { - return x.MsgResid - } - return nil -} - -func (x *LongMsgDeleteReq) GetMsgType() int32 { - if x != nil { - return x.MsgType - } - return 0 -} - type LongMsgDeleteRsp struct { Result int32 `protobuf:"varint,1,opt"` MsgResid []byte `protobuf:"bytes,2,opt"` } -func (x *LongMsgDeleteRsp) GetResult() int32 { - if x != nil { - return x.Result - } - return 0 -} - -func (x *LongMsgDeleteRsp) GetMsgResid() []byte { - if x != nil { - return x.MsgResid - } - return nil -} - type LongMsgDownReq struct { SrcUin int32 `protobuf:"varint,1,opt"` MsgResid []byte `protobuf:"bytes,2,opt"` @@ -48,61 +20,12 @@ type LongMsgDownReq struct { NeedCache int32 `protobuf:"varint,4,opt"` } -func (x *LongMsgDownReq) GetSrcUin() int32 { - if x != nil { - return x.SrcUin - } - return 0 -} - -func (x *LongMsgDownReq) GetMsgResid() []byte { - if x != nil { - return x.MsgResid - } - return nil -} - -func (x *LongMsgDownReq) GetMsgType() int32 { - if x != nil { - return x.MsgType - } - return 0 -} - -func (x *LongMsgDownReq) GetNeedCache() int32 { - if x != nil { - return x.NeedCache - } - return 0 -} - type LongMsgDownRsp struct { Result int32 `protobuf:"varint,1,opt"` MsgResid []byte `protobuf:"bytes,2,opt"` MsgContent []byte `protobuf:"bytes,3,opt"` } -func (x *LongMsgDownRsp) GetResult() int32 { - if x != nil { - return x.Result - } - return 0 -} - -func (x *LongMsgDownRsp) GetMsgResid() []byte { - if x != nil { - return x.MsgResid - } - return nil -} - -func (x *LongMsgDownRsp) GetMsgContent() []byte { - if x != nil { - return x.MsgContent - } - return nil -} - type LongMsgUpReq struct { MsgType int32 `protobuf:"varint,1,opt"` DstUin int64 `protobuf:"varint,2,opt"` @@ -113,82 +36,12 @@ type LongMsgUpReq struct { NeedCache int32 `protobuf:"varint,7,opt"` } -func (x *LongMsgUpReq) GetMsgType() int32 { - if x != nil { - return x.MsgType - } - return 0 -} - -func (x *LongMsgUpReq) GetDstUin() int64 { - if x != nil { - return x.DstUin - } - return 0 -} - -func (x *LongMsgUpReq) GetMsgId() int32 { - if x != nil { - return x.MsgId - } - return 0 -} - -func (x *LongMsgUpReq) GetMsgContent() []byte { - if x != nil { - return x.MsgContent - } - return nil -} - -func (x *LongMsgUpReq) GetStoreType() int32 { - if x != nil { - return x.StoreType - } - return 0 -} - -func (x *LongMsgUpReq) GetMsgUkey() []byte { - if x != nil { - return x.MsgUkey - } - return nil -} - -func (x *LongMsgUpReq) GetNeedCache() int32 { - if x != nil { - return x.NeedCache - } - return 0 -} - type LongMsgUpRsp struct { Result int32 `protobuf:"varint,1,opt"` MsgId int32 `protobuf:"varint,2,opt"` MsgResid []byte `protobuf:"bytes,3,opt"` } -func (x *LongMsgUpRsp) GetResult() int32 { - if x != nil { - return x.Result - } - return 0 -} - -func (x *LongMsgUpRsp) GetMsgId() int32 { - if x != nil { - return x.MsgId - } - return 0 -} - -func (x *LongMsgUpRsp) GetMsgResid() []byte { - if x != nil { - return x.MsgResid - } - return nil -} - type LongReqBody struct { Subcmd int32 `protobuf:"varint,1,opt"` TermType int32 `protobuf:"varint,2,opt"` @@ -199,86 +52,9 @@ type LongReqBody struct { AgentType int32 `protobuf:"varint,10,opt"` } -func (x *LongReqBody) GetSubcmd() int32 { - if x != nil { - return x.Subcmd - } - return 0 -} - -func (x *LongReqBody) GetTermType() int32 { - if x != nil { - return x.TermType - } - return 0 -} - -func (x *LongReqBody) GetPlatformType() int32 { - if x != nil { - return x.PlatformType - } - return 0 -} - -func (x *LongReqBody) GetMsgUpReq() []*LongMsgUpReq { - if x != nil { - return x.MsgUpReq - } - return nil -} - -func (x *LongReqBody) GetMsgDownReq() []*LongMsgDownReq { - if x != nil { - return x.MsgDownReq - } - return nil -} - -func (x *LongReqBody) GetMsgDelReq() []*LongMsgDeleteReq { - if x != nil { - return x.MsgDelReq - } - return nil -} - -func (x *LongReqBody) GetAgentType() int32 { - if x != nil { - return x.AgentType - } - return 0 -} - type LongRspBody struct { Subcmd int32 `protobuf:"varint,1,opt"` MsgUpRsp []*LongMsgUpRsp `protobuf:"bytes,2,rep"` MsgDownRsp []*LongMsgDownRsp `protobuf:"bytes,3,rep"` MsgDelRsp []*LongMsgDeleteRsp `protobuf:"bytes,4,rep"` } - -func (x *LongRspBody) GetSubcmd() int32 { - if x != nil { - return x.Subcmd - } - return 0 -} - -func (x *LongRspBody) GetMsgUpRsp() []*LongMsgUpRsp { - if x != nil { - return x.MsgUpRsp - } - return nil -} - -func (x *LongRspBody) GetMsgDownRsp() []*LongMsgDownRsp { - if x != nil { - return x.MsgDownRsp - } - return nil -} - -func (x *LongRspBody) GetMsgDelRsp() []*LongMsgDeleteRsp { - if x != nil { - return x.MsgDelRsp - } - return nil -} diff --git a/client/pb/longmsg/longmsg.proto b/client/pb/longmsg/longmsg.proto index 38e43d0f..15d234d8 100644 --- a/client/pb/longmsg/longmsg.proto +++ b/client/pb/longmsg/longmsg.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;longmsg"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/longmsg"; message LongMsgDeleteReq { bytes msgResid = 1; diff --git a/client/pb/msf/register_proxy.pb.go b/client/pb/msf/register_proxy.pb.go index 3355b4b5..cb940faa 100644 --- a/client/pb/msf/register_proxy.pb.go +++ b/client/pb/msf/register_proxy.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: register_proxy.proto +// source: pb/msf/register_proxy.proto package msf @@ -181,13 +181,6 @@ func (x *SvcPbResponsePullDisMsgProxy) GetMemberSeq() uint64 { return 0 } -func (x *SvcPbResponsePullDisMsgProxy) GetContent() []byte { - if x != nil { - return x.Content - } - return nil -} - type SvcRegisterProxyMsgResp struct { Result *uint32 `protobuf:"varint,1,opt"` ErrMsg []byte `protobuf:"bytes,2,opt"` @@ -210,13 +203,6 @@ func (x *SvcRegisterProxyMsgResp) GetResult() uint32 { return 0 } -func (x *SvcRegisterProxyMsgResp) GetErrMsg() []byte { - if x != nil { - return x.ErrMsg - } - return nil -} - func (x *SvcRegisterProxyMsgResp) GetFlag() uint32 { if x != nil && x.Flag != nil { return *x.Flag @@ -231,55 +217,6 @@ func (x *SvcRegisterProxyMsgResp) GetSeq() uint32 { return 0 } -func (x *SvcRegisterProxyMsgResp) GetInfo() *SvcResponseMsgInfo { - if x != nil { - return x.Info - } - return nil -} - -func (x *SvcRegisterProxyMsgResp) GetGroupList() []*GroupList { - if x != nil { - return x.GroupList - } - return nil -} - -func (x *SvcRegisterProxyMsgResp) GetDiscussList() []*DiscussList { - if x != nil { - return x.DiscussList - } - return nil -} - -func (x *SvcRegisterProxyMsgResp) GetGroupMsg() []*SvcResponsePbPullGroupMsgProxy { - if x != nil { - return x.GroupMsg - } - return nil -} - -func (x *SvcRegisterProxyMsgResp) GetDiscussMsg() []*SvcPbResponsePullDisMsgProxy { - if x != nil { - return x.DiscussMsg - } - return nil -} - -func (x *SvcRegisterProxyMsgResp) GetC2CMsg() []byte { - if x != nil { - return x.C2CMsg - } - return nil -} - -func (x *SvcRegisterProxyMsgResp) GetPubAccountMsg() []byte { - if x != nil { - return x.PubAccountMsg - } - return nil -} - func (x *SvcRegisterProxyMsgResp) GetDiscussListFlag() uint32 { if x != nil && x.DiscussListFlag != nil { return *x.DiscussListFlag @@ -317,10 +254,3 @@ func (x *SvcResponsePbPullGroupMsgProxy) GetMemberSeq() uint64 { } return 0 } - -func (x *SvcResponsePbPullGroupMsgProxy) GetContent() []byte { - if x != nil { - return x.Content - } - return nil -} diff --git a/client/pb/msf/register_proxy.proto b/client/pb/msf/register_proxy.proto index bbbf2ade..14e7cb36 100644 --- a/client/pb/msf/register_proxy.proto +++ b/client/pb/msf/register_proxy.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;msf"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/msf"; message DiscussList { optional uint64 discussCode = 1; diff --git a/client/pb/msg/TextMsgExt.pb.go b/client/pb/msg/TextMsgExt.pb.go index f6eb1226..9af634b8 100644 --- a/client/pb/msg/TextMsgExt.pb.go +++ b/client/pb/msg/TextMsgExt.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: TextMsgExt.proto +// source: pb/msg/TextMsgExt.proto package msg @@ -33,13 +33,6 @@ type TextResvAttr struct { AtChannelInfo *ExtChannelInfo `protobuf:"bytes,8,opt"` } -func (x *TextResvAttr) GetWording() []byte { - if x != nil { - return x.Wording - } - return nil -} - func (x *TextResvAttr) GetTextAnalysisResult() uint32 { if x != nil && x.TextAnalysisResult != nil { return *x.TextAnalysisResult @@ -68,27 +61,6 @@ func (x *TextResvAttr) GetAtMemberTinyid() uint64 { return 0 } -func (x *TextResvAttr) GetAtMemberRoleInfo() *ExtRoleInfo { - if x != nil { - return x.AtMemberRoleInfo - } - return nil -} - -func (x *TextResvAttr) GetAtRoleInfo() *ExtRoleInfo { - if x != nil { - return x.AtRoleInfo - } - return nil -} - -func (x *TextResvAttr) GetAtChannelInfo() *ExtChannelInfo { - if x != nil { - return x.AtChannelInfo - } - return nil -} - type ExtRoleInfo struct { Id *uint64 `protobuf:"varint,1,opt"` Info []byte `protobuf:"bytes,2,opt"` @@ -102,13 +74,6 @@ func (x *ExtRoleInfo) GetId() uint64 { return 0 } -func (x *ExtRoleInfo) GetInfo() []byte { - if x != nil { - return x.Info - } - return nil -} - func (x *ExtRoleInfo) GetFlag() uint32 { if x != nil && x.Flag != nil { return *x.Flag diff --git a/client/pb/msg/TextMsgExt.proto b/client/pb/msg/TextMsgExt.proto index 131c8c29..54ff318d 100644 --- a/client/pb/msg/TextMsgExt.proto +++ b/client/pb/msg/TextMsgExt.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;msg"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/msg"; message ExtChannelInfo { optional uint64 guildId = 1; diff --git a/client/pb/msg/head.pb.go b/client/pb/msg/head.pb.go index e0ee6c2e..5302ef1b 100644 --- a/client/pb/msg/head.pb.go +++ b/client/pb/msg/head.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: head.proto +// source: pb/msg/head.proto package msg @@ -45,27 +45,6 @@ func (x *C2CHead) GetCcCmd() uint32 { return 0 } -func (x *C2CHead) GetAuthPicSig() []byte { - if x != nil { - return x.AuthPicSig - } - return nil -} - -func (x *C2CHead) GetAuthSig() []byte { - if x != nil { - return x.AuthSig - } - return nil -} - -func (x *C2CHead) GetAuthBuf() []byte { - if x != nil { - return x.AuthBuf - } - return nil -} - func (x *C2CHead) GetServerTime() uint32 { if x != nil && x.ServerTime != nil { return *x.ServerTime @@ -320,20 +299,6 @@ func (x *DeltaHead) GetAckOffset() uint64 { return 0 } -func (x *DeltaHead) GetCookie() []byte { - if x != nil { - return x.Cookie - } - return nil -} - -func (x *DeltaHead) GetAckCookie() []byte { - if x != nil { - return x.AckCookie - } - return nil -} - func (x *DeltaHead) GetResult() uint32 { if x != nil && x.Result != nil { return *x.Result @@ -366,27 +331,6 @@ func (x *IMHead) GetHeadType() uint32 { return 0 } -func (x *IMHead) GetCsHead() *CSHead { - if x != nil { - return x.CsHead - } - return nil -} - -func (x *IMHead) GetS2CHead() *S2CHead { - if x != nil { - return x.S2CHead - } - return nil -} - -func (x *IMHead) GetHttpconnHead() *HttpConnHead { - if x != nil { - return x.HttpconnHead - } - return nil -} - func (x *IMHead) GetPaintFlag() uint32 { if x != nil && x.PaintFlag != nil { return *x.PaintFlag @@ -394,27 +338,6 @@ func (x *IMHead) GetPaintFlag() uint32 { return 0 } -func (x *IMHead) GetLoginSig() *LoginSig { - if x != nil { - return x.LoginSig - } - return nil -} - -func (x *IMHead) GetDeltaHead() *DeltaHead { - if x != nil { - return x.DeltaHead - } - return nil -} - -func (x *IMHead) GetC2CHead() *C2CHead { - if x != nil { - return x.C2CHead - } - return nil -} - type HttpConnHead struct { Uin *uint64 `protobuf:"varint,1,opt"` Command *uint32 `protobuf:"varint,2,opt"` @@ -562,13 +485,6 @@ func (x *HttpConnHead) GetFlag() uint32 { return 0 } -func (x *HttpConnHead) GetKey() []byte { - if x != nil { - return x.Key - } - return nil -} - func (x *HttpConnHead) GetCompressType() uint32 { if x != nil && x.CompressType != nil { return *x.CompressType @@ -590,13 +506,6 @@ func (x *HttpConnHead) GetErrorCode() uint32 { return 0 } -func (x *HttpConnHead) GetRedirect() *RedirectMsg { - if x != nil { - return x.Redirect - } - return nil -} - func (x *HttpConnHead) GetCommandId() uint32 { if x != nil && x.CommandId != nil { return *x.CommandId @@ -611,13 +520,6 @@ func (x *HttpConnHead) GetServiceCmdid() uint32 { return 0 } -func (x *HttpConnHead) GetOidbhead() *TransOidbHead { - if x != nil { - return x.Oidbhead - } - return nil -} - type LoginSig struct { Type *uint32 `protobuf:"varint,1,opt"` Sig []byte `protobuf:"bytes,2,opt"` @@ -630,13 +532,6 @@ func (x *LoginSig) GetType() uint32 { return 0 } -func (x *LoginSig) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - type RedirectMsg struct { LastRedirectIp *uint32 `protobuf:"fixed32,1,opt"` LastRedirectPort *uint32 `protobuf:"varint,2,opt"` diff --git a/client/pb/msg/head.proto b/client/pb/msg/head.proto index 0ff60d1e..4dd4acf1 100644 --- a/client/pb/msg/head.proto +++ b/client/pb/msg/head.proto @@ -1,5 +1,5 @@ syntax = "proto2"; -option go_package = "./;msg"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/msg"; message C2CHead { optional uint64 toUin = 1; diff --git a/client/pb/msg/msg.pb.go b/client/pb/msg/msg.pb.go index 144ec6a9..a08c48ac 100644 --- a/client/pb/msg/msg.pb.go +++ b/client/pb/msg/msg.pb.go @@ -39,13 +39,6 @@ func (x *GetMessageRequest) GetSyncFlag() SyncFlag { return SyncFlag_START } -func (x *GetMessageRequest) GetSyncCookie() []byte { - if x != nil { - return x.SyncCookie - } - return nil -} - func (x *GetMessageRequest) GetRambleFlag() int32 { if x != nil && x.RambleFlag != nil { return *x.RambleFlag @@ -95,27 +88,6 @@ func (x *GetMessageRequest) GetMsgReqType() int32 { return 0 } -func (x *GetMessageRequest) GetPubaccountCookie() []byte { - if x != nil { - return x.PubaccountCookie - } - return nil -} - -func (x *GetMessageRequest) GetMsgCtrlBuf() []byte { - if x != nil { - return x.MsgCtrlBuf - } - return nil -} - -func (x *GetMessageRequest) GetServerBuf() []byte { - if x != nil { - return x.ServerBuf - } - return nil -} - type SendMessageRequest struct { RoutingHead *RoutingHead `protobuf:"bytes,1,opt"` ContentHead *ContentHead `protobuf:"bytes,2,opt"` @@ -133,27 +105,6 @@ type SendMessageRequest struct { MultiSendSeq *int32 `protobuf:"varint,14,opt"` } -func (x *SendMessageRequest) GetRoutingHead() *RoutingHead { - if x != nil { - return x.RoutingHead - } - return nil -} - -func (x *SendMessageRequest) GetContentHead() *ContentHead { - if x != nil { - return x.ContentHead - } - return nil -} - -func (x *SendMessageRequest) GetMsgBody() *MessageBody { - if x != nil { - return x.MsgBody - } - return nil -} - func (x *SendMessageRequest) GetMsgSeq() int32 { if x != nil && x.MsgSeq != nil { return *x.MsgSeq @@ -168,13 +119,6 @@ func (x *SendMessageRequest) GetMsgRand() int32 { return 0 } -func (x *SendMessageRequest) GetSyncCookie() []byte { - if x != nil { - return x.SyncCookie - } - return nil -} - func (x *SendMessageRequest) GetMsgVia() int32 { if x != nil && x.MsgVia != nil { return *x.MsgVia @@ -189,13 +133,6 @@ func (x *SendMessageRequest) GetDataStatist() int32 { return 0 } -func (x *SendMessageRequest) GetMsgCtrl() *MsgCtrl { - if x != nil { - return x.MsgCtrl - } - return nil -} - func (x *SendMessageRequest) GetMultiSendSeq() int32 { if x != nil && x.MultiSendSeq != nil { return *x.MultiSendSeq @@ -227,20 +164,6 @@ type MsgWithDrawReq struct { GroupWithDraw []*GroupMsgWithDrawReq `protobuf:"bytes,2,rep"` } -func (x *MsgWithDrawReq) GetC2CWithDraw() []*C2CMsgWithDrawReq { - if x != nil { - return x.C2CWithDraw - } - return nil -} - -func (x *MsgWithDrawReq) GetGroupWithDraw() []*GroupMsgWithDrawReq { - if x != nil { - return x.GroupWithDraw - } - return nil -} - type C2CMsgWithDrawReq struct { MsgInfo []*C2CMsgInfo `protobuf:"bytes,1,rep"` LongMessageFlag *int32 `protobuf:"varint,2,opt"` @@ -248,13 +171,6 @@ type C2CMsgWithDrawReq struct { SubCmd *int32 `protobuf:"varint,4,opt"` } -func (x *C2CMsgWithDrawReq) GetMsgInfo() []*C2CMsgInfo { - if x != nil { - return x.MsgInfo - } - return nil -} - func (x *C2CMsgWithDrawReq) GetLongMessageFlag() int32 { if x != nil && x.LongMessageFlag != nil { return *x.LongMessageFlag @@ -262,13 +178,6 @@ func (x *C2CMsgWithDrawReq) GetLongMessageFlag() int32 { return 0 } -func (x *C2CMsgWithDrawReq) GetReserved() []byte { - if x != nil { - return x.Reserved - } - return nil -} - func (x *C2CMsgWithDrawReq) GetSubCmd() int32 { if x != nil && x.SubCmd != nil { return *x.SubCmd @@ -305,39 +214,11 @@ func (x *GroupMsgWithDrawReq) GetGroupCode() int64 { return 0 } -func (x *GroupMsgWithDrawReq) GetMsgList() []*GroupMsgInfo { - if x != nil { - return x.MsgList - } - return nil -} - -func (x *GroupMsgWithDrawReq) GetUserDef() []byte { - if x != nil { - return x.UserDef - } - return nil -} - type MsgWithDrawResp struct { C2CWithDraw []*C2CMsgWithDrawResp `protobuf:"bytes,1,rep"` GroupWithDraw []*GroupMsgWithDrawResp `protobuf:"bytes,2,rep"` } -func (x *MsgWithDrawResp) GetC2CWithDraw() []*C2CMsgWithDrawResp { - if x != nil { - return x.C2CWithDraw - } - return nil -} - -func (x *MsgWithDrawResp) GetGroupWithDraw() []*GroupMsgWithDrawResp { - if x != nil { - return x.GroupWithDraw - } - return nil -} - type C2CMsgWithDrawResp struct { Result *int32 `protobuf:"varint,1,opt"` ErrMsg *string `protobuf:"bytes,2,opt"` @@ -487,13 +368,6 @@ func (x *C2CMsgInfo) GetMsgType() int32 { return 0 } -func (x *C2CMsgInfo) GetRoutingHead() *RoutingHead { - if x != nil { - return x.RoutingHead - } - return nil -} - type RoutingHead struct { C2C *C2C `protobuf:"bytes,1,opt"` Grp *Grp `protobuf:"bytes,2,opt"` @@ -501,34 +375,6 @@ type RoutingHead struct { WpaTmp *WPATmp `protobuf:"bytes,6,opt"` } -func (x *RoutingHead) GetC2C() *C2C { - if x != nil { - return x.C2C - } - return nil -} - -func (x *RoutingHead) GetGrp() *Grp { - if x != nil { - return x.Grp - } - return nil -} - -func (x *RoutingHead) GetGrpTmp() *GrpTmp { - if x != nil { - return x.GrpTmp - } - return nil -} - -func (x *RoutingHead) GetWpaTmp() *WPATmp { - if x != nil { - return x.WpaTmp - } - return nil -} - type WPATmp struct { ToUin *uint64 `protobuf:"varint,1,opt"` Sig []byte `protobuf:"bytes,2,opt"` @@ -541,13 +387,6 @@ func (x *WPATmp) GetToUin() uint64 { return 0 } -func (x *WPATmp) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - type C2C struct { ToUin *int64 `protobuf:"varint,1,opt"` } @@ -627,13 +466,6 @@ func (x *GetMessageResponse) GetErrorMessage() string { return "" } -func (x *GetMessageResponse) GetSyncCookie() []byte { - if x != nil { - return x.SyncCookie - } - return nil -} - func (x *GetMessageResponse) GetSyncFlag() SyncFlag { if x != nil && x.SyncFlag != nil { return *x.SyncFlag @@ -641,13 +473,6 @@ func (x *GetMessageResponse) GetSyncFlag() SyncFlag { return SyncFlag_START } -func (x *GetMessageResponse) GetUinPairMsgs() []*UinPairMessage { - if x != nil { - return x.UinPairMsgs - } - return nil -} - func (x *GetMessageResponse) GetBindUin() int64 { if x != nil && x.BindUin != nil { return *x.BindUin @@ -662,13 +487,6 @@ func (x *GetMessageResponse) GetMsgRspType() int32 { return 0 } -func (x *GetMessageResponse) GetPubAccountCookie() []byte { - if x != nil { - return x.PubAccountCookie - } - return nil -} - func (x *GetMessageResponse) GetIsPartialSync() bool { if x != nil && x.IsPartialSync != nil { return *x.IsPartialSync @@ -676,13 +494,6 @@ func (x *GetMessageResponse) GetIsPartialSync() bool { return false } -func (x *GetMessageResponse) GetMsgCtrlBuf() []byte { - if x != nil { - return x.MsgCtrlBuf - } - return nil -} - type PushMessagePacket struct { Message *Message `protobuf:"bytes,1,opt"` Svrip *int32 `protobuf:"varint,2,opt"` @@ -691,13 +502,6 @@ type PushMessagePacket struct { GeneralFlag *int32 `protobuf:"varint,9,opt"` } -func (x *PushMessagePacket) GetMessage() *Message { - if x != nil { - return x.Message - } - return nil -} - func (x *PushMessagePacket) GetSvrip() int32 { if x != nil && x.Svrip != nil { return *x.Svrip @@ -705,13 +509,6 @@ func (x *PushMessagePacket) GetSvrip() int32 { return 0 } -func (x *PushMessagePacket) GetPushToken() []byte { - if x != nil { - return x.PushToken - } - return nil -} - func (x *PushMessagePacket) GetPingFLag() int32 { if x != nil && x.PingFLag != nil { return *x.PingFLag @@ -754,67 +551,18 @@ func (x *UinPairMessage) GetMsgCompleted() int32 { return 0 } -func (x *UinPairMessage) GetMessages() []*Message { - if x != nil { - return x.Messages - } - return nil -} - type Message struct { Head *MessageHead `protobuf:"bytes,1,opt"` Content *ContentHead `protobuf:"bytes,2,opt"` Body *MessageBody `protobuf:"bytes,3,opt"` } -func (x *Message) GetHead() *MessageHead { - if x != nil { - return x.Head - } - return nil -} - -func (x *Message) GetContent() *ContentHead { - if x != nil { - return x.Content - } - return nil -} - -func (x *Message) GetBody() *MessageBody { - if x != nil { - return x.Body - } - return nil -} - type MessageBody struct { RichText *RichText `protobuf:"bytes,1,opt"` MsgContent []byte `protobuf:"bytes,2,opt"` MsgEncryptContent []byte `protobuf:"bytes,3,opt"` } -func (x *MessageBody) GetRichText() *RichText { - if x != nil { - return x.RichText - } - return nil -} - -func (x *MessageBody) GetMsgContent() []byte { - if x != nil { - return x.MsgContent - } - return nil -} - -func (x *MessageBody) GetMsgEncryptContent() []byte { - if x != nil { - return x.MsgEncryptContent - } - return nil -} - type RichText struct { Attr *Attr `protobuf:"bytes,1,opt"` Elems []*Elem `protobuf:"bytes,2,rep"` @@ -822,34 +570,6 @@ type RichText struct { Ptt *Ptt `protobuf:"bytes,4,opt"` } -func (x *RichText) GetAttr() *Attr { - if x != nil { - return x.Attr - } - return nil -} - -func (x *RichText) GetElems() []*Elem { - if x != nil { - return x.Elems - } - return nil -} - -func (x *RichText) GetNotOnlineFile() *NotOnlineFile { - if x != nil { - return x.NotOnlineFile - } - return nil -} - -func (x *RichText) GetPtt() *Ptt { - if x != nil { - return x.Ptt - } - return nil -} - type Elem struct { Text *Text `protobuf:"bytes,1,opt"` Face *Face `protobuf:"bytes,2,opt"` @@ -906,139 +626,6 @@ type Elem struct { CommonElem *CommonElem `protobuf:"bytes,53,opt"` } -func (x *Elem) GetText() *Text { - if x != nil { - return x.Text - } - return nil -} - -func (x *Elem) GetFace() *Face { - if x != nil { - return x.Face - } - return nil -} - -func (x *Elem) GetOnlineImage() *OnlineImage { - if x != nil { - return x.OnlineImage - } - return nil -} - -func (x *Elem) GetNotOnlineImage() *NotOnlineImage { - if x != nil { - return x.NotOnlineImage - } - return nil -} - -func (x *Elem) GetTransElemInfo() *TransElem { - if x != nil { - return x.TransElemInfo - } - return nil -} - -func (x *Elem) GetMarketFace() *MarketFace { - if x != nil { - return x.MarketFace - } - return nil -} - -func (x *Elem) GetCustomFace() *CustomFace { - if x != nil { - return x.CustomFace - } - return nil -} - -func (x *Elem) GetElemFlags2() *ElemFlags2 { - if x != nil { - return x.ElemFlags2 - } - return nil -} - -func (x *Elem) GetRichMsg() *RichMsg { - if x != nil { - return x.RichMsg - } - return nil -} - -func (x *Elem) GetGroupFile() *GroupFile { - if x != nil { - return x.GroupFile - } - return nil -} - -func (x *Elem) GetExtraInfo() *ExtraInfo { - if x != nil { - return x.ExtraInfo - } - return nil -} - -func (x *Elem) GetVideoFile() *VideoFile { - if x != nil { - return x.VideoFile - } - return nil -} - -func (x *Elem) GetAnonGroupMsg() *AnonymousGroupMessage { - if x != nil { - return x.AnonGroupMsg - } - return nil -} - -func (x *Elem) GetQQWalletMsg() *QQWalletMsg { - if x != nil { - return x.QQWalletMsg - } - return nil -} - -func (x *Elem) GetCustomElem() *CustomElem { - if x != nil { - return x.CustomElem - } - return nil -} - -func (x *Elem) GetGeneralFlags() *GeneralFlags { - if x != nil { - return x.GeneralFlags - } - return nil -} - -func (x *Elem) GetSrcMsg() *SourceMsg { - if x != nil { - return x.SrcMsg - } - return nil -} - -func (x *Elem) GetLightApp() *LightAppElem { - if x != nil { - return x.LightApp - } - return nil -} - -func (x *Elem) GetCommonElem() *CommonElem { - if x != nil { - return x.CommonElem - } - return nil -} - type MarketFace struct { FaceName []byte `protobuf:"bytes,1,opt"` ItemType *uint32 `protobuf:"varint,2,opt"` @@ -1055,13 +642,6 @@ type MarketFace struct { PbReserve []byte `protobuf:"bytes,13,opt"` } -func (x *MarketFace) GetFaceName() []byte { - if x != nil { - return x.FaceName - } - return nil -} - func (x *MarketFace) GetItemType() uint32 { if x != nil && x.ItemType != nil { return *x.ItemType @@ -1076,13 +656,6 @@ func (x *MarketFace) GetFaceInfo() uint32 { return 0 } -func (x *MarketFace) GetFaceId() []byte { - if x != nil { - return x.FaceId - } - return nil -} - func (x *MarketFace) GetTabId() uint32 { if x != nil && x.TabId != nil { return *x.TabId @@ -1097,20 +670,6 @@ func (x *MarketFace) GetSubType() uint32 { return 0 } -func (x *MarketFace) GetKey() []byte { - if x != nil { - return x.Key - } - return nil -} - -func (x *MarketFace) GetParam() []byte { - if x != nil { - return x.Param - } - return nil -} - func (x *MarketFace) GetMediaType() uint32 { if x != nil && x.MediaType != nil { return *x.MediaType @@ -1132,20 +691,6 @@ func (x *MarketFace) GetImageHeight() uint32 { return 0 } -func (x *MarketFace) GetMobileparam() []byte { - if x != nil { - return x.Mobileparam - } - return nil -} - -func (x *MarketFace) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - type ElemFlags2 struct { ColorTextId *uint32 `protobuf:"varint,1,opt"` MsgId *uint64 `protobuf:"varint,2,opt"` @@ -1205,13 +750,6 @@ func (x *ElemFlags2) GetCompatibleId() uint32 { return 0 } -func (x *ElemFlags2) GetInsts() []*ElemFlags2_Inst { - if x != nil { - return x.Insts - } - return nil -} - func (x *ElemFlags2) GetMsgRptCnt() uint32 { if x != nil && x.MsgRptCnt != nil { return *x.MsgRptCnt @@ -1219,13 +757,6 @@ func (x *ElemFlags2) GetMsgRptCnt() uint32 { return 0 } -func (x *ElemFlags2) GetSrcInst() *ElemFlags2_Inst { - if x != nil { - return x.SrcInst - } - return nil -} - func (x *ElemFlags2) GetLongtitude() uint32 { if x != nil && x.Longtitude != nil { return *x.Longtitude @@ -1247,13 +778,6 @@ func (x *ElemFlags2) GetCustomFont() uint32 { return 0 } -func (x *ElemFlags2) GetPcSupportDef() *PcSupportDef { - if x != nil { - return x.PcSupportDef - } - return nil -} - func (x *ElemFlags2) GetCrmFlags() uint32 { if x != nil && x.CrmFlags != nil { return *x.CrmFlags @@ -1298,20 +822,6 @@ func (x *PcSupportDef) GetMacPtlEnd() uint32 { return 0 } -func (x *PcSupportDef) GetPtlsSupport() []uint32 { - if x != nil { - return x.PtlsSupport - } - return nil -} - -func (x *PcSupportDef) GetPtlsNotSupport() []uint32 { - if x != nil { - return x.PtlsNotSupport - } - return nil -} - type CommonElem struct { ServiceType *int32 `protobuf:"varint,1,opt"` PbElem []byte `protobuf:"bytes,2,opt"` @@ -1325,13 +835,6 @@ func (x *CommonElem) GetServiceType() int32 { return 0 } -func (x *CommonElem) GetPbElem() []byte { - if x != nil { - return x.PbElem - } - return nil -} - func (x *CommonElem) GetBusinessType() int32 { if x != nil && x.BusinessType != nil { return *x.BusinessType @@ -1343,13 +846,6 @@ type QQWalletMsg struct { AioBody *QQWalletAioBody `protobuf:"bytes,1,opt"` } -func (x *QQWalletMsg) GetAioBody() *QQWalletAioBody { - if x != nil { - return x.AioBody - } - return nil -} - type QQWalletAioBody struct { SendUin *uint64 `protobuf:"varint,1,opt"` Sender *QQWalletAioElem `protobuf:"bytes,2,opt"` @@ -1381,20 +877,6 @@ func (x *QQWalletAioBody) GetSendUin() uint64 { return 0 } -func (x *QQWalletAioBody) GetSender() *QQWalletAioElem { - if x != nil { - return x.Sender - } - return nil -} - -func (x *QQWalletAioBody) GetReceiver() *QQWalletAioElem { - if x != nil { - return x.Receiver - } - return nil -} - func (x *QQWalletAioBody) GetChannelId() int32 { if x != nil && x.ChannelId != nil { return *x.ChannelId @@ -1430,20 +912,6 @@ func (x *QQWalletAioBody) GetRedType() int32 { return 0 } -func (x *QQWalletAioBody) GetBillNo() []byte { - if x != nil { - return x.BillNo - } - return nil -} - -func (x *QQWalletAioBody) GetAuthKey() []byte { - if x != nil { - return x.AuthKey - } - return nil -} - func (x *QQWalletAioBody) GetSessionType() int32 { if x != nil && x.SessionType != nil { return *x.SessionType @@ -1465,13 +933,6 @@ func (x *QQWalletAioBody) GetEnvelOpeId() int32 { return 0 } -func (x *QQWalletAioBody) GetName() []byte { - if x != nil { - return x.Name - } - return nil -} - func (x *QQWalletAioBody) GetConfType() int32 { if x != nil && x.ConfType != nil { return *x.ConfType @@ -1486,20 +947,6 @@ func (x *QQWalletAioBody) GetMsgFrom() int32 { return 0 } -func (x *QQWalletAioBody) GetPcBody() []byte { - if x != nil { - return x.PcBody - } - return nil -} - -func (x *QQWalletAioBody) GetIndex() []byte { - if x != nil { - return x.Index - } - return nil -} - func (x *QQWalletAioBody) GetRedChannel() uint32 { if x != nil && x.RedChannel != nil { return *x.RedChannel @@ -1507,20 +954,6 @@ func (x *QQWalletAioBody) GetRedChannel() uint32 { return 0 } -func (x *QQWalletAioBody) GetGrapUin() []uint64 { - if x != nil { - return x.GrapUin - } - return nil -} - -func (x *QQWalletAioBody) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - type QQWalletAioElem struct { Background *uint32 `protobuf:"varint,1,opt"` Icon *uint32 `protobuf:"varint,2,opt"` @@ -1580,27 +1013,6 @@ func (x *QQWalletAioElem) GetContent() string { return "" } -func (x *QQWalletAioElem) GetLinkUrl() []byte { - if x != nil { - return x.LinkUrl - } - return nil -} - -func (x *QQWalletAioElem) GetBlackStripe() []byte { - if x != nil { - return x.BlackStripe - } - return nil -} - -func (x *QQWalletAioElem) GetNotice() []byte { - if x != nil { - return x.Notice - } - return nil -} - func (x *QQWalletAioElem) GetTitleColor() uint32 { if x != nil && x.TitleColor != nil { return *x.TitleColor @@ -1615,41 +1027,6 @@ func (x *QQWalletAioElem) GetSubtitleColor() uint32 { return 0 } -func (x *QQWalletAioElem) GetActionsPriority() []byte { - if x != nil { - return x.ActionsPriority - } - return nil -} - -func (x *QQWalletAioElem) GetJumpUrl() []byte { - if x != nil { - return x.JumpUrl - } - return nil -} - -func (x *QQWalletAioElem) GetNativeIos() []byte { - if x != nil { - return x.NativeIos - } - return nil -} - -func (x *QQWalletAioElem) GetNativeAndroid() []byte { - if x != nil { - return x.NativeAndroid - } - return nil -} - -func (x *QQWalletAioElem) GetIconUrl() []byte { - if x != nil { - return x.IconUrl - } - return nil -} - func (x *QQWalletAioElem) GetContentColor() uint32 { if x != nil && x.ContentColor != nil { return *x.ContentColor @@ -1664,34 +1041,6 @@ func (x *QQWalletAioElem) GetContentBgColor() uint32 { return 0 } -func (x *QQWalletAioElem) GetAioImageLeft() []byte { - if x != nil { - return x.AioImageLeft - } - return nil -} - -func (x *QQWalletAioElem) GetAioImageRight() []byte { - if x != nil { - return x.AioImageRight - } - return nil -} - -func (x *QQWalletAioElem) GetCftImage() []byte { - if x != nil { - return x.CftImage - } - return nil -} - -func (x *QQWalletAioElem) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - type RichMsg struct { Template1 []byte `protobuf:"bytes,1,opt"` ServiceId *int32 `protobuf:"varint,2,opt"` @@ -1700,13 +1049,6 @@ type RichMsg struct { Seq *int32 `protobuf:"varint,5,opt"` } -func (x *RichMsg) GetTemplate1() []byte { - if x != nil { - return x.Template1 - } - return nil -} - func (x *RichMsg) GetServiceId() int32 { if x != nil && x.ServiceId != nil { return *x.ServiceId @@ -1714,13 +1056,6 @@ func (x *RichMsg) GetServiceId() int32 { return 0 } -func (x *RichMsg) GetMsgResId() []byte { - if x != nil { - return x.MsgResId - } - return nil -} - func (x *RichMsg) GetRand() int32 { if x != nil && x.Rand != nil { return *x.Rand @@ -1743,20 +1078,6 @@ type CustomElem struct { Sound []byte `protobuf:"bytes,5,opt"` } -func (x *CustomElem) GetDesc() []byte { - if x != nil { - return x.Desc - } - return nil -} - -func (x *CustomElem) GetData() []byte { - if x != nil { - return x.Data - } - return nil -} - func (x *CustomElem) GetEnumType() int32 { if x != nil && x.EnumType != nil { return *x.EnumType @@ -1764,20 +1085,6 @@ func (x *CustomElem) GetEnumType() int32 { return 0 } -func (x *CustomElem) GetExt() []byte { - if x != nil { - return x.Ext - } - return nil -} - -func (x *CustomElem) GetSound() []byte { - if x != nil { - return x.Sound - } - return nil -} - type Text struct { Str *string `protobuf:"bytes,1,opt"` Link *string `protobuf:"bytes,2,opt"` @@ -1801,34 +1108,6 @@ func (x *Text) GetLink() string { return "" } -func (x *Text) GetAttr6Buf() []byte { - if x != nil { - return x.Attr6Buf - } - return nil -} - -func (x *Text) GetAttr7Buf() []byte { - if x != nil { - return x.Attr7Buf - } - return nil -} - -func (x *Text) GetBuf() []byte { - if x != nil { - return x.Buf - } - return nil -} - -func (x *Text) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - type Attr struct { CodePage *int32 `protobuf:"varint,1,opt"` Time *int32 `protobuf:"varint,2,opt"` @@ -1905,13 +1184,6 @@ func (x *Attr) GetFontName() string { return "" } -func (x *Attr) GetReserveData() []byte { - if x != nil { - return x.ReserveData - } - return nil -} - type Ptt struct { FileType *int32 `protobuf:"varint,1,opt"` SrcUin *int64 `protobuf:"varint,2,opt"` @@ -1953,20 +1225,6 @@ func (x *Ptt) GetSrcUin() int64 { return 0 } -func (x *Ptt) GetFileUuid() []byte { - if x != nil { - return x.FileUuid - } - return nil -} - -func (x *Ptt) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - func (x *Ptt) GetFileName() string { if x != nil && x.FileName != nil { return *x.FileName @@ -1981,13 +1239,6 @@ func (x *Ptt) GetFileSize() int32 { return 0 } -func (x *Ptt) GetReserve() []byte { - if x != nil { - return x.Reserve - } - return nil -} - func (x *Ptt) GetFileId() int32 { if x != nil && x.FileId != nil { return *x.FileId @@ -2016,27 +1267,6 @@ func (x *Ptt) GetBoolValid() bool { return false } -func (x *Ptt) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - -func (x *Ptt) GetShortcut() []byte { - if x != nil { - return x.Shortcut - } - return nil -} - -func (x *Ptt) GetFileKey() []byte { - if x != nil { - return x.FileKey - } - return nil -} - func (x *Ptt) GetMagicPttIndex() int32 { if x != nil && x.MagicPttIndex != nil { return *x.MagicPttIndex @@ -2051,20 +1281,6 @@ func (x *Ptt) GetVoiceSwitch() int32 { return 0 } -func (x *Ptt) GetPttUrl() []byte { - if x != nil { - return x.PttUrl - } - return nil -} - -func (x *Ptt) GetGroupFileKey() []byte { - if x != nil { - return x.GroupFileKey - } - return nil -} - func (x *Ptt) GetTime() int32 { if x != nil && x.Time != nil { return *x.Time @@ -2072,13 +1288,6 @@ func (x *Ptt) GetTime() int32 { return 0 } -func (x *Ptt) GetDownPara() []byte { - if x != nil { - return x.DownPara - } - return nil -} - func (x *Ptt) GetFormat() int32 { if x != nil && x.Format != nil { return *x.Format @@ -2086,20 +1295,6 @@ func (x *Ptt) GetFormat() int32 { return 0 } -func (x *Ptt) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - -func (x *Ptt) GetBytesPttUrls() [][]byte { - if x != nil { - return x.BytesPttUrls - } - return nil -} - func (x *Ptt) GetDownloadFlag() int32 { if x != nil && x.DownloadFlag != nil { return *x.DownloadFlag @@ -2113,27 +1308,6 @@ type OnlineImage struct { OldVerSendFile []byte `protobuf:"bytes,3,opt"` } -func (x *OnlineImage) GetGuid() []byte { - if x != nil { - return x.Guid - } - return nil -} - -func (x *OnlineImage) GetFilePath() []byte { - if x != nil { - return x.FilePath - } - return nil -} - -func (x *OnlineImage) GetOldVerSendFile() []byte { - if x != nil { - return x.OldVerSendFile - } - return nil -} - type NotOnlineImage struct { FilePath *string `protobuf:"bytes,1,opt"` FileLen *int32 `protobuf:"varint,2,opt"` @@ -2184,13 +1358,6 @@ func (x *NotOnlineImage) GetDownloadPath() string { return "" } -func (x *NotOnlineImage) GetOldVerSendFile() []byte { - if x != nil { - return x.OldVerSendFile - } - return nil -} - func (x *NotOnlineImage) GetImgType() int32 { if x != nil && x.ImgType != nil { return *x.ImgType @@ -2198,20 +1365,6 @@ func (x *NotOnlineImage) GetImgType() int32 { return 0 } -func (x *NotOnlineImage) GetPreviewsImage() []byte { - if x != nil { - return x.PreviewsImage - } - return nil -} - -func (x *NotOnlineImage) GetPicMd5() []byte { - if x != nil { - return x.PicMd5 - } - return nil -} - func (x *NotOnlineImage) GetPicHeight() int32 { if x != nil && x.PicHeight != nil { return *x.PicHeight @@ -2233,13 +1386,6 @@ func (x *NotOnlineImage) GetResId() string { return "" } -func (x *NotOnlineImage) GetFlag() []byte { - if x != nil { - return x.Flag - } - return nil -} - func (x *NotOnlineImage) GetThumbUrl() string { if x != nil && x.ThumbUrl != nil { return *x.ThumbUrl @@ -2289,13 +1435,6 @@ func (x *NotOnlineImage) GetIndex() int32 { return 0 } -func (x *NotOnlineImage) GetOpFaceBuf() []byte { - if x != nil { - return x.OpFaceBuf - } - return nil -} - func (x *NotOnlineImage) GetOldPicMd5() bool { if x != nil && x.OldPicMd5 != nil { return *x.OldPicMd5 @@ -2338,13 +1477,6 @@ func (x *NotOnlineImage) GetDownloadLen() int32 { return 0 } -func (x *NotOnlineImage) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - type NotOnlineFile struct { FileType *int32 `protobuf:"varint,1,opt"` Sig []byte `protobuf:"bytes,2,opt"` @@ -2374,34 +1506,6 @@ func (x *NotOnlineFile) GetFileType() int32 { return 0 } -func (x *NotOnlineFile) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - -func (x *NotOnlineFile) GetFileUuid() []byte { - if x != nil { - return x.FileUuid - } - return nil -} - -func (x *NotOnlineFile) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - -func (x *NotOnlineFile) GetFileName() []byte { - if x != nil { - return x.FileName - } - return nil -} - func (x *NotOnlineFile) GetFileSize() int64 { if x != nil && x.FileSize != nil { return *x.FileSize @@ -2409,13 +1513,6 @@ func (x *NotOnlineFile) GetFileSize() int64 { return 0 } -func (x *NotOnlineFile) GetNote() []byte { - if x != nil { - return x.Note - } - return nil -} - func (x *NotOnlineFile) GetReserved() int32 { if x != nil && x.Reserved != nil { return *x.Reserved @@ -2437,13 +1534,6 @@ func (x *NotOnlineFile) GetMicroCloud() int32 { return 0 } -func (x *NotOnlineFile) GetBytesFileUrls() [][]byte { - if x != nil { - return x.BytesFileUrls - } - return nil -} - func (x *NotOnlineFile) GetDownloadFlag() int32 { if x != nil && x.DownloadFlag != nil { return *x.DownloadFlag @@ -2493,13 +1583,6 @@ func (x *NotOnlineFile) GetExpireTime() int32 { return 0 } -func (x *NotOnlineFile) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - type TransElem struct { ElemType *int32 `protobuf:"varint,1,opt"` ElemValue []byte `protobuf:"bytes,2,opt"` @@ -2512,13 +1595,6 @@ func (x *TransElem) GetElemType() int32 { return 0 } -func (x *TransElem) GetElemValue() []byte { - if x != nil { - return x.ElemValue - } - return nil -} - type ExtraInfo struct { Nick []byte `protobuf:"bytes,1,opt"` GroupCard []byte `protobuf:"bytes,2,opt"` @@ -2534,20 +1610,6 @@ type ExtraInfo struct { NewGroupFlag *int32 `protobuf:"varint,12,opt"` } -func (x *ExtraInfo) GetNick() []byte { - if x != nil { - return x.Nick - } - return nil -} - -func (x *ExtraInfo) GetGroupCard() []byte { - if x != nil { - return x.GroupCard - } - return nil -} - func (x *ExtraInfo) GetLevel() int32 { if x != nil && x.Level != nil { return *x.Level @@ -2576,20 +1638,6 @@ func (x *ExtraInfo) GetMsgTailId() int32 { return 0 } -func (x *ExtraInfo) GetSenderTitle() []byte { - if x != nil { - return x.SenderTitle - } - return nil -} - -func (x *ExtraInfo) GetApnsTips() []byte { - if x != nil { - return x.ApnsTips - } - return nil -} - func (x *ExtraInfo) GetUin() int64 { if x != nil && x.Uin != nil { return *x.Uin @@ -2631,13 +1679,6 @@ type GroupFile struct { PbReserve []byte `protobuf:"bytes,10,opt"` } -func (x *GroupFile) GetFilename() []byte { - if x != nil { - return x.Filename - } - return nil -} - func (x *GroupFile) GetFileSize() int64 { if x != nil && x.FileSize != nil { return *x.FileSize @@ -2645,34 +1686,6 @@ func (x *GroupFile) GetFileSize() int64 { return 0 } -func (x *GroupFile) GetFileId() []byte { - if x != nil { - return x.FileId - } - return nil -} - -func (x *GroupFile) GetBatchId() []byte { - if x != nil { - return x.BatchId - } - return nil -} - -func (x *GroupFile) GetFileKey() []byte { - if x != nil { - return x.FileKey - } - return nil -} - -func (x *GroupFile) GetMark() []byte { - if x != nil { - return x.Mark - } - return nil -} - func (x *GroupFile) GetSequence() int64 { if x != nil && x.Sequence != nil { return *x.Sequence @@ -2680,13 +1693,6 @@ func (x *GroupFile) GetSequence() int64 { return 0 } -func (x *GroupFile) GetBatchItemId() []byte { - if x != nil { - return x.BatchItemId - } - return nil -} - func (x *GroupFile) GetFeedMsgTime() int32 { if x != nil && x.FeedMsgTime != nil { return *x.FeedMsgTime @@ -2694,13 +1700,6 @@ func (x *GroupFile) GetFeedMsgTime() int32 { return 0 } -func (x *GroupFile) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - type AnonymousGroupMessage struct { Flags *int32 `protobuf:"varint,1,opt"` AnonId []byte `protobuf:"bytes,2,opt"` @@ -2718,20 +1717,6 @@ func (x *AnonymousGroupMessage) GetFlags() int32 { return 0 } -func (x *AnonymousGroupMessage) GetAnonId() []byte { - if x != nil { - return x.AnonId - } - return nil -} - -func (x *AnonymousGroupMessage) GetAnonNick() []byte { - if x != nil { - return x.AnonNick - } - return nil -} - func (x *AnonymousGroupMessage) GetHeadPortrait() int32 { if x != nil && x.HeadPortrait != nil { return *x.HeadPortrait @@ -2753,13 +1738,6 @@ func (x *AnonymousGroupMessage) GetBubbleId() int32 { return 0 } -func (x *AnonymousGroupMessage) GetRankColor() []byte { - if x != nil { - return x.RankColor - } - return nil -} - type VideoFile struct { FileUuid []byte `protobuf:"bytes,1,opt"` FileMd5 []byte `protobuf:"bytes,2,opt"` @@ -2787,27 +1765,6 @@ type VideoFile struct { PbReserve []byte `protobuf:"bytes,24,opt"` } -func (x *VideoFile) GetFileUuid() []byte { - if x != nil { - return x.FileUuid - } - return nil -} - -func (x *VideoFile) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - -func (x *VideoFile) GetFileName() []byte { - if x != nil { - return x.FileName - } - return nil -} - func (x *VideoFile) GetFileFormat() int32 { if x != nil && x.FileFormat != nil { return *x.FileFormat @@ -2843,20 +1800,6 @@ func (x *VideoFile) GetThumbHeight() int32 { return 0 } -func (x *VideoFile) GetThumbFileMd5() []byte { - if x != nil { - return x.ThumbFileMd5 - } - return nil -} - -func (x *VideoFile) GetSource() []byte { - if x != nil { - return x.Source - } - return nil -} - func (x *VideoFile) GetThumbFileSize() int32 { if x != nil && x.ThumbFileSize != nil { return *x.ThumbFileSize @@ -2920,20 +1863,6 @@ func (x *VideoFile) GetVideoAttr() int32 { return 0 } -func (x *VideoFile) GetBytesThumbFileUrls() [][]byte { - if x != nil { - return x.BytesThumbFileUrls - } - return nil -} - -func (x *VideoFile) GetBytesVideoFileUrls() [][]byte { - if x != nil { - return x.BytesVideoFileUrls - } - return nil -} - func (x *VideoFile) GetThumbDownloadFlag() int32 { if x != nil && x.ThumbDownloadFlag != nil { return *x.ThumbDownloadFlag @@ -2948,13 +1877,6 @@ func (x *VideoFile) GetVideoDownloadFlag() int32 { return 0 } -func (x *VideoFile) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - type SourceMsg struct { OrigSeqs []int32 `protobuf:"varint,1,rep"` SenderUin *int64 `protobuf:"varint,2,opt"` @@ -2969,13 +1891,6 @@ type SourceMsg struct { TroopName []byte `protobuf:"bytes,11,opt"` } -func (x *SourceMsg) GetOrigSeqs() []int32 { - if x != nil { - return x.OrigSeqs - } - return nil -} - func (x *SourceMsg) GetSenderUin() int64 { if x != nil && x.SenderUin != nil { return *x.SenderUin @@ -2997,13 +1912,6 @@ func (x *SourceMsg) GetFlag() int32 { return 0 } -func (x *SourceMsg) GetElems() []*Elem { - if x != nil { - return x.Elems - } - return nil -} - func (x *SourceMsg) GetType() int32 { if x != nil && x.Type != nil { return *x.Type @@ -3011,27 +1919,6 @@ func (x *SourceMsg) GetType() int32 { return 0 } -func (x *SourceMsg) GetRichMsg() []byte { - if x != nil { - return x.RichMsg - } - return nil -} - -func (x *SourceMsg) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - -func (x *SourceMsg) GetSrcMsg() []byte { - if x != nil { - return x.SrcMsg - } - return nil -} - func (x *SourceMsg) GetToUin() int64 { if x != nil && x.ToUin != nil { return *x.ToUin @@ -3039,13 +1926,6 @@ func (x *SourceMsg) GetToUin() int64 { return 0 } -func (x *SourceMsg) GetTroopName() []byte { - if x != nil { - return x.TroopName - } - return nil -} - type Face struct { Index *int32 `protobuf:"varint,1,opt"` Old []byte `protobuf:"bytes,2,opt"` @@ -3059,39 +1939,11 @@ func (x *Face) GetIndex() int32 { return 0 } -func (x *Face) GetOld() []byte { - if x != nil { - return x.Old - } - return nil -} - -func (x *Face) GetBuf() []byte { - if x != nil { - return x.Buf - } - return nil -} - type LightAppElem struct { Data []byte `protobuf:"bytes,1,opt"` MsgResid []byte `protobuf:"bytes,2,opt"` } -func (x *LightAppElem) GetData() []byte { - if x != nil { - return x.Data - } - return nil -} - -func (x *LightAppElem) GetMsgResid() []byte { - if x != nil { - return x.MsgResid - } - return nil -} - type CustomFace struct { Guid []byte `protobuf:"bytes,1,opt"` FilePath *string `protobuf:"bytes,2,opt"` @@ -3129,13 +1981,6 @@ type CustomFace struct { PbReserve []byte `protobuf:"bytes,34,opt"` } -func (x *CustomFace) GetGuid() []byte { - if x != nil { - return x.Guid - } - return nil -} - func (x *CustomFace) GetFilePath() string { if x != nil && x.FilePath != nil { return *x.FilePath @@ -3150,27 +1995,6 @@ func (x *CustomFace) GetShortcut() string { return "" } -func (x *CustomFace) GetBuffer() []byte { - if x != nil { - return x.Buffer - } - return nil -} - -func (x *CustomFace) GetFlag() []byte { - if x != nil { - return x.Flag - } - return nil -} - -func (x *CustomFace) GetOldData() []byte { - if x != nil { - return x.OldData - } - return nil -} - func (x *CustomFace) GetFileId() int32 { if x != nil && x.FileId != nil { return *x.FileId @@ -3199,13 +2023,6 @@ func (x *CustomFace) GetFileType() int32 { return 0 } -func (x *CustomFace) GetSignature() []byte { - if x != nil { - return x.Signature - } - return nil -} - func (x *CustomFace) GetUseful() int32 { if x != nil && x.Useful != nil { return *x.Useful @@ -3213,13 +2030,6 @@ func (x *CustomFace) GetUseful() int32 { return 0 } -func (x *CustomFace) GetMd5() []byte { - if x != nil { - return x.Md5 - } - return nil -} - func (x *CustomFace) GetThumbUrl() string { if x != nil && x.ThumbUrl != nil { return *x.ThumbUrl @@ -3360,13 +2170,6 @@ func (x *CustomFace) GetX400Height() int32 { return 0 } -func (x *CustomFace) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - type ContentHead struct { PkgNum *int32 `protobuf:"varint,1,opt"` PkgIndex *int32 `protobuf:"varint,2,opt"` @@ -3482,20 +2285,6 @@ func (x *MessageHead) GetMsgUid() int64 { return 0 } -func (x *MessageHead) GetC2CTmpMsgHead() *C2CTempMessageHead { - if x != nil { - return x.C2CTmpMsgHead - } - return nil -} - -func (x *MessageHead) GetGroupInfo() *GroupInfo { - if x != nil { - return x.GroupInfo - } - return nil -} - func (x *MessageHead) GetFromAppid() int32 { if x != nil && x.FromAppid != nil { return *x.FromAppid @@ -3517,13 +2306,6 @@ func (x *MessageHead) GetUserActive() int32 { return 0 } -func (x *MessageHead) GetDiscussInfo() *DiscussInfo { - if x != nil { - return x.DiscussInfo - } - return nil -} - func (x *MessageHead) GetFromNick() string { if x != nil && x.FromNick != nil { return *x.FromNick @@ -3566,20 +2348,6 @@ func (x *MessageHead) GetGroupName() string { return "" } -func (x *MessageHead) GetMutiltransHead() *MutilTransHead { - if x != nil { - return x.MutiltransHead - } - return nil -} - -func (x *MessageHead) GetMsgInstCtrl() *InstCtrl { - if x != nil { - return x.MsgInstCtrl - } - return nil -} - func (x *MessageHead) GetPublicAccountGroupSendFlag() int32 { if x != nil && x.PublicAccountGroupSendFlag != nil { return *x.PublicAccountGroupSendFlag @@ -3601,13 +2369,6 @@ func (x *MessageHead) GetCpid() int64 { return 0 } -func (x *MessageHead) GetExtGroupKeyInfo() *ExtGroupKeyInfo { - if x != nil { - return x.ExtGroupKeyInfo - } - return nil -} - func (x *MessageHead) GetMultiCompatibleText() string { if x != nil && x.MultiCompatibleText != nil { return *x.MultiCompatibleText @@ -3668,13 +2429,6 @@ func (x *GroupInfo) GetGroupCard() string { return "" } -func (x *GroupInfo) GetGroupRank() []byte { - if x != nil { - return x.GroupRank - } - return nil -} - func (x *GroupInfo) GetGroupLevel() int32 { if x != nil && x.GroupLevel != nil { return *x.GroupLevel @@ -3689,13 +2443,6 @@ func (x *GroupInfo) GetGroupCardType() int32 { return 0 } -func (x *GroupInfo) GetGroupName() []byte { - if x != nil { - return x.GroupName - } - return nil -} - type DiscussInfo struct { DiscussUin *int64 `protobuf:"varint,1,opt"` DiscussType *int32 `protobuf:"varint,2,opt"` @@ -3725,20 +2472,6 @@ func (x *DiscussInfo) GetDiscussInfoSeq() int64 { return 0 } -func (x *DiscussInfo) GetDiscussRemark() []byte { - if x != nil { - return x.DiscussRemark - } - return nil -} - -func (x *DiscussInfo) GetDiscussName() []byte { - if x != nil { - return x.DiscussName - } - return nil -} - type MutilTransHead struct { Status *int32 `protobuf:"varint,1,opt"` MsgId *int32 `protobuf:"varint,2,opt"` @@ -3800,13 +2533,6 @@ func (x *C2CTempMessageHead) GetGroupCode() int64 { return 0 } -func (x *C2CTempMessageHead) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - func (x *C2CTempMessageHead) GetSigType() int32 { if x != nil && x.SigType != nil { return *x.SigType @@ -3842,40 +2568,12 @@ func (x *C2CTempMessageHead) GetDirectionFlag() int32 { return 0 } -func (x *C2CTempMessageHead) GetReserved() []byte { - if x != nil { - return x.Reserved - } - return nil -} - type InstCtrl struct { MsgSendToInst []*InstInfo `protobuf:"bytes,1,rep"` MsgExcludeInst []*InstInfo `protobuf:"bytes,2,rep"` MsgFromInst *InstInfo `protobuf:"bytes,3,opt"` } -func (x *InstCtrl) GetMsgSendToInst() []*InstInfo { - if x != nil { - return x.MsgSendToInst - } - return nil -} - -func (x *InstCtrl) GetMsgExcludeInst() []*InstInfo { - if x != nil { - return x.MsgExcludeInst - } - return nil -} - -func (x *InstCtrl) GetMsgFromInst() *InstInfo { - if x != nil { - return x.MsgFromInst - } - return nil -} - type InstInfo struct { Apppid *int32 `protobuf:"varint,1,opt"` Instid *int32 `protobuf:"varint,2,opt"` @@ -4084,13 +2782,6 @@ func (x *TransMsgInfo) GetNickName() string { return "" } -func (x *TransMsgInfo) GetMsgData() []byte { - if x != nil { - return x.MsgData - } - return nil -} - func (x *TransMsgInfo) GetSvrIp() int32 { if x != nil && x.SvrIp != nil { return *x.SvrIp @@ -4098,13 +2789,6 @@ func (x *TransMsgInfo) GetSvrIp() int32 { return 0 } -func (x *TransMsgInfo) GetExtGroupKeyInfo() *ExtGroupKeyInfo { - if x != nil { - return x.ExtGroupKeyInfo - } - return nil -} - func (x *TransMsgInfo) GetGeneralFlag() int32 { if x != nil && x.GeneralFlag != nil { return *x.GeneralFlag @@ -4155,13 +2839,6 @@ func (x *GeneralFlags) GetUin() int64 { return 0 } -func (x *GeneralFlags) GetRpId() []byte { - if x != nil { - return x.RpId - } - return nil -} - func (x *GeneralFlags) GetPrpFold() int32 { if x != nil && x.PrpFold != nil { return *x.PrpFold @@ -4225,13 +2902,6 @@ func (x *GeneralFlags) GetOlympicTorch() int32 { return 0 } -func (x *GeneralFlags) GetBabyqGuideMsgCookie() []byte { - if x != nil { - return x.BabyqGuideMsgCookie - } - return nil -} - func (x *GeneralFlags) GetUin32ExpertFlag() int32 { if x != nil && x.Uin32ExpertFlag != nil { return *x.Uin32ExpertFlag @@ -4253,20 +2923,6 @@ func (x *GeneralFlags) GetPendantId() int64 { return 0 } -func (x *GeneralFlags) GetRpIndex() []byte { - if x != nil { - return x.RpIndex - } - return nil -} - -func (x *GeneralFlags) GetPbReserve() []byte { - if x != nil { - return x.PbReserve - } - return nil -} - type PbMultiMsgItem struct { FileName *string `protobuf:"bytes,1,opt"` Buffer *PbMultiMsgNew `protobuf:"bytes,2,opt"` @@ -4279,62 +2935,20 @@ func (x *PbMultiMsgItem) GetFileName() string { return "" } -func (x *PbMultiMsgItem) GetBuffer() *PbMultiMsgNew { - if x != nil { - return x.Buffer - } - return nil -} - type PbMultiMsgNew struct { Msg []*Message `protobuf:"bytes,1,rep"` } -func (x *PbMultiMsgNew) GetMsg() []*Message { - if x != nil { - return x.Msg - } - return nil -} - type PbMultiMsgTransmit struct { Msg []*Message `protobuf:"bytes,1,rep"` PbItemList []*PbMultiMsgItem `protobuf:"bytes,2,rep"` } -func (x *PbMultiMsgTransmit) GetMsg() []*Message { - if x != nil { - return x.Msg - } - return nil -} - -func (x *PbMultiMsgTransmit) GetPbItemList() []*PbMultiMsgItem { - if x != nil { - return x.PbItemList - } - return nil -} - type MsgElemInfoServtype3 struct { FlashTroopPic *CustomFace `protobuf:"bytes,1,opt"` FlashC2CPic *NotOnlineImage `protobuf:"bytes,2,opt"` } -func (x *MsgElemInfoServtype3) GetFlashTroopPic() *CustomFace { - if x != nil { - return x.FlashTroopPic - } - return nil -} - -func (x *MsgElemInfoServtype3) GetFlashC2CPic() *NotOnlineImage { - if x != nil { - return x.FlashC2CPic - } - return nil -} - type MsgElemInfoServtype33 struct { Index *uint32 `protobuf:"varint,1,opt"` Text []byte `protobuf:"bytes,2,opt"` @@ -4349,59 +2963,17 @@ func (x *MsgElemInfoServtype33) GetIndex() uint32 { return 0 } -func (x *MsgElemInfoServtype33) GetText() []byte { - if x != nil { - return x.Text - } - return nil -} - -func (x *MsgElemInfoServtype33) GetCompat() []byte { - if x != nil { - return x.Compat - } - return nil -} - -func (x *MsgElemInfoServtype33) GetBuf() []byte { - if x != nil { - return x.Buf - } - return nil -} - type MsgElemInfoServtype38 struct { ReactData []byte `protobuf:"bytes,1,opt"` ReplyData []byte `protobuf:"bytes,2,opt"` } -func (x *MsgElemInfoServtype38) GetReactData() []byte { - if x != nil { - return x.ReactData - } - return nil -} - -func (x *MsgElemInfoServtype38) GetReplyData() []byte { - if x != nil { - return x.ReplyData - } - return nil -} - type SubMsgType0X4Body struct { NotOnlineFile *NotOnlineFile `protobuf:"bytes,1,opt"` MsgTime *uint32 `protobuf:"varint,2,opt"` OnlineFileForPolyToOffline *uint32 `protobuf:"varint,3,opt"` // fileImageInfo } -func (x *SubMsgType0X4Body) GetNotOnlineFile() *NotOnlineFile { - if x != nil { - return x.NotOnlineFile - } - return nil -} - func (x *SubMsgType0X4Body) GetMsgTime() uint32 { if x != nil && x.MsgTime != nil { return *x.MsgTime @@ -4428,13 +3000,6 @@ func (x *ResvAttr) GetImageBizType() uint32 { return 0 } -func (x *ResvAttr) GetImageShow() *AnimationImageShow { - if x != nil { - return x.ImageShow - } - return nil -} - type AnimationImageShow struct { EffectId *int32 `protobuf:"varint,1,opt"` AnimationParam []byte `protobuf:"bytes,2,opt"` @@ -4447,13 +3012,6 @@ func (x *AnimationImageShow) GetEffectId() int32 { return 0 } -func (x *AnimationImageShow) GetAnimationParam() []byte { - if x != nil { - return x.AnimationParam - } - return nil -} - type UinTypeUserDef struct { FromUinType *int32 `protobuf:"varint,1,opt"` FromGroupCode *int64 `protobuf:"varint,2,opt"` @@ -4592,13 +3150,6 @@ func (x *GetGroupMsgResp) GetReturnEndSeq() uint64 { return 0 } -func (x *GetGroupMsgResp) GetMsg() []*Message { - if x != nil { - return x.Msg - } - return nil -} - type PbGetOneDayRoamMsgReq struct { PeerUin *uint64 `protobuf:"varint,1,opt"` LastMsgTime *uint64 `protobuf:"varint,2,opt"` @@ -4679,13 +3230,6 @@ func (x *PbGetOneDayRoamMsgResp) GetRandom() uint64 { return 0 } -func (x *PbGetOneDayRoamMsgResp) GetMsg() []*Message { - if x != nil { - return x.Msg - } - return nil -} - func (x *PbGetOneDayRoamMsgResp) GetIsComplete() uint32 { if x != nil && x.IsComplete != nil { return *x.IsComplete @@ -4702,13 +3246,6 @@ type PbPushMsg struct { BindUin *uint64 `protobuf:"varint,10,opt"` } -func (x *PbPushMsg) GetMsg() *Message { - if x != nil { - return x.Msg - } - return nil -} - func (x *PbPushMsg) GetSvrip() int32 { if x != nil && x.Svrip != nil { return *x.Svrip @@ -4716,13 +3253,6 @@ func (x *PbPushMsg) GetSvrip() int32 { return 0 } -func (x *PbPushMsg) GetPushToken() []byte { - if x != nil { - return x.PushToken - } - return nil -} - func (x *PbPushMsg) GetPingFlag() uint32 { if x != nil && x.PingFlag != nil { return *x.PingFlag @@ -4756,20 +3286,6 @@ type MsgElemInfoServtype37 struct { Randomtype *uint32 `protobuf:"varint,9,opt"` } -func (x *MsgElemInfoServtype37) GetPackid() []byte { - if x != nil { - return x.Packid - } - return nil -} - -func (x *MsgElemInfoServtype37) GetStickerid() []byte { - if x != nil { - return x.Stickerid - } - return nil -} - func (x *MsgElemInfoServtype37) GetQsid() uint32 { if x != nil && x.Qsid != nil { return *x.Qsid @@ -4791,27 +3307,6 @@ func (x *MsgElemInfoServtype37) GetStickertype() uint32 { return 0 } -func (x *MsgElemInfoServtype37) GetResultid() []byte { - if x != nil { - return x.Resultid - } - return nil -} - -func (x *MsgElemInfoServtype37) GetText() []byte { - if x != nil { - return x.Text - } - return nil -} - -func (x *MsgElemInfoServtype37) GetSurpriseid() []byte { - if x != nil { - return x.Surpriseid - } - return nil -} - func (x *MsgElemInfoServtype37) GetRandomtype() uint32 { if x != nil && x.Randomtype != nil { return *x.Randomtype diff --git a/client/pb/msg/msg.proto b/client/pb/msg/msg.proto index 57098a31..68c673c1 100644 --- a/client/pb/msg/msg.proto +++ b/client/pb/msg/msg.proto @@ -2,7 +2,7 @@ syntax = "proto2"; package msg; -option go_package = "pb/msg;msg"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/msg"; message GetMessageRequest { optional SyncFlag syncFlag = 1; diff --git a/client/pb/msg/objmsg.pb.go b/client/pb/msg/objmsg.pb.go index 42572a92..67104641 100644 --- a/client/pb/msg/objmsg.pb.go +++ b/client/pb/msg/objmsg.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: objmsg.proto +// source: pb/msg/objmsg.proto package msg @@ -9,27 +9,6 @@ type MsgPic struct { LocalPicId int32 `protobuf:"varint,3,opt"` } -func (x *MsgPic) GetSmallPicUrl() []byte { - if x != nil { - return x.SmallPicUrl - } - return nil -} - -func (x *MsgPic) GetOriginalPicUrl() []byte { - if x != nil { - return x.OriginalPicUrl - } - return nil -} - -func (x *MsgPic) GetLocalPicId() int32 { - if x != nil { - return x.LocalPicId - } - return 0 -} - type ObjMsg struct { MsgType int32 `protobuf:"varint,1,opt"` Title []byte `protobuf:"bytes,2,opt"` @@ -40,74 +19,11 @@ type ObjMsg struct { ReportIdShow int32 `protobuf:"varint,8,opt"` } -func (x *ObjMsg) GetMsgType() int32 { - if x != nil { - return x.MsgType - } - return 0 -} - -func (x *ObjMsg) GetTitle() []byte { - if x != nil { - return x.Title - } - return nil -} - -func (x *ObjMsg) GetBytesAbstact() []byte { - if x != nil { - return x.BytesAbstact - } - return nil -} - -func (x *ObjMsg) GetTitleExt() []byte { - if x != nil { - return x.TitleExt - } - return nil -} - -func (x *ObjMsg) GetMsgPic() []*MsgPic { - if x != nil { - return x.MsgPic - } - return nil -} - -func (x *ObjMsg) GetMsgContentInfo() []*MsgContentInfo { - if x != nil { - return x.MsgContentInfo - } - return nil -} - -func (x *ObjMsg) GetReportIdShow() int32 { - if x != nil { - return x.ReportIdShow - } - return 0 -} - type MsgContentInfo struct { ContentInfoId []byte `protobuf:"bytes,1,opt"` MsgFile *MsgFile `protobuf:"bytes,2,opt"` } -func (x *MsgContentInfo) GetContentInfoId() []byte { - if x != nil { - return x.ContentInfoId - } - return nil -} - -func (x *MsgContentInfo) GetMsgFile() *MsgFile { - if x != nil { - return x.MsgFile - } - return nil -} - type MsgFile struct { BusId int32 `protobuf:"varint,1,opt"` FilePath []byte `protobuf:"bytes,2,opt"` @@ -117,52 +33,3 @@ type MsgFile struct { FileSha1 []byte `protobuf:"bytes,6,opt"` Ext []byte `protobuf:"bytes,7,opt"` } - -func (x *MsgFile) GetBusId() int32 { - if x != nil { - return x.BusId - } - return 0 -} - -func (x *MsgFile) GetFilePath() []byte { - if x != nil { - return x.FilePath - } - return nil -} - -func (x *MsgFile) GetFileSize() int64 { - if x != nil { - return x.FileSize - } - return 0 -} - -func (x *MsgFile) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *MsgFile) GetInt64DeadTime() int64 { - if x != nil { - return x.Int64DeadTime - } - return 0 -} - -func (x *MsgFile) GetFileSha1() []byte { - if x != nil { - return x.FileSha1 - } - return nil -} - -func (x *MsgFile) GetExt() []byte { - if x != nil { - return x.Ext - } - return nil -} diff --git a/client/pb/msg/objmsg.proto b/client/pb/msg/objmsg.proto index 6733055d..5c143756 100644 --- a/client/pb/msg/objmsg.proto +++ b/client/pb/msg/objmsg.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;msg"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/msg"; message MsgPic { bytes smallPicUrl = 1; diff --git a/client/pb/msg/report.pb.go b/client/pb/msg/report.pb.go index bbe1e424..0ce40d3b 100644 --- a/client/pb/msg/report.pb.go +++ b/client/pb/msg/report.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: report.proto +// source: pb/msg/report.proto package msg @@ -9,54 +9,12 @@ type PbMsgReadedReportReq struct { C2CReadReport *PbC2CReadedReportReq `protobuf:"bytes,3,opt"` //optional PbBindUinMsgReadedConfirmReq bindUinReadReport = 4; } -func (x *PbMsgReadedReportReq) GetGrpReadReport() []*PbGroupReadedReportReq { - if x != nil { - return x.GrpReadReport - } - return nil -} - -func (x *PbMsgReadedReportReq) GetDisReadReport() []*PbDiscussReadedReportReq { - if x != nil { - return x.DisReadReport - } - return nil -} - -func (x *PbMsgReadedReportReq) GetC2CReadReport() *PbC2CReadedReportReq { - if x != nil { - return x.C2CReadReport - } - return nil -} - type PbMsgReadedReportResp struct { GrpReadReport []*PbGroupReadedReportResp `protobuf:"bytes,1,rep"` DisReadReport []*PbDiscussReadedReportResp `protobuf:"bytes,2,rep"` C2CReadReport *PbC2CReadedReportResp `protobuf:"bytes,3,opt"` //optional PbBindUinMsgReadedConfirmResp bindUinReadReport = 4; } -func (x *PbMsgReadedReportResp) GetGrpReadReport() []*PbGroupReadedReportResp { - if x != nil { - return x.GrpReadReport - } - return nil -} - -func (x *PbMsgReadedReportResp) GetDisReadReport() []*PbDiscussReadedReportResp { - if x != nil { - return x.DisReadReport - } - return nil -} - -func (x *PbMsgReadedReportResp) GetC2CReadReport() *PbC2CReadedReportResp { - if x != nil { - return x.C2CReadReport - } - return nil -} - type PbGroupReadedReportReq struct { GroupCode *uint64 `protobuf:"varint,1,opt"` LastReadSeq *uint64 `protobuf:"varint,2,opt"` @@ -100,20 +58,6 @@ type PbC2CReadedReportReq struct { PairInfo []*UinPairReadInfo `protobuf:"bytes,2,rep"` } -func (x *PbC2CReadedReportReq) GetSyncCookie() []byte { - if x != nil { - return x.SyncCookie - } - return nil -} - -func (x *PbC2CReadedReportReq) GetPairInfo() []*UinPairReadInfo { - if x != nil { - return x.PairInfo - } - return nil -} - type UinPairReadInfo struct { PeerUin *uint64 `protobuf:"varint,1,opt"` LastReadTime *uint32 `protobuf:"varint,2,opt"` @@ -139,13 +83,6 @@ func (x *UinPairReadInfo) GetLastReadTime() uint32 { return 0 } -func (x *UinPairReadInfo) GetCrmSig() []byte { - if x != nil { - return x.CrmSig - } - return nil -} - func (x *UinPairReadInfo) GetPeerType() uint32 { if x != nil && x.PeerType != nil { return *x.PeerType @@ -286,10 +223,3 @@ func (x *PbC2CReadedReportResp) GetErrmsg() string { } return "" } - -func (x *PbC2CReadedReportResp) GetSyncCookie() []byte { - if x != nil { - return x.SyncCookie - } - return nil -} diff --git a/client/pb/msg/report.proto b/client/pb/msg/report.proto index 799f0de1..4b3790c7 100644 --- a/client/pb/msg/report.proto +++ b/client/pb/msg/report.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;msg"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/msg"; message PbMsgReadedReportReq { repeated PbGroupReadedReportReq grpReadReport = 1; diff --git a/client/pb/msgtype0x210/subMsgType0x27.pb.go b/client/pb/msgtype0x210/subMsgType0x27.pb.go index 70b44b46..028f326c 100644 --- a/client/pb/msgtype0x210/subMsgType0x27.pb.go +++ b/client/pb/msgtype0x210/subMsgType0x27.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: subMsgType0x27.proto +// source: pb/msgtype0x210/subMsgType0x27.proto package msgtype0x210 @@ -23,13 +23,6 @@ func (x *AddGroup) GetSortid() uint32 { return 0 } -func (x *AddGroup) GetGroupname() []byte { - if x != nil { - return x.Groupname - } - return nil -} - type AppointmentNotify struct { FromUin *uint64 `protobuf:"varint,1,opt"` AppointId *string `protobuf:"bytes,2,opt"` @@ -93,34 +86,6 @@ func (x *AppointmentNotify) GetViewWording() string { return "" } -func (x *AppointmentNotify) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - -func (x *AppointmentNotify) GetEventInfo() []byte { - if x != nil { - return x.EventInfo - } - return nil -} - -func (x *AppointmentNotify) GetNearbyEventInfo() []byte { - if x != nil { - return x.NearbyEventInfo - } - return nil -} - -func (x *AppointmentNotify) GetFeedEventInfo() []byte { - if x != nil { - return x.FeedEventInfo - } - return nil -} - type BinaryMsg struct { OpType *uint32 `protobuf:"varint,1,opt"` OpValue []byte `protobuf:"bytes,2,opt"` @@ -133,13 +98,6 @@ func (x *BinaryMsg) GetOpType() uint32 { return 0 } -func (x *BinaryMsg) GetOpValue() []byte { - if x != nil { - return x.OpValue - } - return nil -} - type ChatMatchInfo struct { Sig []byte `protobuf:"bytes,1,opt"` Uin *uint64 `protobuf:"varint,2,opt"` @@ -153,13 +111,6 @@ type ChatMatchInfo struct { Nick []byte `protobuf:"bytes,10,opt"` } -func (x *ChatMatchInfo) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - func (x *ChatMatchInfo) GetUin() uint64 { if x != nil && x.Uin != nil { return *x.Uin @@ -174,13 +125,6 @@ func (x *ChatMatchInfo) GetMatchUin() uint64 { return 0 } -func (x *ChatMatchInfo) GetTipsWording() []byte { - if x != nil { - return x.TipsWording - } - return nil -} - func (x *ChatMatchInfo) GetLeftChatTime() uint32 { if x != nil && x.LeftChatTime != nil { return *x.LeftChatTime @@ -216,13 +160,6 @@ func (x *ChatMatchInfo) GetMatchCount() uint32 { return 0 } -func (x *ChatMatchInfo) GetNick() []byte { - if x != nil { - return x.Nick - } - return nil -} - type ConfMsgRoamFlag struct { Confid *uint64 `protobuf:"varint,1,opt"` Flag *uint32 `protobuf:"varint,2,opt"` @@ -297,13 +234,6 @@ type DelFriend struct { Uins []uint64 `protobuf:"varint,1,rep"` } -func (x *DelFriend) GetUins() []uint64 { - if x != nil { - return x.Uins - } - return nil -} - type DelGroup struct { Groupid *uint32 `protobuf:"varint,1,opt"` } @@ -336,20 +266,6 @@ func (x *FanpaiziNotify) GetFromNick() string { return "" } -func (x *FanpaiziNotify) GetTipsContent() []byte { - if x != nil { - return x.TipsContent - } - return nil -} - -func (x *FanpaiziNotify) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - type ForwardBody struct { NotifyType *uint32 `protobuf:"varint,1,opt"` OpType *uint32 `protobuf:"varint,2,opt"` @@ -403,244 +319,6 @@ func (x *ForwardBody) GetOpType() uint32 { return 0 } -func (x *ForwardBody) GetAddGroup() *AddGroup { - if x != nil { - return x.AddGroup - } - return nil -} - -func (x *ForwardBody) GetDelGroup() *DelGroup { - if x != nil { - return x.DelGroup - } - return nil -} - -func (x *ForwardBody) GetModGroupName() *ModGroupName { - if x != nil { - return x.ModGroupName - } - return nil -} - -func (x *ForwardBody) GetModGroupSort() *ModGroupSort { - if x != nil { - return x.ModGroupSort - } - return nil -} - -func (x *ForwardBody) GetModFriendGroup() *ModFriendGroup { - if x != nil { - return x.ModFriendGroup - } - return nil -} - -func (x *ForwardBody) GetModProfile() *ModProfile { - if x != nil { - return x.ModProfile - } - return nil -} - -func (x *ForwardBody) GetModFriendRemark() *ModFriendRemark { - if x != nil { - return x.ModFriendRemark - } - return nil -} - -func (x *ForwardBody) GetModLongNick() *ModLongNick { - if x != nil { - return x.ModLongNick - } - return nil -} - -func (x *ForwardBody) GetModCustomFace() *ModCustomFace { - if x != nil { - return x.ModCustomFace - } - return nil -} - -func (x *ForwardBody) GetModGroupProfile() *ModGroupProfile { - if x != nil { - return x.ModGroupProfile - } - return nil -} - -func (x *ForwardBody) GetModGroupMemberProfile() *ModGroupMemberProfile { - if x != nil { - return x.ModGroupMemberProfile - } - return nil -} - -func (x *ForwardBody) GetDelFriend() *DelFriend { - if x != nil { - return x.DelFriend - } - return nil -} - -func (x *ForwardBody) GetRoamPriv() *ModFrdRoamPriv { - if x != nil { - return x.RoamPriv - } - return nil -} - -func (x *ForwardBody) GetGrpMsgRoamFlag() *GrpMsgRoamFlag { - if x != nil { - return x.GrpMsgRoamFlag - } - return nil -} - -func (x *ForwardBody) GetConfMsgRoamFlag() *ConfMsgRoamFlag { - if x != nil { - return x.ConfMsgRoamFlag - } - return nil -} - -func (x *ForwardBody) GetModRichLongNick() *ModLongNick { - if x != nil { - return x.ModRichLongNick - } - return nil -} - -func (x *ForwardBody) GetBinPkg() *BinaryMsg { - if x != nil { - return x.BinPkg - } - return nil -} - -func (x *ForwardBody) GetModFriendRings() *ModSnsGeneralInfo { - if x != nil { - return x.ModFriendRings - } - return nil -} - -func (x *ForwardBody) GetModConfProfile() *ModConfProfile { - if x != nil { - return x.ModConfProfile - } - return nil -} - -func (x *ForwardBody) GetModFriendFlag() *SnsUpdateFlag { - if x != nil { - return x.ModFriendFlag - } - return nil -} - -func (x *ForwardBody) GetAppointmentNotify() *AppointmentNotify { - if x != nil { - return x.AppointmentNotify - } - return nil -} - -func (x *ForwardBody) GetDarenNotify() *DaRenNotify { - if x != nil { - return x.DarenNotify - } - return nil -} - -func (x *ForwardBody) GetNewComeinUserNotify() *NewComeinUserNotify { - if x != nil { - return x.NewComeinUserNotify - } - return nil -} - -func (x *ForwardBody) GetPushSearchDev() *PushSearchDev { - if x != nil { - return x.PushSearchDev - } - return nil -} - -func (x *ForwardBody) GetPushReportDev() *PushReportDev { - if x != nil { - return x.PushReportDev - } - return nil -} - -func (x *ForwardBody) GetQqPayPush() *QQPayPush { - if x != nil { - return x.QqPayPush - } - return nil -} - -func (x *ForwardBody) GetRedpointInfo() []byte { - if x != nil { - return x.RedpointInfo - } - return nil -} - -func (x *ForwardBody) GetHotFriendNotify() *HotFriendNotify { - if x != nil { - return x.HotFriendNotify - } - return nil -} - -func (x *ForwardBody) GetPraiseRankNotify() *PraiseRankNotify { - if x != nil { - return x.PraiseRankNotify - } - return nil -} - -func (x *ForwardBody) GetCampusNotify() *MQQCampusNotify { - if x != nil { - return x.CampusNotify - } - return nil -} - -func (x *ForwardBody) GetModRichLongNickEx() *ModLongNick { - if x != nil { - return x.ModRichLongNickEx - } - return nil -} - -func (x *ForwardBody) GetChatMatchInfo() *ChatMatchInfo { - if x != nil { - return x.ChatMatchInfo - } - return nil -} - -func (x *ForwardBody) GetFrdCustomOnlineStatusChange() *FrdCustomOnlineStatusChange { - if x != nil { - return x.FrdCustomOnlineStatusChange - } - return nil -} - -func (x *ForwardBody) GetFanpanziNotify() *FanpaiziNotify { - if x != nil { - return x.FanpanziNotify - } - return nil -} - type FrdCustomOnlineStatusChange struct { Uin *uint64 `protobuf:"varint,1,opt"` } @@ -665,20 +343,6 @@ func (x *FriendGroup) GetFuin() uint64 { return 0 } -func (x *FriendGroup) GetOldGroupId() []uint32 { - if x != nil { - return x.OldGroupId - } - return nil -} - -func (x *FriendGroup) GetNewGroupId() []uint32 { - if x != nil { - return x.NewGroupId - } - return nil -} - type FriendRemark struct { Type *uint32 `protobuf:"varint,1,opt"` Fuin *uint64 `protobuf:"varint,2,opt"` @@ -700,13 +364,6 @@ func (x *FriendRemark) GetFuin() uint64 { return 0 } -func (x *FriendRemark) GetRmkName() []byte { - if x != nil { - return x.RmkName - } - return nil -} - func (x *FriendRemark) GetGroupCode() uint64 { if x != nil && x.GroupCode != nil { return *x.GroupCode @@ -761,13 +418,6 @@ func (x *GroupMemberProfileInfo) GetField() uint32 { return 0 } -func (x *GroupMemberProfileInfo) GetValue() []byte { - if x != nil { - return x.Value - } - return nil -} - type GroupProfileInfo struct { Field *uint32 `protobuf:"varint,1,opt"` Value []byte `protobuf:"bytes,2,opt"` @@ -780,13 +430,6 @@ func (x *GroupProfileInfo) GetField() uint32 { return 0 } -func (x *GroupProfileInfo) GetValue() []byte { - if x != nil { - return x.Value - } - return nil -} - type GroupSort struct { Groupid *uint32 `protobuf:"varint,1,opt"` Sortid *uint32 `protobuf:"varint,2,opt"` @@ -1035,13 +678,6 @@ func (x *ModConfProfile) GetConfUin() uint32 { return 0 } -func (x *ModConfProfile) GetProfileInfos() []*ProfileInfo { - if x != nil { - return x.ProfileInfos - } - return nil -} - type ModCustomFace struct { Type *uint32 `protobuf:"varint,1,opt"` Uin *uint64 `protobuf:"varint,2,opt"` @@ -1081,35 +717,14 @@ type ModFrdRoamPriv struct { RoamPriv []*OneRoamPriv `protobuf:"bytes,1,rep"` } -func (x *ModFrdRoamPriv) GetRoamPriv() []*OneRoamPriv { - if x != nil { - return x.RoamPriv - } - return nil -} - type ModFriendGroup struct { FrdGroup []*FriendGroup `protobuf:"bytes,1,rep"` } -func (x *ModFriendGroup) GetFrdGroup() []*FriendGroup { - if x != nil { - return x.FrdGroup - } - return nil -} - type ModFriendRemark struct { FrdRmk []*FriendRemark `protobuf:"bytes,1,rep"` } -func (x *ModFriendRemark) GetFrdRmk() []*FriendRemark { - if x != nil { - return x.FrdRmk - } - return nil -} - type ModGroupMemberProfile struct { GroupUin *uint64 `protobuf:"varint,1,opt"` Uin *uint64 `protobuf:"varint,2,opt"` @@ -1131,13 +746,6 @@ func (x *ModGroupMemberProfile) GetUin() uint64 { return 0 } -func (x *ModGroupMemberProfile) GetGroupMemberProfileInfos() []*GroupMemberProfileInfo { - if x != nil { - return x.GroupMemberProfileInfos - } - return nil -} - func (x *ModGroupMemberProfile) GetGroupCode() uint64 { if x != nil && x.GroupCode != nil { return *x.GroupCode @@ -1157,13 +765,6 @@ func (x *ModGroupName) GetGroupid() uint32 { return 0 } -func (x *ModGroupName) GetGroupname() []byte { - if x != nil { - return x.Groupname - } - return nil -} - type ModGroupProfile struct { GroupUin *uint64 `protobuf:"varint,1,opt"` GroupProfileInfos []*GroupProfileInfo `protobuf:"bytes,2,rep"` @@ -1178,13 +779,6 @@ func (x *ModGroupProfile) GetGroupUin() uint64 { return 0 } -func (x *ModGroupProfile) GetGroupProfileInfos() []*GroupProfileInfo { - if x != nil { - return x.GroupProfileInfos - } - return nil -} - func (x *ModGroupProfile) GetGroupCode() uint64 { if x != nil && x.GroupCode != nil { return *x.GroupCode @@ -1203,13 +797,6 @@ type ModGroupSort struct { Groupsort []*GroupSort `protobuf:"bytes,1,rep"` } -func (x *ModGroupSort) GetGroupsort() []*GroupSort { - if x != nil { - return x.Groupsort - } - return nil -} - type ModLongNick struct { Uin *uint64 `protobuf:"varint,1,opt"` Value []byte `protobuf:"bytes,2,opt"` @@ -1222,13 +809,6 @@ func (x *ModLongNick) GetUin() uint64 { return 0 } -func (x *ModLongNick) GetValue() []byte { - if x != nil { - return x.Value - } - return nil -} - type ModProfile struct { Uin *uint64 `protobuf:"varint,1,opt"` ProfileInfos []*ProfileInfo `protobuf:"bytes,2,rep"` @@ -1241,35 +821,14 @@ func (x *ModProfile) GetUin() uint64 { return 0 } -func (x *ModProfile) GetProfileInfos() []*ProfileInfo { - if x != nil { - return x.ProfileInfos - } - return nil -} - type ModSnsGeneralInfo struct { SnsGeneralInfos []*SnsUpateBuffer `protobuf:"bytes,1,rep"` } -func (x *ModSnsGeneralInfo) GetSnsGeneralInfos() []*SnsUpateBuffer { - if x != nil { - return x.SnsGeneralInfos - } - return nil -} - type SubMsg0X27Body struct { ModInfos []*ForwardBody `protobuf:"bytes,1,rep"` } -func (x *SubMsg0X27Body) GetModInfos() []*ForwardBody { - if x != nil { - return x.ModInfos - } - return nil -} - type NewComeinUser struct { Uin *uint64 `protobuf:"varint,1,opt"` IsFrd *uint32 `protobuf:"varint,2,opt"` @@ -1291,20 +850,6 @@ func (x *NewComeinUser) GetIsFrd() uint32 { return 0 } -func (x *NewComeinUser) GetRemark() []byte { - if x != nil { - return x.Remark - } - return nil -} - -func (x *NewComeinUser) GetNick() []byte { - if x != nil { - return x.Nick - } - return nil -} - type NewComeinUserNotify struct { MsgType *uint32 `protobuf:"varint,1,opt"` OngNotify *bool `protobuf:"varint,2,opt"` @@ -1335,27 +880,6 @@ func (x *NewComeinUserNotify) GetPushTime() uint32 { return 0 } -func (x *NewComeinUserNotify) GetNewComeinUser() *NewComeinUser { - if x != nil { - return x.NewComeinUser - } - return nil -} - -func (x *NewComeinUserNotify) GetNewGroup() *NewGroup { - if x != nil { - return x.NewGroup - } - return nil -} - -func (x *NewComeinUserNotify) GetNewGroupUser() *NewGroupUser { - if x != nil { - return x.NewGroupUser - } - return nil -} - type NewGroup struct { GroupCode *uint64 `protobuf:"varint,1,opt"` GroupName []byte `protobuf:"bytes,2,opt"` @@ -1371,13 +895,6 @@ func (x *NewGroup) GetGroupCode() uint64 { return 0 } -func (x *NewGroup) GetGroupName() []byte { - if x != nil { - return x.GroupName - } - return nil -} - func (x *NewGroup) GetOwnerUin() uint64 { if x != nil && x.OwnerUin != nil { return *x.OwnerUin @@ -1385,20 +902,6 @@ func (x *NewGroup) GetOwnerUin() uint64 { return 0 } -func (x *NewGroup) GetOwnerNick() []byte { - if x != nil { - return x.OwnerNick - } - return nil -} - -func (x *NewGroup) GetDistance() []byte { - if x != nil { - return x.Distance - } - return nil -} - type NewGroupUser struct { Uin *uint64 `protobuf:"varint,1,opt"` Sex *int32 `protobuf:"varint,2,opt"` @@ -1435,13 +938,6 @@ func (x *NewGroupUser) GetNick() string { return "" } -func (x *NewGroupUser) GetDistance() []byte { - if x != nil { - return x.Distance - } - return nil -} - type OneRoamPriv struct { Fuin *uint64 `protobuf:"varint,1,opt"` PrivTag *uint32 `protobuf:"varint,2,opt"` @@ -1508,13 +1004,6 @@ func (x *ProfileInfo) GetField() uint32 { return 0 } -func (x *ProfileInfo) GetValue() []byte { - if x != nil { - return x.Value - } - return nil -} - type PushReportDev struct { MsgType *uint32 `protobuf:"varint,1,opt"` Cookie []byte `protobuf:"bytes,4,opt"` @@ -1529,13 +1018,6 @@ func (x *PushReportDev) GetMsgType() uint32 { return 0 } -func (x *PushReportDev) GetCookie() []byte { - if x != nil { - return x.Cookie - } - return nil -} - func (x *PushReportDev) GetReportMaxNum() uint32 { if x != nil && x.ReportMaxNum != nil { return *x.ReportMaxNum @@ -1543,13 +1025,6 @@ func (x *PushReportDev) GetReportMaxNum() uint32 { return 0 } -func (x *PushReportDev) GetSn() []byte { - if x != nil { - return x.Sn - } - return nil -} - type PushSearchDev struct { MsgType *uint32 `protobuf:"varint,1,opt"` GpsInfo *GPS `protobuf:"bytes,2,opt"` @@ -1566,13 +1041,6 @@ func (x *PushSearchDev) GetMsgType() uint32 { return 0 } -func (x *PushSearchDev) GetGpsInfo() *GPS { - if x != nil { - return x.GpsInfo - } - return nil -} - func (x *PushSearchDev) GetDevTime() uint32 { if x != nil && x.DevTime != nil { return *x.DevTime @@ -1649,31 +1117,10 @@ func (x *SnsUpateBuffer) GetResult() uint32 { return 0 } -func (x *SnsUpateBuffer) GetSnsUpdateItem() []*SnsUpdateItem { - if x != nil { - return x.SnsUpdateItem - } - return nil -} - -func (x *SnsUpateBuffer) GetIdlist() []uint32 { - if x != nil { - return x.Idlist - } - return nil -} - type SnsUpdateFlag struct { UpdateSnsFlag []*SnsUpdateOneFlag `protobuf:"bytes,1,rep"` } -func (x *SnsUpdateFlag) GetUpdateSnsFlag() []*SnsUpdateOneFlag { - if x != nil { - return x.UpdateSnsFlag - } - return nil -} - type SnsUpdateItem struct { UpdateSnsType *uint32 `protobuf:"varint,1,opt"` Value []byte `protobuf:"bytes,2,opt"` @@ -1686,13 +1133,6 @@ func (x *SnsUpdateItem) GetUpdateSnsType() uint32 { return 0 } -func (x *SnsUpdateItem) GetValue() []byte { - if x != nil { - return x.Value - } - return nil -} - type SnsUpdateOneFlag struct { XUin *uint64 `protobuf:"varint,1,opt"` Id *uint64 `protobuf:"varint,2,opt"` diff --git a/client/pb/msgtype0x210/subMsgType0x27.proto b/client/pb/msgtype0x210/subMsgType0x27.proto index a8e673a1..8e7298c8 100644 --- a/client/pb/msgtype0x210/subMsgType0x27.proto +++ b/client/pb/msgtype0x210/subMsgType0x27.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;msgtype0x210"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/msgtype0x210"; message AddGroup { optional uint32 groupid = 1; diff --git a/client/pb/multimsg/multimsg.pb.go b/client/pb/multimsg/multimsg.pb.go index 7a8c2f19..2bde6fd7 100644 --- a/client/pb/multimsg/multimsg.pb.go +++ b/client/pb/multimsg/multimsg.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: multimsg.proto +// source: pb/multimsg/multimsg.proto package multimsg @@ -7,40 +7,12 @@ type ExternMsg struct { ChannelType int32 `protobuf:"varint,1,opt"` } -func (x *ExternMsg) GetChannelType() int32 { - if x != nil { - return x.ChannelType - } - return 0 -} - type MultiMsgApplyDownReq struct { MsgResid []byte `protobuf:"bytes,1,opt"` MsgType int32 `protobuf:"varint,2,opt"` SrcUin int64 `protobuf:"varint,3,opt"` } -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 { Result int32 `protobuf:"varint,1,opt"` ThumbDownPara []byte `protobuf:"bytes,2,opt"` @@ -53,69 +25,6 @@ type MultiMsgApplyDownRsp struct { Uint32DownV6Port []int32 `protobuf:"varint,9,rep"` } -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 { DstUin int64 `protobuf:"varint,1,opt"` MsgSize int64 `protobuf:"varint,2,opt"` @@ -124,41 +33,6 @@ type MultiMsgApplyUpReq struct { ApplyId int32 `protobuf:"varint,5,opt"` } -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 { Result int32 `protobuf:"varint,1,opt"` MsgResid string `protobuf:"bytes,2,opt"` @@ -175,97 +49,6 @@ type MultiMsgApplyUpRsp struct { Uint32UpV6Port []int32 `protobuf:"varint,13,rep"` } -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 MultiReqBody struct { Subcmd int32 `protobuf:"varint,1,opt"` TermType int32 `protobuf:"varint,2,opt"` @@ -278,92 +61,8 @@ type MultiReqBody struct { ReqChannelType int32 `protobuf:"varint,9,opt"` } -func (x *MultiReqBody) GetSubcmd() int32 { - if x != nil { - return x.Subcmd - } - return 0 -} - -func (x *MultiReqBody) GetTermType() int32 { - if x != nil { - return x.TermType - } - return 0 -} - -func (x *MultiReqBody) GetPlatformType() int32 { - if x != nil { - return x.PlatformType - } - return 0 -} - -func (x *MultiReqBody) GetNetType() int32 { - if x != nil { - return x.NetType - } - return 0 -} - -func (x *MultiReqBody) GetBuildVer() string { - if x != nil { - return x.BuildVer - } - return "" -} - -func (x *MultiReqBody) GetMultimsgApplyupReq() []*MultiMsgApplyUpReq { - if x != nil { - return x.MultimsgApplyupReq - } - return nil -} - -func (x *MultiReqBody) GetMultimsgApplydownReq() []*MultiMsgApplyDownReq { - if x != nil { - return x.MultimsgApplydownReq - } - return nil -} - -func (x *MultiReqBody) GetBuType() int32 { - if x != nil { - return x.BuType - } - return 0 -} - -func (x *MultiReqBody) GetReqChannelType() int32 { - if x != nil { - return x.ReqChannelType - } - return 0 -} - type MultiRspBody struct { Subcmd int32 `protobuf:"varint,1,opt"` MultimsgApplyupRsp []*MultiMsgApplyUpRsp `protobuf:"bytes,2,rep"` MultimsgApplydownRsp []*MultiMsgApplyDownRsp `protobuf:"bytes,3,rep"` } - -func (x *MultiRspBody) GetSubcmd() int32 { - if x != nil { - return x.Subcmd - } - return 0 -} - -func (x *MultiRspBody) GetMultimsgApplyupRsp() []*MultiMsgApplyUpRsp { - if x != nil { - return x.MultimsgApplyupRsp - } - return nil -} - -func (x *MultiRspBody) GetMultimsgApplydownRsp() []*MultiMsgApplyDownRsp { - if x != nil { - return x.MultimsgApplydownRsp - } - return nil -} diff --git a/client/pb/multimsg/multimsg.proto b/client/pb/multimsg/multimsg.proto index 63233548..12c6fd4a 100644 --- a/client/pb/multimsg/multimsg.proto +++ b/client/pb/multimsg/multimsg.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;multimsg"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/multimsg"; message ExternMsg { int32 channelType = 1; diff --git a/client/pb/notify/group0x857.pb.go b/client/pb/notify/group0x857.pb.go index 2b9e6896..e7b76bf7 100644 --- a/client/pb/notify/group0x857.pb.go +++ b/client/pb/notify/group0x857.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: group0x857.proto +// source: pb/notify/group0x857.proto package notify @@ -12,48 +12,6 @@ type NotifyMsgBody struct { ServiceType int32 `protobuf:"varint,13,opt"` } -func (x *NotifyMsgBody) GetOptMsgGrayTips() *AIOGrayTipsInfo { - if x != nil { - return x.OptMsgGrayTips - } - return nil -} - -func (x *NotifyMsgBody) GetOptMsgRedTips() *RedGrayTipsInfo { - if x != nil { - return x.OptMsgRedTips - } - return nil -} - -func (x *NotifyMsgBody) GetOptMsgRecall() *MessageRecallReminder { - if x != nil { - return x.OptMsgRecall - } - return nil -} - -func (x *NotifyMsgBody) GetOptGeneralGrayTip() *GeneralGrayTipInfo { - if x != nil { - return x.OptGeneralGrayTip - } - return nil -} - -func (x *NotifyMsgBody) GetQqGroupDigestMsg() *QQGroupDigestMsg { - if x != nil { - return x.QqGroupDigestMsg - } - return nil -} - -func (x *NotifyMsgBody) GetServiceType() int32 { - if x != nil { - return x.ServiceType - } - return 0 -} - type AIOGrayTipsInfo struct { ShowLatest uint32 `protobuf:"varint,1,opt"` Content []byte `protobuf:"bytes,2,opt"` @@ -63,48 +21,6 @@ type AIOGrayTipsInfo struct { ReliaoAdminOpt uint32 `protobuf:"varint,6,opt"` } -func (x *AIOGrayTipsInfo) GetShowLatest() uint32 { - if x != nil { - return x.ShowLatest - } - return 0 -} - -func (x *AIOGrayTipsInfo) GetContent() []byte { - if x != nil { - return x.Content - } - return nil -} - -func (x *AIOGrayTipsInfo) GetRemind() uint32 { - if x != nil { - return x.Remind - } - return 0 -} - -func (x *AIOGrayTipsInfo) GetBrief() []byte { - if x != nil { - return x.Brief - } - return nil -} - -func (x *AIOGrayTipsInfo) GetReceiverUin() uint64 { - if x != nil { - return x.ReceiverUin - } - return 0 -} - -func (x *AIOGrayTipsInfo) GetReliaoAdminOpt() uint32 { - if x != nil { - return x.ReliaoAdminOpt - } - return 0 -} - type GeneralGrayTipInfo struct { BusiType uint64 `protobuf:"varint,1,opt"` BusiId uint64 `protobuf:"varint,2,opt"` @@ -116,81 +32,11 @@ type GeneralGrayTipInfo struct { Content string `protobuf:"bytes,8,opt"` } -func (x *GeneralGrayTipInfo) GetBusiType() uint64 { - if x != nil { - return x.BusiType - } - return 0 -} - -func (x *GeneralGrayTipInfo) GetBusiId() uint64 { - if x != nil { - return x.BusiId - } - return 0 -} - -func (x *GeneralGrayTipInfo) GetCtrlFlag() uint32 { - if x != nil { - return x.CtrlFlag - } - return 0 -} - -func (x *GeneralGrayTipInfo) GetC2CType() uint32 { - if x != nil { - return x.C2CType - } - return 0 -} - -func (x *GeneralGrayTipInfo) GetServiceType() uint32 { - if x != nil { - return x.ServiceType - } - return 0 -} - -func (x *GeneralGrayTipInfo) GetTemplId() uint64 { - if x != nil { - return x.TemplId - } - return 0 -} - -func (x *GeneralGrayTipInfo) GetMsgTemplParam() []*TemplParam { - if x != nil { - return x.MsgTemplParam - } - return nil -} - -func (x *GeneralGrayTipInfo) GetContent() string { - if x != nil { - return x.Content - } - return "" -} - type TemplParam struct { Name string `protobuf:"bytes,1,opt"` Value string `protobuf:"bytes,2,opt"` } -func (x *TemplParam) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *TemplParam) GetValue() string { - if x != nil { - return x.Value - } - return "" -} - type MessageRecallReminder struct { Uin int64 `protobuf:"varint,1,opt"` Nickname []byte `protobuf:"bytes,2,opt"` @@ -201,55 +47,6 @@ type MessageRecallReminder struct { OpType int32 `protobuf:"varint,7,opt"` } -func (x *MessageRecallReminder) GetUin() int64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *MessageRecallReminder) GetNickname() []byte { - if x != nil { - return x.Nickname - } - return nil -} - -func (x *MessageRecallReminder) GetRecalledMsgList() []*RecalledMessageMeta { - if x != nil { - return x.RecalledMsgList - } - return nil -} - -func (x *MessageRecallReminder) GetReminderContent() []byte { - if x != nil { - return x.ReminderContent - } - return nil -} - -func (x *MessageRecallReminder) GetUserdef() []byte { - if x != nil { - return x.Userdef - } - return nil -} - -func (x *MessageRecallReminder) GetGroupType() int32 { - if x != nil { - return x.GroupType - } - return 0 -} - -func (x *MessageRecallReminder) GetOpType() int32 { - if x != nil { - return x.OpType - } - return 0 -} - type RecalledMessageMeta struct { Seq int32 `protobuf:"varint,1,opt"` Time int32 `protobuf:"varint,2,opt"` @@ -259,48 +56,6 @@ type RecalledMessageMeta struct { AuthorUin int64 `protobuf:"varint,6,opt"` } -func (x *RecalledMessageMeta) GetSeq() int32 { - if x != nil { - return x.Seq - } - return 0 -} - -func (x *RecalledMessageMeta) GetTime() int32 { - if x != nil { - return x.Time - } - return 0 -} - -func (x *RecalledMessageMeta) GetMsgRandom() int32 { - if x != nil { - return x.MsgRandom - } - return 0 -} - -func (x *RecalledMessageMeta) GetMsgType() int32 { - if x != nil { - return x.MsgType - } - return 0 -} - -func (x *RecalledMessageMeta) GetMsgFlag() int32 { - if x != nil { - return x.MsgFlag - } - return 0 -} - -func (x *RecalledMessageMeta) GetAuthorUin() int64 { - if x != nil { - return x.AuthorUin - } - return 0 -} - type RedGrayTipsInfo struct { ShowLatest uint32 `protobuf:"varint,1,opt"` SenderUin uint64 `protobuf:"varint,2,opt"` @@ -314,76 +69,6 @@ type RedGrayTipsInfo struct { LuckyUin uint64 `protobuf:"varint,12,opt"` } -func (x *RedGrayTipsInfo) GetShowLatest() uint32 { - if x != nil { - return x.ShowLatest - } - return 0 -} - -func (x *RedGrayTipsInfo) GetSenderUin() uint64 { - if x != nil { - return x.SenderUin - } - return 0 -} - -func (x *RedGrayTipsInfo) GetReceiverUin() uint64 { - if x != nil { - return x.ReceiverUin - } - return 0 -} - -func (x *RedGrayTipsInfo) GetSenderRichContent() string { - if x != nil { - return x.SenderRichContent - } - return "" -} - -func (x *RedGrayTipsInfo) GetReceiverRichContent() string { - if x != nil { - return x.ReceiverRichContent - } - return "" -} - -func (x *RedGrayTipsInfo) GetAuthKey() []byte { - if x != nil { - return x.AuthKey - } - return nil -} - -func (x *RedGrayTipsInfo) GetMsgType() int32 { - if x != nil { - return x.MsgType - } - return 0 -} - -func (x *RedGrayTipsInfo) GetLuckyFlag() uint32 { - if x != nil { - return x.LuckyFlag - } - return 0 -} - -func (x *RedGrayTipsInfo) GetHideFlag() uint32 { - if x != nil { - return x.HideFlag - } - return 0 -} - -func (x *RedGrayTipsInfo) GetLuckyUin() uint64 { - if x != nil { - return x.LuckyUin - } - return 0 -} - type QQGroupDigestMsg struct { GroupCode uint64 `protobuf:"varint,1,opt"` Seq uint32 `protobuf:"varint,2,opt"` @@ -397,80 +82,3 @@ type QQGroupDigestMsg struct { SenderNick []byte `protobuf:"bytes,10,opt"` ExtInfo int32 `protobuf:"varint,11,opt"` } - -func (x *QQGroupDigestMsg) GetGroupCode() uint64 { - if x != nil { - return x.GroupCode - } - return 0 -} - -func (x *QQGroupDigestMsg) GetSeq() uint32 { - if x != nil { - return x.Seq - } - return 0 -} - -func (x *QQGroupDigestMsg) GetRandom() uint32 { - if x != nil { - return x.Random - } - return 0 -} - -func (x *QQGroupDigestMsg) GetOpType() int32 { - if x != nil { - return x.OpType - } - return 0 -} - -func (x *QQGroupDigestMsg) GetSender() uint64 { - if x != nil { - return x.Sender - } - return 0 -} - -func (x *QQGroupDigestMsg) GetDigestOper() uint64 { - if x != nil { - return x.DigestOper - } - return 0 -} - -func (x *QQGroupDigestMsg) GetOpTime() uint32 { - if x != nil { - return x.OpTime - } - return 0 -} - -func (x *QQGroupDigestMsg) GetLastestMsgSeq() uint32 { - if x != nil { - return x.LastestMsgSeq - } - return 0 -} - -func (x *QQGroupDigestMsg) GetOperNick() []byte { - if x != nil { - return x.OperNick - } - return nil -} - -func (x *QQGroupDigestMsg) GetSenderNick() []byte { - if x != nil { - return x.SenderNick - } - return nil -} - -func (x *QQGroupDigestMsg) GetExtInfo() int32 { - if x != nil { - return x.ExtInfo - } - return 0 -} diff --git a/client/pb/notify/group0x857.proto b/client/pb/notify/group0x857.proto index a6572770..6989c805 100644 --- a/client/pb/notify/group0x857.proto +++ b/client/pb/notify/group0x857.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;notify"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/notify"; message NotifyMsgBody { AIOGrayTipsInfo optMsgGrayTips = 5; diff --git a/client/pb/oidb/oidb.pb.go b/client/pb/oidb/oidb.pb.go index e6a90dc7..6504a2c6 100644 --- a/client/pb/oidb/oidb.pb.go +++ b/client/pb/oidb/oidb.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb.proto +// source: pb/oidb/oidb.proto package oidb @@ -12,86 +12,16 @@ type OIDBSSOPkg struct { ClientVersion string `protobuf:"bytes,6,opt"` } -func (x *OIDBSSOPkg) GetCommand() int32 { - if x != nil { - return x.Command - } - return 0 -} - -func (x *OIDBSSOPkg) GetServiceType() int32 { - if x != nil { - return x.ServiceType - } - return 0 -} - -func (x *OIDBSSOPkg) GetResult() int32 { - if x != nil { - return x.Result - } - return 0 -} - -func (x *OIDBSSOPkg) GetBodybuffer() []byte { - if x != nil { - return x.Bodybuffer - } - return nil -} - -func (x *OIDBSSOPkg) GetErrorMsg() string { - if x != nil { - return x.ErrorMsg - } - return "" -} - -func (x *OIDBSSOPkg) GetClientVersion() string { - if x != nil { - return x.ClientVersion - } - return "" -} - type D8A0RspBody struct { OptUint64GroupCode int64 `protobuf:"varint,1,opt"` MsgKickResult []*D8A0KickResult `protobuf:"bytes,2,rep"` } -func (x *D8A0RspBody) GetOptUint64GroupCode() int64 { - if x != nil { - return x.OptUint64GroupCode - } - return 0 -} - -func (x *D8A0RspBody) GetMsgKickResult() []*D8A0KickResult { - if x != nil { - return x.MsgKickResult - } - return nil -} - type D8A0KickResult struct { OptUint32Result int32 `protobuf:"varint,1,opt"` OptUint64MemberUin int64 `protobuf:"varint,2,opt"` } -func (x *D8A0KickResult) GetOptUint32Result() int32 { - if x != nil { - return x.OptUint32Result - } - return 0 -} - -func (x *D8A0KickResult) GetOptUint64MemberUin() int64 { - if x != nil { - return x.OptUint64MemberUin - } - return 0 -} - type D8A0KickMemberInfo struct { OptUint32Operate int32 `protobuf:"varint,1,opt"` OptUint64MemberUin int64 `protobuf:"varint,2,opt"` @@ -99,34 +29,6 @@ type D8A0KickMemberInfo struct { OptBytesMsg []byte `protobuf:"bytes,4,opt"` } -func (x *D8A0KickMemberInfo) GetOptUint32Operate() int32 { - if x != nil { - return x.OptUint32Operate - } - return 0 -} - -func (x *D8A0KickMemberInfo) GetOptUint64MemberUin() int64 { - if x != nil { - return x.OptUint64MemberUin - } - return 0 -} - -func (x *D8A0KickMemberInfo) GetOptUint32Flag() int32 { - if x != nil { - return x.OptUint32Flag - } - return 0 -} - -func (x *D8A0KickMemberInfo) GetOptBytesMsg() []byte { - if x != nil { - return x.OptBytesMsg - } - return nil -} - type D8A0ReqBody struct { OptUint64GroupCode int64 `protobuf:"varint,1,opt"` MsgKickList []*D8A0KickMemberInfo `protobuf:"bytes,2,rep"` @@ -135,41 +37,6 @@ type D8A0ReqBody struct { KickMsg []byte `protobuf:"bytes,5,opt"` } -func (x *D8A0ReqBody) GetOptUint64GroupCode() int64 { - if x != nil { - return x.OptUint64GroupCode - } - return 0 -} - -func (x *D8A0ReqBody) GetMsgKickList() []*D8A0KickMemberInfo { - if x != nil { - return x.MsgKickList - } - return nil -} - -func (x *D8A0ReqBody) GetKickList() []int64 { - if x != nil { - return x.KickList - } - return nil -} - -func (x *D8A0ReqBody) GetKickFlag() int32 { - if x != nil { - return x.KickFlag - } - return 0 -} - -func (x *D8A0ReqBody) GetKickMsg() []byte { - if x != nil { - return x.KickMsg - } - return nil -} - type D89AReqBody struct { GroupCode int64 `protobuf:"varint,1,opt"` StGroupInfo *D89AGroupinfo `protobuf:"bytes,2,opt"` @@ -177,34 +44,6 @@ type D89AReqBody struct { ReqGroupOpenAppid int32 `protobuf:"varint,4,opt"` } -func (x *D89AReqBody) GetGroupCode() int64 { - if x != nil { - return x.GroupCode - } - return 0 -} - -func (x *D89AReqBody) GetStGroupInfo() *D89AGroupinfo { - if x != nil { - return x.StGroupInfo - } - return nil -} - -func (x *D89AReqBody) GetOriginalOperatorUin() int64 { - if x != nil { - return x.OriginalOperatorUin - } - return 0 -} - -func (x *D89AReqBody) GetReqGroupOpenAppid() int32 { - if x != nil { - return x.ReqGroupOpenAppid - } - return 0 -} - type D89AGroupinfo struct { GroupExtAdmNum int32 `protobuf:"varint,1,opt"` Flag int32 `protobuf:"varint,2,opt"` @@ -246,118 +85,6 @@ type D89AGroupinfo struct { MsgLimitFrequency int32 `protobuf:"varint,38,opt"` } -func (x *D89AGroupinfo) GetGroupExtAdmNum() int32 { - if x != nil { - return x.GroupExtAdmNum - } - return 0 -} - -func (x *D89AGroupinfo) GetFlag() int32 { - if x != nil { - return x.Flag - } - return 0 -} - -func (x *D89AGroupinfo) GetIngGroupName() []byte { - if x != nil { - return x.IngGroupName - } - return nil -} - -func (x *D89AGroupinfo) GetIngGroupMemo() []byte { - if x != nil { - return x.IngGroupMemo - } - return nil -} - -func (x *D89AGroupinfo) GetIngGroupFingerMemo() []byte { - if x != nil { - return x.IngGroupFingerMemo - } - return nil -} - -func (x *D89AGroupinfo) GetIngGroupAioSkinUrl() []byte { - if x != nil { - return x.IngGroupAioSkinUrl - } - return nil -} - -func (x *D89AGroupinfo) GetIngGroupBoardSkinUrl() []byte { - if x != nil { - return x.IngGroupBoardSkinUrl - } - return nil -} - -func (x *D89AGroupinfo) GetIngGroupCoverSkinUrl() []byte { - if x != nil { - return x.IngGroupCoverSkinUrl - } - return nil -} - -func (x *D89AGroupinfo) GetGroupGrade() int32 { - if x != nil { - return x.GroupGrade - } - return 0 -} - -func (x *D89AGroupinfo) GetActiveMemberNum() int32 { - if x != nil { - return x.ActiveMemberNum - } - return 0 -} - -func (x *D89AGroupinfo) GetCertificationType() int32 { - if x != nil { - return x.CertificationType - } - return 0 -} - -func (x *D89AGroupinfo) GetIngCertificationText() []byte { - if x != nil { - return x.IngCertificationText - } - return nil -} - -func (x *D89AGroupinfo) GetIngGroupRichFingerMemo() []byte { - if x != nil { - return x.IngGroupRichFingerMemo - } - return nil -} - -func (x *D89AGroupinfo) GetStGroupNewguidelines() *D89AGroupNewGuidelinesInfo { - if x != nil { - return x.StGroupNewguidelines - } - return nil -} - -func (x *D89AGroupinfo) GetGroupFace() int32 { - if x != nil { - return x.GroupFace - } - return 0 -} - -func (x *D89AGroupinfo) GetAddOption() int32 { - if x != nil { - return x.AddOption - } - return 0 -} - func (x *D89AGroupinfo) GetShutupTime() int32 { if x != nil && x.ShutupTime != nil { return *x.ShutupTime @@ -365,191 +92,16 @@ func (x *D89AGroupinfo) GetShutupTime() int32 { return 0 } -func (x *D89AGroupinfo) GetGroupTypeFlag() int32 { - if x != nil { - return x.GroupTypeFlag - } - return 0 -} - -func (x *D89AGroupinfo) GetStringGroupTag() []byte { - if x != nil { - return x.StringGroupTag - } - return nil -} - -func (x *D89AGroupinfo) GetMsgGroupGeoInfo() *D89AGroupGeoInfo { - if x != nil { - return x.MsgGroupGeoInfo - } - return nil -} - -func (x *D89AGroupinfo) GetGroupClassExt() int32 { - if x != nil { - return x.GroupClassExt - } - return 0 -} - -func (x *D89AGroupinfo) GetIngGroupClassText() []byte { - if x != nil { - return x.IngGroupClassText - } - return nil -} - -func (x *D89AGroupinfo) GetAppPrivilegeFlag() int32 { - if x != nil { - return x.AppPrivilegeFlag - } - return 0 -} - -func (x *D89AGroupinfo) GetAppPrivilegeMask() int32 { - if x != nil { - return x.AppPrivilegeMask - } - return 0 -} - -func (x *D89AGroupinfo) GetStGroupExInfo() *D89AGroupExInfoOnly { - if x != nil { - return x.StGroupExInfo - } - return nil -} - -func (x *D89AGroupinfo) GetGroupSecLevel() int32 { - if x != nil { - return x.GroupSecLevel - } - return 0 -} - -func (x *D89AGroupinfo) GetGroupSecLevelInfo() int32 { - if x != nil { - return x.GroupSecLevelInfo - } - return 0 -} - -func (x *D89AGroupinfo) GetSubscriptionUin() int64 { - if x != nil { - return x.SubscriptionUin - } - return 0 -} - -func (x *D89AGroupinfo) GetAllowMemberInvite() int32 { - if x != nil { - return x.AllowMemberInvite - } - return 0 -} - -func (x *D89AGroupinfo) GetIngGroupQuestion() []byte { - if x != nil { - return x.IngGroupQuestion - } - return nil -} - -func (x *D89AGroupinfo) GetIngGroupAnswer() []byte { - if x != nil { - return x.IngGroupAnswer - } - return nil -} - -func (x *D89AGroupinfo) GetGroupFlagext3() int32 { - if x != nil { - return x.GroupFlagext3 - } - return 0 -} - -func (x *D89AGroupinfo) GetGroupFlagext3Mask() int32 { - if x != nil { - return x.GroupFlagext3Mask - } - return 0 -} - -func (x *D89AGroupinfo) GetGroupOpenAppid() int32 { - if x != nil { - return x.GroupOpenAppid - } - return 0 -} - -func (x *D89AGroupinfo) GetNoFingerOpenFlag() int32 { - if x != nil { - return x.NoFingerOpenFlag - } - return 0 -} - -func (x *D89AGroupinfo) GetNoCodeFingerOpenFlag() int32 { - if x != nil { - return x.NoCodeFingerOpenFlag - } - return 0 -} - -func (x *D89AGroupinfo) GetRootId() int64 { - if x != nil { - return x.RootId - } - return 0 -} - -func (x *D89AGroupinfo) GetMsgLimitFrequency() int32 { - if x != nil { - return x.MsgLimitFrequency - } - return 0 -} - type D89AGroupNewGuidelinesInfo struct { BoolEnabled bool `protobuf:"varint,1,opt"` IngContent []byte `protobuf:"bytes,2,opt"` } -func (x *D89AGroupNewGuidelinesInfo) GetBoolEnabled() bool { - if x != nil { - return x.BoolEnabled - } - return false -} - -func (x *D89AGroupNewGuidelinesInfo) GetIngContent() []byte { - if x != nil { - return x.IngContent - } - return nil -} - type D89AGroupExInfoOnly struct { TribeId int32 `protobuf:"varint,1,opt"` MoneyForAddGroup int32 `protobuf:"varint,2,opt"` } -func (x *D89AGroupExInfoOnly) GetTribeId() int32 { - if x != nil { - return x.TribeId - } - return 0 -} - -func (x *D89AGroupExInfoOnly) GetMoneyForAddGroup() int32 { - if x != nil { - return x.MoneyForAddGroup - } - return 0 -} - type D89AGroupGeoInfo struct { CityId int32 `protobuf:"varint,1,opt"` Longtitude int64 `protobuf:"varint,2,opt"` @@ -558,41 +110,6 @@ type D89AGroupGeoInfo struct { PoiId int64 `protobuf:"varint,5,opt"` } -func (x *D89AGroupGeoInfo) GetCityId() int32 { - if x != nil { - return x.CityId - } - return 0 -} - -func (x *D89AGroupGeoInfo) GetLongtitude() int64 { - if x != nil { - return x.Longtitude - } - return 0 -} - -func (x *D89AGroupGeoInfo) GetLatitude() int64 { - if x != nil { - return x.Latitude - } - return 0 -} - -func (x *D89AGroupGeoInfo) GetIngGeoContent() []byte { - if x != nil { - return x.IngGeoContent - } - return nil -} - -func (x *D89AGroupGeoInfo) GetPoiId() int64 { - if x != nil { - return x.PoiId - } - return 0 -} - type DED3ReqBody struct { ToUin int64 `protobuf:"varint,1,opt"` GroupCode int64 `protobuf:"varint,2,opt"` @@ -600,38 +117,3 @@ type DED3ReqBody struct { MsgRand int32 `protobuf:"varint,4,opt"` AioUin int64 `protobuf:"varint,5,opt"` } - -func (x *DED3ReqBody) GetToUin() int64 { - if x != nil { - return x.ToUin - } - return 0 -} - -func (x *DED3ReqBody) GetGroupCode() int64 { - if x != nil { - return x.GroupCode - } - return 0 -} - -func (x *DED3ReqBody) GetMsgSeq() int32 { - if x != nil { - return x.MsgSeq - } - return 0 -} - -func (x *DED3ReqBody) GetMsgRand() int32 { - if x != nil { - return x.MsgRand - } - return 0 -} - -func (x *DED3ReqBody) GetAioUin() int64 { - if x != nil { - return x.AioUin - } - return 0 -} diff --git a/client/pb/oidb/oidb.proto b/client/pb/oidb/oidb.proto index d8093feb..a95704fe 100644 --- a/client/pb/oidb/oidb.proto +++ b/client/pb/oidb/oidb.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message OIDBSSOPkg { int32 command = 1; diff --git a/client/pb/oidb/oidb0x5eb.pb.go b/client/pb/oidb/oidb0x5eb.pb.go index 061e40f6..d25e6924 100644 --- a/client/pb/oidb/oidb0x5eb.pb.go +++ b/client/pb/oidb/oidb0x5eb.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0x5eb.proto +// source: pb/oidb/oidb0x5eb.proto package oidb @@ -86,13 +86,6 @@ type D5EBReqBody struct { ReqApolloStatus *int32 `protobuf:"varint,42980,opt"` } -func (x *D5EBReqBody) GetUins() []uint64 { - if x != nil { - return x.Uins - } - return nil -} - func (x *D5EBReqBody) GetMaxPackageSize() uint32 { if x != nil && x.MaxPackageSize != nil { return *x.MaxPackageSize @@ -100,13 +93,6 @@ func (x *D5EBReqBody) GetMaxPackageSize() uint32 { return 0 } -func (x *D5EBReqBody) GetOpenid() [][]byte { - if x != nil { - return x.Openid - } - return nil -} - func (x *D5EBReqBody) GetAppid() uint32 { if x != nil && x.Appid != nil { return *x.Appid @@ -651,20 +637,6 @@ type D5EBRspBody struct { UnfinishedUins []int64 `protobuf:"varint,12,rep"` } -func (x *D5EBRspBody) GetUinData() []*UdcUinData { - if x != nil { - return x.UinData - } - return nil -} - -func (x *D5EBRspBody) GetUnfinishedUins() []int64 { - if x != nil { - return x.UnfinishedUins - } - return nil -} - type UdcUinData struct { Uin *int64 `protobuf:"varint,1,opt"` Openid []byte `protobuf:"bytes,4,opt"` @@ -753,34 +725,6 @@ func (x *UdcUinData) GetUin() int64 { return 0 } -func (x *UdcUinData) GetOpenid() []byte { - if x != nil { - return x.Openid - } - return nil -} - -func (x *UdcUinData) GetNick() []byte { - if x != nil { - return x.Nick - } - return nil -} - -func (x *UdcUinData) GetCountry() []byte { - if x != nil { - return x.Country - } - return nil -} - -func (x *UdcUinData) GetProvince() []byte { - if x != nil { - return x.Province - } - return nil -} - func (x *UdcUinData) GetGender() int32 { if x != nil && x.Gender != nil { return *x.Gender @@ -802,13 +746,6 @@ func (x *UdcUinData) GetFaceId() int32 { return 0 } -func (x *UdcUinData) GetCity() []byte { - if x != nil { - return x.City - } - return nil -} - func (x *UdcUinData) GetConstellation() int32 { if x != nil && x.Constellation != nil { return *x.Constellation @@ -823,27 +760,6 @@ func (x *UdcUinData) GetCommonPlace1() int32 { return 0 } -func (x *UdcUinData) GetMss3Bitmapextra() []byte { - if x != nil { - return x.Mss3Bitmapextra - } - return nil -} - -func (x *UdcUinData) GetBirthday() []byte { - if x != nil { - return x.Birthday - } - return nil -} - -func (x *UdcUinData) GetCityId() []byte { - if x != nil { - return x.CityId - } - return nil -} - func (x *UdcUinData) GetLang1() int32 { if x != nil && x.Lang1 != nil { return *x.Lang1 @@ -893,20 +809,6 @@ func (x *UdcUinData) GetBubbleId() int32 { return 0 } -func (x *UdcUinData) GetMss2Identity() []byte { - if x != nil { - return x.Mss2Identity - } - return nil -} - -func (x *UdcUinData) GetMss1Service() []byte { - if x != nil { - return x.Mss1Service - } - return nil -} - func (x *UdcUinData) GetLflag() int32 { if x != nil && x.Lflag != nil { return *x.Lflag @@ -921,34 +823,6 @@ func (x *UdcUinData) GetExtFlag() int32 { return 0 } -func (x *UdcUinData) GetBasicSvrFlag() []byte { - if x != nil { - return x.BasicSvrFlag - } - return nil -} - -func (x *UdcUinData) GetBasicCliFlag() []byte { - if x != nil { - return x.BasicCliFlag - } - return nil -} - -func (x *UdcUinData) GetFullBirthday() []byte { - if x != nil { - return x.FullBirthday - } - return nil -} - -func (x *UdcUinData) GetFullAge() []byte { - if x != nil { - return x.FullAge - } - return nil -} - func (x *UdcUinData) GetSimpleUpdateTime() int32 { if x != nil && x.SimpleUpdateTime != nil { return *x.SimpleUpdateTime @@ -1005,27 +879,6 @@ func (x *UdcUinData) GetFaceAddonId() int64 { return 0 } -func (x *UdcUinData) GetMusicGene() []byte { - if x != nil { - return x.MusicGene - } - return nil -} - -func (x *UdcUinData) GetStrangerNick() []byte { - if x != nil { - return x.StrangerNick - } - return nil -} - -func (x *UdcUinData) GetStrangerDeclare() []byte { - if x != nil { - return x.StrangerDeclare - } - return nil -} - func (x *UdcUinData) GetLoveStatus() int32 { if x != nil && x.LoveStatus != nil { return *x.LoveStatus diff --git a/client/pb/oidb/oidb0x5eb.proto b/client/pb/oidb/oidb0x5eb.proto index 5a3e8a6b..6703456f 100644 --- a/client/pb/oidb/oidb0x5eb.proto +++ b/client/pb/oidb/oidb0x5eb.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message D5EBReqBody { repeated uint64 uins = 1; diff --git a/client/pb/oidb/oidb0x6d6.pb.go b/client/pb/oidb/oidb0x6d6.pb.go index b59783b6..624aef21 100644 --- a/client/pb/oidb/oidb0x6d6.pb.go +++ b/client/pb/oidb/oidb0x6d6.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0x6d6.proto +// source: pb/oidb/oidb0x6d6.proto package oidb @@ -175,48 +175,6 @@ func (x *DownloadFileRspBody) GetDownloadIp() string { return "" } -func (x *DownloadFileRspBody) GetDownloadDns() []byte { - if x != nil { - return x.DownloadDns - } - return nil -} - -func (x *DownloadFileRspBody) GetDownloadUrl() []byte { - if x != nil { - return x.DownloadUrl - } - return nil -} - -func (x *DownloadFileRspBody) GetSha() []byte { - if x != nil { - return x.Sha - } - return nil -} - -func (x *DownloadFileRspBody) GetSha3() []byte { - if x != nil { - return x.Sha3 - } - return nil -} - -func (x *DownloadFileRspBody) GetMd5() []byte { - if x != nil { - return x.Md5 - } - return nil -} - -func (x *DownloadFileRspBody) GetCookieVal() []byte { - if x != nil { - return x.CookieVal - } - return nil -} - func (x *DownloadFileRspBody) GetSaveFileName() string { if x != nil && x.SaveFileName != nil { return *x.SaveFileName @@ -404,48 +362,6 @@ type D6D6ReqBody struct { MoveFileReq *MoveFileReqBody `protobuf:"bytes,6,opt"` } -func (x *D6D6ReqBody) GetUploadFileReq() *UploadFileReqBody { - if x != nil { - return x.UploadFileReq - } - return nil -} - -func (x *D6D6ReqBody) GetResendFileReq() *ResendReqBody { - if x != nil { - return x.ResendFileReq - } - return nil -} - -func (x *D6D6ReqBody) GetDownloadFileReq() *DownloadFileReqBody { - if x != nil { - return x.DownloadFileReq - } - return nil -} - -func (x *D6D6ReqBody) GetDeleteFileReq() *DeleteFileReqBody { - if x != nil { - return x.DeleteFileReq - } - return nil -} - -func (x *D6D6ReqBody) GetRenameFileReq() *RenameFileReqBody { - if x != nil { - return x.RenameFileReq - } - return nil -} - -func (x *D6D6ReqBody) GetMoveFileReq() *MoveFileReqBody { - if x != nil { - return x.MoveFileReq - } - return nil -} - type ResendReqBody struct { GroupCode *int64 `protobuf:"varint,1,opt"` AppId *int32 `protobuf:"varint,2,opt"` @@ -482,13 +398,6 @@ func (x *ResendReqBody) GetFileId() string { return "" } -func (x *ResendReqBody) GetSha() []byte { - if x != nil { - return x.Sha - } - return nil -} - type ResendRspBody struct { RetCode *int32 `protobuf:"varint,1,opt"` RetMsg *string `protobuf:"bytes,2,opt"` @@ -526,20 +435,6 @@ func (x *ResendRspBody) GetUploadIp() string { return "" } -func (x *ResendRspBody) GetFileKey() []byte { - if x != nil { - return x.FileKey - } - return nil -} - -func (x *ResendRspBody) GetCheckKey() []byte { - if x != nil { - return x.CheckKey - } - return nil -} - type D6D6RspBody struct { UploadFileRsp *UploadFileRspBody `protobuf:"bytes,1,opt"` ResendFileRsp *ResendRspBody `protobuf:"bytes,2,opt"` @@ -549,48 +444,6 @@ type D6D6RspBody struct { MoveFileRsp *MoveFileRspBody `protobuf:"bytes,6,opt"` } -func (x *D6D6RspBody) GetUploadFileRsp() *UploadFileRspBody { - if x != nil { - return x.UploadFileRsp - } - return nil -} - -func (x *D6D6RspBody) GetResendFileRsp() *ResendRspBody { - if x != nil { - return x.ResendFileRsp - } - return nil -} - -func (x *D6D6RspBody) GetDownloadFileRsp() *DownloadFileRspBody { - if x != nil { - return x.DownloadFileRsp - } - return nil -} - -func (x *D6D6RspBody) GetDeleteFileRsp() *DeleteFileRspBody { - if x != nil { - return x.DeleteFileRsp - } - return nil -} - -func (x *D6D6RspBody) GetRenameFileRsp() *RenameFileRspBody { - if x != nil { - return x.RenameFileRsp - } - return nil -} - -func (x *D6D6RspBody) GetMoveFileRsp() *MoveFileRspBody { - if x != nil { - return x.MoveFileRsp - } - return nil -} - type UploadFileReqBody struct { GroupCode *int64 `protobuf:"varint,1,opt"` AppId *int32 `protobuf:"varint,2,opt"` @@ -662,27 +515,6 @@ func (x *UploadFileReqBody) GetInt64FileSize() int64 { return 0 } -func (x *UploadFileReqBody) GetSha() []byte { - if x != nil { - return x.Sha - } - return nil -} - -func (x *UploadFileReqBody) GetSha3() []byte { - if x != nil { - return x.Sha3 - } - return nil -} - -func (x *UploadFileReqBody) GetMd5() []byte { - if x != nil { - return x.Md5 - } - return nil -} - func (x *UploadFileReqBody) GetSupportMultiUpload() bool { if x != nil && x.SupportMultiUpload != nil { return *x.SupportMultiUpload @@ -755,20 +587,6 @@ func (x *UploadFileRspBody) GetFileId() string { return "" } -func (x *UploadFileRspBody) GetFileKey() []byte { - if x != nil { - return x.FileKey - } - return nil -} - -func (x *UploadFileRspBody) GetCheckKey() []byte { - if x != nil { - return x.CheckKey - } - return nil -} - func (x *UploadFileRspBody) GetBoolFileExist() bool { if x != nil && x.BoolFileExist != nil { return *x.BoolFileExist @@ -776,20 +594,6 @@ func (x *UploadFileRspBody) GetBoolFileExist() bool { return false } -func (x *UploadFileRspBody) GetUploadIpLanV4() []string { - if x != nil { - return x.UploadIpLanV4 - } - return nil -} - -func (x *UploadFileRspBody) GetUploadIpLanV6() []string { - if x != nil { - return x.UploadIpLanV6 - } - return nil -} - func (x *UploadFileRspBody) GetUploadPort() int32 { if x != nil && x.UploadPort != nil { return *x.UploadPort diff --git a/client/pb/oidb/oidb0x6d6.proto b/client/pb/oidb/oidb0x6d6.proto index ed039a88..29efb2e2 100644 --- a/client/pb/oidb/oidb0x6d6.proto +++ b/client/pb/oidb/oidb0x6d6.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message DeleteFileReqBody { optional int64 groupCode = 1; diff --git a/client/pb/oidb/oidb0x6d7.pb.go b/client/pb/oidb/oidb0x6d7.pb.go index c4f4e8c9..b438901b 100644 --- a/client/pb/oidb/oidb0x6d7.pb.go +++ b/client/pb/oidb/oidb0x6d7.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0x6d7.proto +// source: pb/oidb/oidb0x6d7.proto package oidb @@ -258,65 +258,9 @@ type D6D7ReqBody struct { MoveFolderReq *MoveFolderReqBody `protobuf:"bytes,4,opt"` } -func (x *D6D7ReqBody) GetCreateFolderReq() *CreateFolderReqBody { - if x != nil { - return x.CreateFolderReq - } - return nil -} - -func (x *D6D7ReqBody) GetDeleteFolderReq() *DeleteFolderReqBody { - if x != nil { - return x.DeleteFolderReq - } - return nil -} - -func (x *D6D7ReqBody) GetRenameFolderReq() *RenameFolderReqBody { - if x != nil { - return x.RenameFolderReq - } - return nil -} - -func (x *D6D7ReqBody) GetMoveFolderReq() *MoveFolderReqBody { - if x != nil { - return x.MoveFolderReq - } - return nil -} - type D6D7RspBody struct { CreateFolderRsp *CreateFolderRspBody `protobuf:"bytes,1,opt"` DeleteFolderRsp *DeleteFolderRspBody `protobuf:"bytes,2,opt"` RenameFolderRsp *RenameFolderRspBody `protobuf:"bytes,3,opt"` MoveFolderRsp *MoveFolderRspBody `protobuf:"bytes,4,opt"` } - -func (x *D6D7RspBody) GetCreateFolderRsp() *CreateFolderRspBody { - if x != nil { - return x.CreateFolderRsp - } - return nil -} - -func (x *D6D7RspBody) GetDeleteFolderRsp() *DeleteFolderRspBody { - if x != nil { - return x.DeleteFolderRsp - } - return nil -} - -func (x *D6D7RspBody) GetRenameFolderRsp() *RenameFolderRspBody { - if x != nil { - return x.RenameFolderRsp - } - return nil -} - -func (x *D6D7RspBody) GetMoveFolderRsp() *MoveFolderRspBody { - if x != nil { - return x.MoveFolderRsp - } - return nil -} diff --git a/client/pb/oidb/oidb0x6d7.proto b/client/pb/oidb/oidb0x6d7.proto index d930787c..f3b4f6e8 100644 --- a/client/pb/oidb/oidb0x6d7.proto +++ b/client/pb/oidb/oidb0x6d7.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message CreateFolderReqBody { optional uint64 groupCode = 1; diff --git a/client/pb/oidb/oidb0x6d8.pb.go b/client/pb/oidb/oidb0x6d8.pb.go index 26b0adf3..12d0d57e 100644 --- a/client/pb/oidb/oidb0x6d8.pb.go +++ b/client/pb/oidb/oidb0x6d8.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0x6d8.proto +// source: pb/oidb/oidb0x6d8.proto package oidb @@ -10,34 +10,6 @@ type D6D8ReqBody struct { GroupSpaceReq *GetSpaceReqBody `protobuf:"bytes,4,opt"` } -func (x *D6D8ReqBody) GetFileInfoReq() *GetFileInfoReqBody { - if x != nil { - return x.FileInfoReq - } - return nil -} - -func (x *D6D8ReqBody) GetFileListInfoReq() *GetFileListReqBody { - if x != nil { - return x.FileListInfoReq - } - return nil -} - -func (x *D6D8ReqBody) GetGroupFileCountReq() *GetFileCountReqBody { - if x != nil { - return x.GroupFileCountReq - } - return nil -} - -func (x *D6D8ReqBody) GetGroupSpaceReq() *GetSpaceReqBody { - if x != nil { - return x.GroupSpaceReq - } - return nil -} - type D6D8RspBody struct { FileInfoRsp *GetFileInfoRspBody `protobuf:"bytes,1,opt"` FileListInfoRsp *GetFileListRspBody `protobuf:"bytes,2,opt"` @@ -45,34 +17,6 @@ type D6D8RspBody struct { GroupSpaceRsp *GetSpaceRspBody `protobuf:"bytes,4,opt"` } -func (x *D6D8RspBody) GetFileInfoRsp() *GetFileInfoRspBody { - if x != nil { - return x.FileInfoRsp - } - return nil -} - -func (x *D6D8RspBody) GetFileListInfoRsp() *GetFileListRspBody { - if x != nil { - return x.FileListInfoRsp - } - return nil -} - -func (x *D6D8RspBody) GetFileCountRsp() *GetFileCountRspBody { - if x != nil { - return x.FileCountRsp - } - return nil -} - -func (x *D6D8RspBody) GetGroupSpaceRsp() *GetSpaceRspBody { - if x != nil { - return x.GroupSpaceRsp - } - return nil -} - type GetFileInfoReqBody struct { GroupCode *uint64 `protobuf:"varint,1,opt"` AppId *uint32 `protobuf:"varint,2,opt"` @@ -144,13 +88,6 @@ func (x *GetFileInfoRspBody) GetClientWording() string { return "" } -func (x *GetFileInfoRspBody) GetFileInfo() *GroupFileInfo { - if x != nil { - return x.FileInfo - } - return nil -} - type GetFileListRspBody struct { RetCode *int32 `protobuf:"varint,1,opt"` RetMsg *string `protobuf:"bytes,2,opt"` @@ -196,20 +133,6 @@ func (x *GetFileListRspBody) GetIsEnd() bool { return false } -func (x *GetFileListRspBody) GetItemList() []*GetFileListRspBody_Item { - if x != nil { - return x.ItemList - } - return nil -} - -func (x *GetFileListRspBody) GetMaxTimestamp() *FileTimeStamp { - if x != nil { - return x.MaxTimestamp - } - return nil -} - func (x *GetFileListRspBody) GetAllFileCount() uint32 { if x != nil && x.AllFileCount != nil { return *x.AllFileCount @@ -245,13 +168,6 @@ func (x *GetFileListRspBody) GetNextIndex() uint32 { return 0 } -func (x *GetFileListRspBody) GetContext() []byte { - if x != nil { - return x.Context - } - return nil -} - func (x *GetFileListRspBody) GetRole() uint32 { if x != nil && x.Role != nil { return *x.Role @@ -348,27 +264,6 @@ func (x *GroupFileInfo) GetDownloadTimes() uint32 { return 0 } -func (x *GroupFileInfo) GetSha() []byte { - if x != nil { - return x.Sha - } - return nil -} - -func (x *GroupFileInfo) GetSha3() []byte { - if x != nil { - return x.Sha3 - } - return nil -} - -func (x *GroupFileInfo) GetMd5() []byte { - if x != nil { - return x.Md5 - } - return nil -} - func (x *GroupFileInfo) GetLocalPath() string { if x != nil && x.LocalPath != nil { return *x.LocalPath @@ -503,13 +398,6 @@ func (x *GetFileListReqBody) GetFolderId() string { return "" } -func (x *GetFileListReqBody) GetStartTimestamp() *FileTimeStamp { - if x != nil { - return x.StartTimestamp - } - return nil -} - func (x *GetFileListReqBody) GetFileCount() uint32 { if x != nil && x.FileCount != nil { return *x.FileCount @@ -517,13 +405,6 @@ func (x *GetFileListReqBody) GetFileCount() uint32 { return 0 } -func (x *GetFileListReqBody) GetMaxTimestamp() *FileTimeStamp { - if x != nil { - return x.MaxTimestamp - } - return nil -} - func (x *GetFileListReqBody) GetAllFileCount() uint32 { if x != nil && x.AllFileCount != nil { return *x.AllFileCount @@ -573,13 +454,6 @@ func (x *GetFileListReqBody) GetStartIndex() uint32 { return 0 } -func (x *GetFileListReqBody) GetContext() []byte { - if x != nil { - return x.Context - } - return nil -} - func (x *GetFileListReqBody) GetClientVersion() uint32 { if x != nil && x.ClientVersion != nil { return *x.ClientVersion @@ -766,17 +640,3 @@ func (x *GetFileListRspBody_Item) GetType() uint32 { } return 0 } - -func (x *GetFileListRspBody_Item) GetFolderInfo() *GroupFolderInfo { - if x != nil { - return x.FolderInfo - } - return nil -} - -func (x *GetFileListRspBody_Item) GetFileInfo() *GroupFileInfo { - if x != nil { - return x.FileInfo - } - return nil -} diff --git a/client/pb/oidb/oidb0x6d8.proto b/client/pb/oidb/oidb0x6d8.proto index fabcb014..3251d0d9 100644 --- a/client/pb/oidb/oidb0x6d8.proto +++ b/client/pb/oidb/oidb0x6d8.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message D6D8ReqBody { optional GetFileInfoReqBody fileInfoReq = 1; diff --git a/client/pb/oidb/oidb0x6d9.pb.go b/client/pb/oidb/oidb0x6d9.pb.go index 1b709780..170953fe 100644 --- a/client/pb/oidb/oidb0x6d9.pb.go +++ b/client/pb/oidb/oidb0x6d9.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0x6d9.proto +// source: pb/oidb/oidb0x6d9.proto package oidb @@ -32,13 +32,6 @@ func (x *GroupFileFeedsInfo) GetMsgRandom() uint32 { return 0 } -func (x *GroupFileFeedsInfo) GetExt() []byte { - if x != nil { - return x.Ext - } - return nil -} - func (x *GroupFileFeedsInfo) GetFeedFlag() uint32 { if x != nil && x.FeedFlag != nil { return *x.FeedFlag @@ -82,20 +75,6 @@ func (x *CopyFromReqBody) GetSrcBusId() uint32 { return 0 } -func (x *CopyFromReqBody) GetSrcParentFolder() []byte { - if x != nil { - return x.SrcParentFolder - } - return nil -} - -func (x *CopyFromReqBody) GetSrcFilePath() []byte { - if x != nil { - return x.SrcFilePath - } - return nil -} - func (x *CopyFromReqBody) GetDstBusId() uint32 { if x != nil && x.DstBusId != nil { return *x.DstBusId @@ -103,13 +82,6 @@ func (x *CopyFromReqBody) GetDstBusId() uint32 { return 0 } -func (x *CopyFromReqBody) GetDstFolderId() []byte { - if x != nil { - return x.DstFolderId - } - return nil -} - func (x *CopyFromReqBody) GetFileSize() uint64 { if x != nil && x.FileSize != nil { return *x.FileSize @@ -138,13 +110,6 @@ func (x *CopyFromReqBody) GetSrcUin() uint64 { return 0 } -func (x *CopyFromReqBody) GetMd5() []byte { - if x != nil { - return x.Md5 - } - return nil -} - type CopyFromRspBody struct { RetCode *int32 `protobuf:"varint,1,opt"` RetMsg *string `protobuf:"bytes,2,opt"` @@ -174,13 +139,6 @@ func (x *CopyFromRspBody) GetClientWording() string { return "" } -func (x *CopyFromRspBody) GetSaveFilePath() []byte { - if x != nil { - return x.SaveFilePath - } - return nil -} - func (x *CopyFromRspBody) GetBusId() uint32 { if x != nil && x.BusId != nil { return *x.BusId @@ -251,27 +209,6 @@ func (x *CopyToReqBody) GetNewFileName() string { return "" } -func (x *CopyToReqBody) GetTimCloudPdirKey() []byte { - if x != nil { - return x.TimCloudPdirKey - } - return nil -} - -func (x *CopyToReqBody) GetTimCloudPpdirKey() []byte { - if x != nil { - return x.TimCloudPpdirKey - } - return nil -} - -func (x *CopyToReqBody) GetTimCloudExtensionInfo() []byte { - if x != nil { - return x.TimCloudExtensionInfo - } - return nil -} - func (x *CopyToReqBody) GetTimFileExistOption() uint32 { if x != nil && x.TimFileExistOption != nil { return *x.TimFileExistOption @@ -351,13 +288,6 @@ func (x *FeedsReqBody) GetAppId() uint32 { return 0 } -func (x *FeedsReqBody) GetFeedsInfoList() []*GroupFileFeedsInfo { - if x != nil { - return x.FeedsInfoList - } - return nil -} - func (x *FeedsReqBody) GetMultiSendSeq() uint32 { if x != nil && x.MultiSendSeq != nil { return *x.MultiSendSeq @@ -408,34 +338,6 @@ type D6D9ReqBody struct { FeedsInfoReq *FeedsReqBody `protobuf:"bytes,5,opt"` } -func (x *D6D9ReqBody) GetTransFileReq() *TransFileReqBody { - if x != nil { - return x.TransFileReq - } - return nil -} - -func (x *D6D9ReqBody) GetCopyFromReq() *CopyFromReqBody { - if x != nil { - return x.CopyFromReq - } - return nil -} - -func (x *D6D9ReqBody) GetCopyToReq() *CopyToReqBody { - if x != nil { - return x.CopyToReq - } - return nil -} - -func (x *D6D9ReqBody) GetFeedsInfoReq() *FeedsReqBody { - if x != nil { - return x.FeedsInfoReq - } - return nil -} - type D6D9RspBody struct { TransFileRsp *TransFileRspBody `protobuf:"bytes,1,opt"` CopyFromRsp *CopyFromRspBody `protobuf:"bytes,2,opt"` @@ -443,34 +345,6 @@ type D6D9RspBody struct { FeedsInfoRsp *FeedsRspBody `protobuf:"bytes,5,opt"` } -func (x *D6D9RspBody) GetTransFileRsp() *TransFileRspBody { - if x != nil { - return x.TransFileRsp - } - return nil -} - -func (x *D6D9RspBody) GetCopyFromRsp() *CopyFromRspBody { - if x != nil { - return x.CopyFromRsp - } - return nil -} - -func (x *D6D9RspBody) GetCopyToRsp() *CopyToRspBody { - if x != nil { - return x.CopyToRsp - } - return nil -} - -func (x *D6D9RspBody) GetFeedsInfoRsp() *FeedsRspBody { - if x != nil { - return x.FeedsInfoRsp - } - return nil -} - type TransFileReqBody struct { GroupCode *uint64 `protobuf:"varint,1,opt"` AppId *uint32 `protobuf:"varint,2,opt"` diff --git a/client/pb/oidb/oidb0x6d9.proto b/client/pb/oidb/oidb0x6d9.proto index 8412ba20..4f5942db 100644 --- a/client/pb/oidb/oidb0x6d9.proto +++ b/client/pb/oidb/oidb0x6d9.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message GroupFileFeedsInfo { optional uint32 busId = 1; diff --git a/client/pb/oidb/oidb0x769.pb.go b/client/pb/oidb/oidb0x769.pb.go index 568207e8..d2fa9dc3 100644 --- a/client/pb/oidb/oidb0x769.pb.go +++ b/client/pb/oidb/oidb0x769.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0x769.proto +// source: pb/oidb/oidb0x769.proto package oidb @@ -96,13 +96,6 @@ func (x *Content) GetCompress() uint32 { return 0 } -func (x *Content) GetContent() []byte { - if x != nil { - return x.Content - } - return nil -} - type D769DeviceInfo struct { Brand *string `protobuf:"bytes,1,opt"` Model *string `protobuf:"bytes,2,opt"` @@ -128,48 +121,6 @@ func (x *D769DeviceInfo) GetModel() string { return "" } -func (x *D769DeviceInfo) GetOs() *C41219OS { - if x != nil { - return x.Os - } - return nil -} - -func (x *D769DeviceInfo) GetCpu() *CPU { - if x != nil { - return x.Cpu - } - return nil -} - -func (x *D769DeviceInfo) GetMemory() *Memory { - if x != nil { - return x.Memory - } - return nil -} - -func (x *D769DeviceInfo) GetStorage() *Storage { - if x != nil { - return x.Storage - } - return nil -} - -func (x *D769DeviceInfo) GetScreen() *Screen { - if x != nil { - return x.Screen - } - return nil -} - -func (x *D769DeviceInfo) GetCamera() *Camera { - if x != nil { - return x.Camera - } - return nil -} - type Memory struct { Total *uint64 `protobuf:"varint,1,opt"` Process *uint64 `protobuf:"varint,2,opt"` @@ -287,13 +238,6 @@ func (x *QueryUinPackageUsageRsp) GetProportion() uint32 { return 0 } -func (x *QueryUinPackageUsageRsp) GetUinPackageUsedList() []*UinPackageUsedInfo { - if x != nil { - return x.UinPackageUsedList - } - return nil -} - type D769ReqBody struct { ConfigList []*D769ConfigSeq `protobuf:"bytes,1,rep"` DeviceInfo *D769DeviceInfo `protobuf:"bytes,2,opt"` @@ -304,20 +248,6 @@ type D769ReqBody struct { QueryUinPackageUsageReq *QueryUinPackageUsageReq `protobuf:"bytes,101,opt"` } -func (x *D769ReqBody) GetConfigList() []*D769ConfigSeq { - if x != nil { - return x.ConfigList - } - return nil -} - -func (x *D769ReqBody) GetDeviceInfo() *D769DeviceInfo { - if x != nil { - return x.DeviceInfo - } - return nil -} - func (x *D769ReqBody) GetInfo() string { if x != nil && x.Info != nil { return *x.Info @@ -346,13 +276,6 @@ func (x *D769ReqBody) GetReqDebugMsg() int32 { return 0 } -func (x *D769ReqBody) GetQueryUinPackageUsageReq() *QueryUinPackageUsageReq { - if x != nil { - return x.QueryUinPackageUsageReq - } - return nil -} - type D769RspBody struct { Result *uint32 `protobuf:"varint,1,opt"` ConfigList []*D769ConfigSeq `protobuf:"bytes,2,rep"` @@ -366,20 +289,6 @@ func (x *D769RspBody) GetResult() uint32 { return 0 } -func (x *D769RspBody) GetConfigList() []*D769ConfigSeq { - if x != nil { - return x.ConfigList - } - return nil -} - -func (x *D769RspBody) GetQueryUinPackageUsageRsp() *QueryUinPackageUsageRsp { - if x != nil { - return x.QueryUinPackageUsageRsp - } - return nil -} - type Screen struct { Model *string `protobuf:"bytes,1,opt"` Width *uint32 `protobuf:"varint,2,opt"` diff --git a/client/pb/oidb/oidb0x769.proto b/client/pb/oidb/oidb0x769.proto index 39ef977c..67e5b325 100644 --- a/client/pb/oidb/oidb0x769.proto +++ b/client/pb/oidb/oidb0x769.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message CPU { optional string model = 1; diff --git a/client/pb/oidb/oidb0x88d.pb.go b/client/pb/oidb/oidb0x88d.pb.go index c841c202..9565a110 100644 --- a/client/pb/oidb/oidb0x88d.pb.go +++ b/client/pb/oidb/oidb0x88d.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0x88d.proto +// source: pb/oidb/oidb0x88d.proto package oidb @@ -29,13 +29,6 @@ func (x *D88DGroupHeadPortrait) GetPicCount() uint32 { return 0 } -func (x *D88DGroupHeadPortrait) GetMsgInfo() []*D88DGroupHeadPortraitInfo { - if x != nil { - return x.MsgInfo - } - return nil -} - func (x *D88DGroupHeadPortrait) GetDefaultId() uint32 { if x != nil && x.DefaultId != nil { return *x.DefaultId @@ -50,13 +43,6 @@ func (x *D88DGroupHeadPortrait) GetVerifyingPicCnt() uint32 { return 0 } -func (x *D88DGroupHeadPortrait) GetMsgVerifyingPicInfo() []*D88DGroupHeadPortraitInfo { - if x != nil { - return x.MsgVerifyingPicInfo - } - return nil -} - type D88DGroupExInfoOnly struct { TribeId *uint32 `protobuf:"varint,1,opt"` MoneyForAddGroup *uint32 `protobuf:"varint,2,opt"` @@ -260,41 +246,6 @@ func (x *D88DGroupInfo) GetGroupRoamingTime() uint32 { return 0 } -func (x *D88DGroupInfo) GetGroupName() []byte { - if x != nil { - return x.GroupName - } - return nil -} - -func (x *D88DGroupInfo) GetGroupMemo() []byte { - if x != nil { - return x.GroupMemo - } - return nil -} - -func (x *D88DGroupInfo) GetGroupFingerMemo() []byte { - if x != nil { - return x.GroupFingerMemo - } - return nil -} - -func (x *D88DGroupInfo) GetGroupClassText() []byte { - if x != nil { - return x.GroupClassText - } - return nil -} - -func (x *D88DGroupInfo) GetGroupAllianceCode() []uint32 { - if x != nil { - return x.GroupAllianceCode - } - return nil -} - func (x *D88DGroupInfo) GetGroupExtraAadmNum() uint32 { if x != nil && x.GroupExtraAadmNum != nil { return *x.GroupExtraAadmNum @@ -323,20 +274,6 @@ func (x *D88DGroupInfo) GetGroupLastMsgTime() uint32 { return 0 } -func (x *D88DGroupInfo) GetGroupQuestion() []byte { - if x != nil { - return x.GroupQuestion - } - return nil -} - -func (x *D88DGroupInfo) GetGroupAnswer() []byte { - if x != nil { - return x.GroupAnswer - } - return nil -} - func (x *D88DGroupInfo) GetGroupVisitorMaxNum() uint32 { if x != nil && x.GroupVisitorMaxNum != nil { return *x.GroupVisitorMaxNum @@ -379,20 +316,6 @@ func (x *D88DGroupInfo) GetGroupBoardSkinTimestamp() uint32 { return 0 } -func (x *D88DGroupInfo) GetGroupAioSkinUrl() []byte { - if x != nil { - return x.GroupAioSkinUrl - } - return nil -} - -func (x *D88DGroupInfo) GetGroupBoardSkinUrl() []byte { - if x != nil { - return x.GroupBoardSkinUrl - } - return nil -} - func (x *D88DGroupInfo) GetGroupCoverSkinTimestamp() uint32 { if x != nil && x.GroupCoverSkinTimestamp != nil { return *x.GroupCoverSkinTimestamp @@ -400,13 +323,6 @@ func (x *D88DGroupInfo) GetGroupCoverSkinTimestamp() uint32 { return 0 } -func (x *D88DGroupInfo) GetGroupCoverSkinUrl() []byte { - if x != nil { - return x.GroupCoverSkinUrl - } - return nil -} - func (x *D88DGroupInfo) GetGroupGrade() uint32 { if x != nil && x.GroupGrade != nil { return *x.GroupGrade @@ -428,34 +344,6 @@ func (x *D88DGroupInfo) GetCertificationType() uint32 { return 0 } -func (x *D88DGroupInfo) GetCertificationText() []byte { - if x != nil { - return x.CertificationText - } - return nil -} - -func (x *D88DGroupInfo) GetGroupRichFingerMemo() []byte { - if x != nil { - return x.GroupRichFingerMemo - } - return nil -} - -func (x *D88DGroupInfo) GetTagRecord() []*D88DTagRecord { - if x != nil { - return x.TagRecord - } - return nil -} - -func (x *D88DGroupInfo) GetGroupGeoInfo() *D88DGroupGeoInfo { - if x != nil { - return x.GroupGeoInfo - } - return nil -} - func (x *D88DGroupInfo) GetHeadPortraitSeq() uint32 { if x != nil && x.HeadPortraitSeq != nil { return *x.HeadPortraitSeq @@ -463,13 +351,6 @@ func (x *D88DGroupInfo) GetHeadPortraitSeq() uint32 { return 0 } -func (x *D88DGroupInfo) GetMsgHeadPortrait() *D88DGroupHeadPortrait { - if x != nil { - return x.MsgHeadPortrait - } - return nil -} - func (x *D88DGroupInfo) GetShutupTimestamp() uint32 { if x != nil && x.ShutupTimestamp != nil { return *x.ShutupTimestamp @@ -554,13 +435,6 @@ func (x *D88DGroupInfo) GetAppPrivilegeFlag() uint32 { return 0 } -func (x *D88DGroupInfo) GetStGroupExInfo() *D88DGroupExInfoOnly { - if x != nil { - return x.StGroupExInfo - } - return nil -} - func (x *D88DGroupInfo) GetGroupSecLevel() uint32 { if x != nil && x.GroupSecLevel != nil { return *x.GroupSecLevel @@ -582,13 +456,6 @@ func (x *D88DGroupInfo) GetCmduinPrivilege() uint32 { return 0 } -func (x *D88DGroupInfo) GetPoidInfo() []byte { - if x != nil { - return x.PoidInfo - } - return nil -} - func (x *D88DGroupInfo) GetCmduinFlagEx2() uint32 { if x != nil && x.CmduinFlagEx2 != nil { return *x.CmduinFlagEx2 @@ -756,13 +623,6 @@ func (x *ReqGroupInfo) GetGroupCode() uint64 { return 0 } -func (x *ReqGroupInfo) GetStgroupinfo() *D88DGroupInfo { - if x != nil { - return x.Stgroupinfo - } - return nil -} - func (x *ReqGroupInfo) GetLastGetGroupNameTime() uint32 { if x != nil && x.LastGetGroupNameTime != nil { return *x.LastGetGroupNameTime @@ -783,13 +643,6 @@ func (x *D88DReqBody) GetAppId() uint32 { return 0 } -func (x *D88DReqBody) GetReqGroupInfo() []*ReqGroupInfo { - if x != nil { - return x.ReqGroupInfo - } - return nil -} - func (x *D88DReqBody) GetPcClientVersion() uint32 { if x != nil && x.PcClientVersion != nil { return *x.PcClientVersion @@ -817,32 +670,11 @@ func (x *RspGroupInfo) GetResult() uint32 { return 0 } -func (x *RspGroupInfo) GetGroupInfo() *D88DGroupInfo { - if x != nil { - return x.GroupInfo - } - return nil -} - type D88DRspBody struct { RspGroupInfo []*RspGroupInfo `protobuf:"bytes,1,rep"` StrErrorInfo []byte `protobuf:"bytes,2,opt"` } -func (x *D88DRspBody) GetRspGroupInfo() []*RspGroupInfo { - if x != nil { - return x.RspGroupInfo - } - return nil -} - -func (x *D88DRspBody) GetStrErrorInfo() []byte { - if x != nil { - return x.StrErrorInfo - } - return nil -} - type D88DTagRecord struct { FromUin *uint64 `protobuf:"varint,1,opt"` GroupCode *uint64 `protobuf:"varint,2,opt"` @@ -868,13 +700,6 @@ func (x *D88DTagRecord) GetGroupCode() uint64 { return 0 } -func (x *D88DTagRecord) GetTagId() []byte { - if x != nil { - return x.TagId - } - return nil -} - func (x *D88DTagRecord) GetSetTime() uint64 { if x != nil && x.SetTime != nil { return *x.SetTime @@ -903,13 +728,6 @@ func (x *D88DTagRecord) GetTagLen() uint32 { return 0 } -func (x *D88DTagRecord) GetTagValue() []byte { - if x != nil { - return x.TagValue - } - return nil -} - type D88DGroupGeoInfo struct { Owneruin *uint64 `protobuf:"varint,1,opt"` Settime *uint32 `protobuf:"varint,2,opt"` @@ -955,13 +773,6 @@ func (x *D88DGroupGeoInfo) GetLatitude() int64 { return 0 } -func (x *D88DGroupGeoInfo) GetGeocontent() []byte { - if x != nil { - return x.Geocontent - } - return nil -} - func (x *D88DGroupGeoInfo) GetPoiId() uint64 { if x != nil && x.PoiId != nil { return *x.PoiId diff --git a/client/pb/oidb/oidb0x88d.proto b/client/pb/oidb/oidb0x88d.proto index 5545717a..c85a52cd 100644 --- a/client/pb/oidb/oidb0x88d.proto +++ b/client/pb/oidb/oidb0x88d.proto @@ -1,6 +1,6 @@ syntax = "proto2"; // 似乎查询服务端是通过 exists flag 来返回 group info 的 这地方只能用 proto2 -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message D88DGroupHeadPortraitInfo { diff --git a/client/pb/oidb/oidb0x8a7.pb.go b/client/pb/oidb/oidb0x8a7.pb.go index b2a6137f..e5573fa7 100644 --- a/client/pb/oidb/oidb0x8a7.pb.go +++ b/client/pb/oidb/oidb0x8a7.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0x8a7.proto +// source: pb/oidb/oidb0x8a7.proto package oidb @@ -74,17 +74,3 @@ func (x *D8A7RspBody) GetRemainAtAllCountForGroup() uint32 { } return 0 } - -func (x *D8A7RspBody) GetPromptMsg1() []byte { - if x != nil { - return x.PromptMsg1 - } - return nil -} - -func (x *D8A7RspBody) GetPromptMsg2() []byte { - if x != nil { - return x.PromptMsg2 - } - return nil -} diff --git a/client/pb/oidb/oidb0x8a7.proto b/client/pb/oidb/oidb0x8a7.proto index 406dd848..5753443f 100644 --- a/client/pb/oidb/oidb0x8a7.proto +++ b/client/pb/oidb/oidb0x8a7.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message D8A7ReqBody { optional uint32 subCmd = 1; diff --git a/client/pb/oidb/oidb0x8fc.pb.go b/client/pb/oidb/oidb0x8fc.pb.go index 77a8d1fa..d6e522ee 100644 --- a/client/pb/oidb/oidb0x8fc.pb.go +++ b/client/pb/oidb/oidb0x8fc.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0x8fc.proto +// source: pb/oidb/oidb0x8fc.proto package oidb @@ -29,20 +29,6 @@ func (x *D8FCReqBody) GetShowFlag() int32 { return 0 } -func (x *D8FCReqBody) GetMemLevelInfo() []*D8FCMemberInfo { - if x != nil { - return x.MemLevelInfo - } - return nil -} - -func (x *D8FCReqBody) GetLevelName() []*D8FCLevelName { - if x != nil { - return x.LevelName - } - return nil -} - func (x *D8FCReqBody) GetUpdateTime() int32 { if x != nil && x.UpdateTime != nil { return *x.UpdateTime @@ -64,20 +50,6 @@ func (x *D8FCReqBody) GetGroupOpenAppid() int32 { return 0 } -func (x *D8FCReqBody) GetMsgClientInfo() *D8FCClientInfo { - if x != nil { - return x.MsgClientInfo - } - return nil -} - -func (x *D8FCReqBody) GetAuthKey() []byte { - if x != nil { - return x.AuthKey - } - return nil -} - type D8FCMemberInfo struct { Uin *int64 `protobuf:"varint,1,opt"` Point *int32 `protobuf:"varint,2,opt"` @@ -126,13 +98,6 @@ func (x *D8FCMemberInfo) GetLevel() int32 { return 0 } -func (x *D8FCMemberInfo) GetSpecialTitle() []byte { - if x != nil { - return x.SpecialTitle - } - return nil -} - func (x *D8FCMemberInfo) GetSpecialTitleExpireTime() int32 { if x != nil && x.SpecialTitleExpireTime != nil { return *x.SpecialTitleExpireTime @@ -140,41 +105,6 @@ func (x *D8FCMemberInfo) GetSpecialTitleExpireTime() int32 { return 0 } -func (x *D8FCMemberInfo) GetUinName() []byte { - if x != nil { - return x.UinName - } - return nil -} - -func (x *D8FCMemberInfo) GetMemberCardName() []byte { - if x != nil { - return x.MemberCardName - } - return nil -} - -func (x *D8FCMemberInfo) GetPhone() []byte { - if x != nil { - return x.Phone - } - return nil -} - -func (x *D8FCMemberInfo) GetEmail() []byte { - if x != nil { - return x.Email - } - return nil -} - -func (x *D8FCMemberInfo) GetRemark() []byte { - if x != nil { - return x.Remark - } - return nil -} - func (x *D8FCMemberInfo) GetGender() int32 { if x != nil && x.Gender != nil { return *x.Gender @@ -182,13 +112,6 @@ func (x *D8FCMemberInfo) GetGender() int32 { return 0 } -func (x *D8FCMemberInfo) GetJob() []byte { - if x != nil { - return x.Job - } - return nil -} - func (x *D8FCMemberInfo) GetTribeLevel() int32 { if x != nil && x.TribeLevel != nil { return *x.TribeLevel @@ -203,20 +126,6 @@ func (x *D8FCMemberInfo) GetTribePoint() int32 { return 0 } -func (x *D8FCMemberInfo) GetRichCardName() []*D8FCCardNameElem { - if x != nil { - return x.RichCardName - } - return nil -} - -func (x *D8FCMemberInfo) GetCommRichCardName() []byte { - if x != nil { - return x.CommRichCardName - } - return nil -} - type D8FCCardNameElem struct { EnumCardType *int32 `protobuf:"varint,1,opt"` Value []byte `protobuf:"bytes,2,opt"` @@ -229,13 +138,6 @@ func (x *D8FCCardNameElem) GetEnumCardType() int32 { return 0 } -func (x *D8FCCardNameElem) GetValue() []byte { - if x != nil { - return x.Value - } - return nil -} - type D8FCLevelName struct { Level *int32 `protobuf:"varint,1,opt"` Name *string `protobuf:"bytes,2,opt"` @@ -278,28 +180,7 @@ type D8FCCommCardNameBuf struct { RichCardName []*D8FCRichCardNameElem `protobuf:"bytes,1,rep"` } -func (x *D8FCCommCardNameBuf) GetRichCardName() []*D8FCRichCardNameElem { - if x != nil { - return x.RichCardName - } - return nil -} - type D8FCRichCardNameElem struct { Ctrl []byte `protobuf:"bytes,1,opt"` Text []byte `protobuf:"bytes,2,opt"` } - -func (x *D8FCRichCardNameElem) GetCtrl() []byte { - if x != nil { - return x.Ctrl - } - return nil -} - -func (x *D8FCRichCardNameElem) GetText() []byte { - if x != nil { - return x.Text - } - return nil -} diff --git a/client/pb/oidb/oidb0x8fc.proto b/client/pb/oidb/oidb0x8fc.proto index 0923117e..2228f7dc 100644 --- a/client/pb/oidb/oidb0x8fc.proto +++ b/client/pb/oidb/oidb0x8fc.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message D8FCReqBody { optional int64 groupCode = 1; diff --git a/client/pb/oidb/oidb0x990.pb.go b/client/pb/oidb/oidb0x990.pb.go index a27cc747..f022313e 100644 --- a/client/pb/oidb/oidb0x990.pb.go +++ b/client/pb/oidb/oidb0x990.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0x990.proto +// source: pb/oidb/oidb0x990.proto package oidb @@ -8,52 +8,17 @@ type TranslateReqBody struct { BatchTranslateReq *BatchTranslateReq `protobuf:"bytes,2,opt"` } -func (x *TranslateReqBody) GetBatchTranslateReq() *BatchTranslateReq { - if x != nil { - return x.BatchTranslateReq - } - return nil -} - type TranslateRspBody struct { // TranslateRsp translate_rsp = 1; BatchTranslateRsp *BatchTranslateRsp `protobuf:"bytes,2,opt"` } -func (x *TranslateRspBody) GetBatchTranslateRsp() *BatchTranslateRsp { - if x != nil { - return x.BatchTranslateRsp - } - return nil -} - type BatchTranslateReq struct { SrcLanguage string `protobuf:"bytes,1,opt"` DstLanguage string `protobuf:"bytes,2,opt"` SrcTextList []string `protobuf:"bytes,3,rep"` } -func (x *BatchTranslateReq) GetSrcLanguage() string { - if x != nil { - return x.SrcLanguage - } - return "" -} - -func (x *BatchTranslateReq) GetDstLanguage() string { - if x != nil { - return x.DstLanguage - } - return "" -} - -func (x *BatchTranslateReq) GetSrcTextList() []string { - if x != nil { - return x.SrcTextList - } - return nil -} - type BatchTranslateRsp struct { ErrorCode int32 `protobuf:"varint,1,opt"` ErrorMsg []byte `protobuf:"bytes,2,opt"` @@ -62,45 +27,3 @@ type BatchTranslateRsp struct { SrcTextList []string `protobuf:"bytes,5,rep"` DstTextList []string `protobuf:"bytes,6,rep"` } - -func (x *BatchTranslateRsp) GetErrorCode() int32 { - if x != nil { - return x.ErrorCode - } - return 0 -} - -func (x *BatchTranslateRsp) GetErrorMsg() []byte { - if x != nil { - return x.ErrorMsg - } - return nil -} - -func (x *BatchTranslateRsp) GetSrcLanguage() string { - if x != nil { - return x.SrcLanguage - } - return "" -} - -func (x *BatchTranslateRsp) GetDstLanguage() string { - if x != nil { - return x.DstLanguage - } - return "" -} - -func (x *BatchTranslateRsp) GetSrcTextList() []string { - if x != nil { - return x.SrcTextList - } - return nil -} - -func (x *BatchTranslateRsp) GetDstTextList() []string { - if x != nil { - return x.DstTextList - } - return nil -} diff --git a/client/pb/oidb/oidb0x990.proto b/client/pb/oidb/oidb0x990.proto index 81ee55e4..299355a3 100644 --- a/client/pb/oidb/oidb0x990.proto +++ b/client/pb/oidb/oidb0x990.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message TranslateReqBody { // TranslateReq translate_req = 1; diff --git a/client/pb/oidb/oidb0xD79.proto b/client/pb/oidb/oidb0xD79.proto index 7412257f..29f6d689 100644 --- a/client/pb/oidb/oidb0xD79.proto +++ b/client/pb/oidb/oidb0xD79.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message D79ReqBody { uint64 seq = 1; diff --git a/client/pb/oidb/oidb0xb77.pb.go b/client/pb/oidb/oidb0xb77.pb.go index f4479287..50a692dc 100644 --- a/client/pb/oidb/oidb0xb77.pb.go +++ b/client/pb/oidb/oidb0xb77.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0xb77.proto +// source: pb/oidb/oidb0xb77.proto package oidb @@ -17,83 +17,6 @@ type DB77ReqBody struct { RecvGuildId uint64 `protobuf:"varint,19,opt"` } -func (x *DB77ReqBody) GetAppId() uint64 { - if x != nil { - return x.AppId - } - return 0 -} - -func (x *DB77ReqBody) GetAppType() uint32 { - if x != nil { - return x.AppType - } - return 0 -} - -func (x *DB77ReqBody) GetMsgStyle() uint32 { - if x != nil { - return x.MsgStyle - } - return 0 -} - -func (x *DB77ReqBody) GetSenderUin() uint64 { - if x != nil { - return x.SenderUin - } - return 0 -} - -func (x *DB77ReqBody) GetClientInfo() *DB77ClientInfo { - if x != nil { - return x.ClientInfo - } - return nil -} - -func (x *DB77ReqBody) GetTextMsg() string { - if x != nil { - return x.TextMsg - } - return "" -} - -func (x *DB77ReqBody) GetExtInfo() *DB77ExtInfo { - if x != nil { - return x.ExtInfo - } - return nil -} - -func (x *DB77ReqBody) GetSendType() uint32 { - if x != nil { - return x.SendType - } - return 0 -} - -func (x *DB77ReqBody) GetRecvUin() uint64 { - if x != nil { - return x.RecvUin - } - return 0 -} - -func (x *DB77ReqBody) GetRichMsgBody() *DB77RichMsgBody { - if x != nil { - return x.RichMsgBody - } - return nil -} - -func (x *DB77ReqBody) GetRecvGuildId() uint64 { - if x != nil { - return x.RecvGuildId - } - return 0 -} - type DB77ClientInfo struct { Platform uint32 `protobuf:"varint,1,opt"` SdkVersion string `protobuf:"bytes,2,opt"` @@ -103,48 +26,6 @@ type DB77ClientInfo struct { PcSign string `protobuf:"bytes,6,opt"` } -func (x *DB77ClientInfo) GetPlatform() uint32 { - if x != nil { - return x.Platform - } - return 0 -} - -func (x *DB77ClientInfo) GetSdkVersion() string { - if x != nil { - return x.SdkVersion - } - return "" -} - -func (x *DB77ClientInfo) GetAndroidPackageName() string { - if x != nil { - return x.AndroidPackageName - } - return "" -} - -func (x *DB77ClientInfo) GetAndroidSignature() string { - if x != nil { - return x.AndroidSignature - } - return "" -} - -func (x *DB77ClientInfo) GetIosBundleId() string { - if x != nil { - return x.IosBundleId - } - return "" -} - -func (x *DB77ClientInfo) GetPcSign() string { - if x != nil { - return x.PcSign - } - return "" -} - type DB77ExtInfo struct { CustomFeatureId []uint32 `protobuf:"varint,11,rep"` ApnsWording string `protobuf:"bytes,12,opt"` @@ -153,41 +34,6 @@ type DB77ExtInfo struct { MsgSeq uint64 `protobuf:"varint,15,opt"` } -func (x *DB77ExtInfo) GetCustomFeatureId() []uint32 { - if x != nil { - return x.CustomFeatureId - } - return nil -} - -func (x *DB77ExtInfo) GetApnsWording() string { - if x != nil { - return x.ApnsWording - } - return "" -} - -func (x *DB77ExtInfo) GetGroupSaveDbFlag() uint32 { - if x != nil { - return x.GroupSaveDbFlag - } - return 0 -} - -func (x *DB77ExtInfo) GetReceiverAppId() uint32 { - if x != nil { - return x.ReceiverAppId - } - return 0 -} - -func (x *DB77ExtInfo) GetMsgSeq() uint64 { - if x != nil { - return x.MsgSeq - } - return 0 -} - type DB77RichMsgBody struct { Title string `protobuf:"bytes,10,opt"` Summary string `protobuf:"bytes,11,opt"` @@ -197,52 +43,3 @@ type DB77RichMsgBody struct { Action string `protobuf:"bytes,15,opt"` MusicUrl string `protobuf:"bytes,16,opt"` //ImageInfo imageInfo = 17; } - -func (x *DB77RichMsgBody) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *DB77RichMsgBody) GetSummary() string { - if x != nil { - return x.Summary - } - return "" -} - -func (x *DB77RichMsgBody) GetBrief() string { - if x != nil { - return x.Brief - } - return "" -} - -func (x *DB77RichMsgBody) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *DB77RichMsgBody) GetPictureUrl() string { - if x != nil { - return x.PictureUrl - } - return "" -} - -func (x *DB77RichMsgBody) GetAction() string { - if x != nil { - return x.Action - } - return "" -} - -func (x *DB77RichMsgBody) GetMusicUrl() string { - if x != nil { - return x.MusicUrl - } - return "" -} diff --git a/client/pb/oidb/oidb0xb77.proto b/client/pb/oidb/oidb0xb77.proto index 53cfef80..aae6f6c0 100644 --- a/client/pb/oidb/oidb0xb77.proto +++ b/client/pb/oidb/oidb0xb77.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message DB77ReqBody { uint64 appId = 1; diff --git a/client/pb/oidb/oidb0xbcb.pb.go b/client/pb/oidb/oidb0xbcb.pb.go index 7f3b7aad..0e0651ea 100644 --- a/client/pb/oidb/oidb0xbcb.pb.go +++ b/client/pb/oidb/oidb0xbcb.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0xbcb.proto +// source: pb/oidb/oidb0xbcb.proto package oidb @@ -23,13 +23,6 @@ type CheckUrlReq struct { Qua *string `protobuf:"bytes,17,opt"` } -func (x *CheckUrlReq) GetUrl() []string { - if x != nil { - return x.Url - } - return nil -} - func (x *CheckUrlReq) GetRefer() string { if x != nil && x.Refer != nil { return *x.Refer @@ -121,13 +114,6 @@ func (x *CheckUrlReq) GetIsFinish() bool { return false } -func (x *CheckUrlReq) GetSrcUrls() []string { - if x != nil { - return x.SrcUrls - } - return nil -} - func (x *CheckUrlReq) GetSrcPlatform() uint32 { if x != nil && x.SrcPlatform != nil { return *x.SrcPlatform @@ -230,13 +216,6 @@ type CheckUrlRsp struct { NextReqDuration *uint32 `protobuf:"varint,2,opt"` } -func (x *CheckUrlRsp) GetResults() []*UrlCheckResult { - if x != nil { - return x.Results - } - return nil -} - func (x *CheckUrlRsp) GetNextReqDuration() uint32 { if x != nil && x.NextReqDuration != nil { return *x.NextReqDuration @@ -256,13 +235,6 @@ func (x *DBCBReqBody) GetNotUseCache() int32 { return 0 } -func (x *DBCBReqBody) GetCheckUrlReq() *CheckUrlReq { - if x != nil { - return x.CheckUrlReq - } - return nil -} - type DBCBRspBody struct { Wording *string `protobuf:"bytes,1,opt"` CheckUrlRsp *CheckUrlRsp `protobuf:"bytes,10,opt"` @@ -275,13 +247,6 @@ func (x *DBCBRspBody) GetWording() string { return "" } -func (x *DBCBRspBody) GetCheckUrlRsp() *CheckUrlRsp { - if x != nil { - return x.CheckUrlRsp - } - return nil -} - type UrlCheckResult struct { Url *string `protobuf:"bytes,1,opt"` Result *uint32 `protobuf:"varint,2,opt"` diff --git a/client/pb/oidb/oidb0xbcb.proto b/client/pb/oidb/oidb0xbcb.proto index 6ad38f18..63a860b0 100644 --- a/client/pb/oidb/oidb0xbcb.proto +++ b/client/pb/oidb/oidb0xbcb.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message CheckUrlReq { repeated string url = 1; diff --git a/client/pb/oidb/oidb0xd79.pb.go b/client/pb/oidb/oidb0xd79.pb.go index 191541fc..2a175ff3 100644 --- a/client/pb/oidb/oidb0xd79.pb.go +++ b/client/pb/oidb/oidb0xd79.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0xD79.proto +// source: pb/oidb/oidb0xD79.proto package oidb @@ -13,55 +13,6 @@ type D79ReqBody struct { WordExt []byte `protobuf:"bytes,7,opt"` } -func (x *D79ReqBody) GetSeq() uint64 { - if x != nil { - return x.Seq - } - return 0 -} - -func (x *D79ReqBody) GetUin() uint64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *D79ReqBody) GetCompressFlag() uint32 { - if x != nil { - return x.CompressFlag - } - return 0 -} - -func (x *D79ReqBody) GetContent() []byte { - if x != nil { - return x.Content - } - return nil -} - -func (x *D79ReqBody) GetSenderUin() uint64 { - if x != nil { - return x.SenderUin - } - return 0 -} - -func (x *D79ReqBody) GetQua() []byte { - if x != nil { - return x.Qua - } - return nil -} - -func (x *D79ReqBody) GetWordExt() []byte { - if x != nil { - return x.WordExt - } - return nil -} - type D79RspBody struct { Ret uint32 `protobuf:"varint,1,opt"` Seq uint64 `protobuf:"varint,2,opt"` @@ -70,48 +21,6 @@ type D79RspBody struct { Content *D79Content `protobuf:"bytes,5,opt"` } -func (x *D79RspBody) GetRet() uint32 { - if x != nil { - return x.Ret - } - return 0 -} - -func (x *D79RspBody) GetSeq() uint64 { - if x != nil { - return x.Seq - } - return 0 -} - -func (x *D79RspBody) GetUin() uint64 { - if x != nil { - return x.Uin - } - return 0 -} - -func (x *D79RspBody) GetCompressFlag() uint32 { - if x != nil { - return x.CompressFlag - } - return 0 -} - -func (x *D79RspBody) GetContent() *D79Content { - if x != nil { - return x.Content - } - return nil -} - type D79Content struct { SliceContent [][]byte `protobuf:"bytes,1,rep"` } - -func (x *D79Content) GetSliceContent() [][]byte { - if x != nil { - return x.SliceContent - } - return nil -} diff --git a/client/pb/oidb/oidb0xe07.pb.go b/client/pb/oidb/oidb0xe07.pb.go index 221a39ee..dff84ce5 100644 --- a/client/pb/oidb/oidb0xe07.pb.go +++ b/client/pb/oidb/oidb0xe07.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0xe07.proto +// source: pb/oidb/oidb0xe07.proto package oidb @@ -10,34 +10,6 @@ type DE07ReqBody struct { OcrReqBody *OCRReqBody `protobuf:"bytes,10,opt"` } -func (x *DE07ReqBody) GetVersion() int32 { - if x != nil { - return x.Version - } - return 0 -} - -func (x *DE07ReqBody) GetClient() int32 { - if x != nil { - return x.Client - } - return 0 -} - -func (x *DE07ReqBody) GetEntrance() int32 { - if x != nil { - return x.Entrance - } - return 0 -} - -func (x *DE07ReqBody) GetOcrReqBody() *OCRReqBody { - if x != nil { - return x.OcrReqBody - } - return nil -} - type OCRReqBody struct { ImageUrl string `protobuf:"bytes,1,opt"` LanguageType string `protobuf:"bytes,2,opt"` @@ -50,69 +22,6 @@ type OCRReqBody struct { IsCut bool `protobuf:"varint,15,opt"` } -func (x *OCRReqBody) GetImageUrl() string { - if x != nil { - return x.ImageUrl - } - return "" -} - -func (x *OCRReqBody) GetLanguageType() string { - if x != nil { - return x.LanguageType - } - return "" -} - -func (x *OCRReqBody) GetScene() string { - if x != nil { - return x.Scene - } - return "" -} - -func (x *OCRReqBody) GetOriginMd5() string { - if x != nil { - return x.OriginMd5 - } - return "" -} - -func (x *OCRReqBody) GetAfterCompressMd5() string { - if x != nil { - return x.AfterCompressMd5 - } - return "" -} - -func (x *OCRReqBody) GetAfterCompressFileSize() int32 { - if x != nil { - return x.AfterCompressFileSize - } - return 0 -} - -func (x *OCRReqBody) GetAfterCompressWeight() int32 { - if x != nil { - return x.AfterCompressWeight - } - return 0 -} - -func (x *OCRReqBody) GetAfterCompressHeight() int32 { - if x != nil { - return x.AfterCompressHeight - } - return 0 -} - -func (x *OCRReqBody) GetIsCut() bool { - if x != nil { - return x.IsCut - } - return false -} - type DE07RspBody struct { RetCode int32 `protobuf:"varint,1,opt"` ErrMsg string `protobuf:"bytes,2,opt"` @@ -120,34 +29,6 @@ type DE07RspBody struct { OcrRspBody *OCRRspBody `protobuf:"bytes,10,opt"` } -func (x *DE07RspBody) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *DE07RspBody) GetErrMsg() string { - if x != nil { - return x.ErrMsg - } - return "" -} - -func (x *DE07RspBody) GetWording() string { - if x != nil { - return x.Wording - } - return "" -} - -func (x *DE07RspBody) GetOcrRspBody() *OCRRspBody { - if x != nil { - return x.OcrRspBody - } - return nil -} - type TextDetection struct { DetectedText string `protobuf:"bytes,1,opt"` Confidence int32 `protobuf:"varint,2,opt"` @@ -155,83 +36,20 @@ type TextDetection struct { AdvancedInfo string `protobuf:"bytes,4,opt"` } -func (x *TextDetection) GetDetectedText() string { - if x != nil { - return x.DetectedText - } - return "" -} - -func (x *TextDetection) GetConfidence() int32 { - if x != nil { - return x.Confidence - } - return 0 -} - -func (x *TextDetection) GetPolygon() *Polygon { - if x != nil { - return x.Polygon - } - return nil -} - -func (x *TextDetection) GetAdvancedInfo() string { - if x != nil { - return x.AdvancedInfo - } - return "" -} - type Polygon struct { Coordinates []*Coordinate `protobuf:"bytes,1,rep"` } -func (x *Polygon) GetCoordinates() []*Coordinate { - if x != nil { - return x.Coordinates - } - return nil -} - type Coordinate struct { X int32 `protobuf:"varint,1,opt"` Y int32 `protobuf:"varint,2,opt"` } -func (x *Coordinate) GetX() int32 { - if x != nil { - return x.X - } - return 0 -} - -func (x *Coordinate) GetY() int32 { - if x != nil { - return x.Y - } - return 0 -} - type Language struct { Language string `protobuf:"bytes,1,opt"` LanguageDesc string `protobuf:"bytes,2,opt"` } -func (x *Language) GetLanguage() string { - if x != nil { - return x.Language - } - return "" -} - -func (x *Language) GetLanguageDesc() string { - if x != nil { - return x.LanguageDesc - } - return "" -} - type OCRRspBody struct { TextDetections []*TextDetection `protobuf:"bytes,1,rep"` Language string `protobuf:"bytes,2,opt"` @@ -242,59 +60,3 @@ type OCRRspBody struct { AfterCompressWeight int32 `protobuf:"varint,111,opt"` AfterCompressHeight int32 `protobuf:"varint,112,opt"` } - -func (x *OCRRspBody) GetTextDetections() []*TextDetection { - if x != nil { - return x.TextDetections - } - return nil -} - -func (x *OCRRspBody) GetLanguage() string { - if x != nil { - return x.Language - } - return "" -} - -func (x *OCRRspBody) GetRequestId() string { - if x != nil { - return x.RequestId - } - return "" -} - -func (x *OCRRspBody) GetOcrLanguageList() []string { - if x != nil { - return x.OcrLanguageList - } - return nil -} - -func (x *OCRRspBody) GetDstTranslateLanguageList() []string { - if x != nil { - return x.DstTranslateLanguageList - } - return nil -} - -func (x *OCRRspBody) GetLanguageList() []*Language { - if x != nil { - return x.LanguageList - } - return nil -} - -func (x *OCRRspBody) GetAfterCompressWeight() int32 { - if x != nil { - return x.AfterCompressWeight - } - return 0 -} - -func (x *OCRRspBody) GetAfterCompressHeight() int32 { - if x != nil { - return x.AfterCompressHeight - } - return 0 -} diff --git a/client/pb/oidb/oidb0xe07.proto b/client/pb/oidb/oidb0xe07.proto index e4ccaac6..e542d675 100644 --- a/client/pb/oidb/oidb0xe07.proto +++ b/client/pb/oidb/oidb0xe07.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message DE07ReqBody { int32 version = 1; diff --git a/client/pb/oidb/oidb0xe5b.pb.go b/client/pb/oidb/oidb0xe5b.pb.go index cf7b2416..bcabfcdf 100644 --- a/client/pb/oidb/oidb0xe5b.pb.go +++ b/client/pb/oidb/oidb0xe5b.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0xe5b.proto +// source: pb/oidb/oidb0xe5b.proto package oidb @@ -47,13 +47,6 @@ func (x *LifeAchievementItem) GetPraiseNum() uint32 { return 0 } -func (x *LifeAchievementItem) GetAchievementContent() []byte { - if x != nil { - return x.AchievementContent - } - return nil -} - type DE5BReqBody struct { Uin *uint64 `protobuf:"varint,1,opt"` AchievementId []uint32 `protobuf:"varint,2,rep"` @@ -68,13 +61,6 @@ func (x *DE5BReqBody) GetUin() uint64 { return 0 } -func (x *DE5BReqBody) GetAchievementId() []uint32 { - if x != nil { - return x.AchievementId - } - return nil -} - func (x *DE5BReqBody) GetMaxCount() uint32 { if x != nil && x.MaxCount != nil { return *x.MaxCount @@ -102,13 +88,6 @@ func (x *DE5BRspBody) GetAchievementTotalCount() uint32 { return 0 } -func (x *DE5BRspBody) GetLifeAchItem() []*LifeAchievementItem { - if x != nil { - return x.LifeAchItem - } - return nil -} - func (x *DE5BRspBody) GetAchievementOpenid() string { if x != nil && x.AchievementOpenid != nil { return *x.AchievementOpenid diff --git a/client/pb/oidb/oidb0xe5b.proto b/client/pb/oidb/oidb0xe5b.proto index 168845c9..fadf3795 100644 --- a/client/pb/oidb/oidb0xe5b.proto +++ b/client/pb/oidb/oidb0xe5b.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message LifeAchievementItem { optional uint32 achievementId = 1; diff --git a/client/pb/oidb/oidb0xeac.pb.go b/client/pb/oidb/oidb0xeac.pb.go index 70e8a9b3..4f426d2d 100644 --- a/client/pb/oidb/oidb0xeac.pb.go +++ b/client/pb/oidb/oidb0xeac.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0xeac.proto +// source: pb/oidb/oidb0xeac.proto package oidb diff --git a/client/pb/oidb/oidb0xeac.proto b/client/pb/oidb/oidb0xeac.proto index c04b35bd..9e5f3888 100644 --- a/client/pb/oidb/oidb0xeac.proto +++ b/client/pb/oidb/oidb0xeac.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; /* message ArkMsg { diff --git a/client/pb/oidb/oidb0xec4.pb.go b/client/pb/oidb/oidb0xec4.pb.go index 48f88657..b0dba4c6 100644 --- a/client/pb/oidb/oidb0xec4.pb.go +++ b/client/pb/oidb/oidb0xec4.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: oidb0xec4.proto +// source: pb/oidb/oidb0xec4.proto package oidb @@ -159,20 +159,6 @@ func (x *Quest) GetAnsTime() uint64 { return 0 } -func (x *Quest) GetComment() []*Comment { - if x != nil { - return x.Comment - } - return nil -} - -func (x *Quest) GetPraise() []*Praise { - if x != nil { - return x.Praise - } - return nil -} - func (x *Quest) GetPraiseNum() uint64 { if x != nil && x.PraiseNum != nil { return *x.PraiseNum @@ -265,13 +251,6 @@ func (x *DEC4ReqBody) GetCommentNum() uint64 { return 0 } -func (x *DEC4ReqBody) GetCookie() []byte { - if x != nil { - return x.Cookie - } - return nil -} - func (x *DEC4ReqBody) GetFetchType() uint32 { if x != nil && x.FetchType != nil { return *x.FetchType @@ -288,13 +267,6 @@ type DEC4RspBody struct { AnsweredQuestNum *uint32 `protobuf:"varint,6,opt"` } -func (x *DEC4RspBody) GetQuest() []*Quest { - if x != nil { - return x.Quest - } - return nil -} - func (x *DEC4RspBody) GetIsFetchOver() bool { if x != nil && x.IsFetchOver != nil { return *x.IsFetchOver @@ -309,13 +281,6 @@ func (x *DEC4RspBody) GetTotalQuestNum() uint32 { return 0 } -func (x *DEC4RspBody) GetCookie() []byte { - if x != nil { - return x.Cookie - } - return nil -} - func (x *DEC4RspBody) GetRet() uint32 { if x != nil && x.Ret != nil { return *x.Ret diff --git a/client/pb/oidb/oidb0xec4.proto b/client/pb/oidb/oidb0xec4.proto index 12a249d9..aef24a70 100644 --- a/client/pb/oidb/oidb0xec4.proto +++ b/client/pb/oidb/oidb0xec4.proto @@ -1,5 +1,5 @@ syntax = "proto2"; -option go_package = "./;oidb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/oidb"; message Comment { optional string id = 1; diff --git a/client/pb/profilecard/accountsearch.pb.go b/client/pb/profilecard/accountsearch.pb.go index 5cd3c893..62c21aec 100644 --- a/client/pb/profilecard/accountsearch.pb.go +++ b/client/pb/profilecard/accountsearch.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: accountsearch.proto +// source: pb/profilecard/accountsearch.proto package profilecard @@ -39,62 +39,6 @@ type ResultItem struct { TotalPicNum *uint32 `protobuf:"varint,14,opt"` } -func (x *ResultItem) GetFeedId() []byte { - if x != nil { - return x.FeedId - } - return nil -} - -func (x *ResultItem) GetName() []byte { - if x != nil { - return x.Name - } - return nil -} - -func (x *ResultItem) GetPicUrl() []byte { - if x != nil { - return x.PicUrl - } - return nil -} - -func (x *ResultItem) GetJmpUrl() []byte { - if x != nil { - return x.JmpUrl - } - return nil -} - -func (x *ResultItem) GetFeedType() []byte { - if x != nil { - return x.FeedType - } - return nil -} - -func (x *ResultItem) GetSummary() []byte { - if x != nil { - return x.Summary - } - return nil -} - -func (x *ResultItem) GetHasVideo() []byte { - if x != nil { - return x.HasVideo - } - return nil -} - -func (x *ResultItem) GetPhtotUpdate() []byte { - if x != nil { - return x.PhtotUpdate - } - return nil -} - func (x *ResultItem) GetUin() uint64 { if x != nil && x.Uin != nil { return *x.Uin @@ -102,13 +46,6 @@ func (x *ResultItem) GetUin() uint64 { return 0 } -func (x *ResultItem) GetResultId() []byte { - if x != nil { - return x.ResultId - } - return nil -} - func (x *ResultItem) GetFtime() uint32 { if x != nil && x.Ftime != nil { return *x.Ftime @@ -116,20 +53,6 @@ func (x *ResultItem) GetFtime() uint32 { return 0 } -func (x *ResultItem) GetNickName() []byte { - if x != nil { - return x.NickName - } - return nil -} - -func (x *ResultItem) GetPicUrlList() [][]byte { - if x != nil { - return x.PicUrlList - } - return nil -} - func (x *ResultItem) GetTotalPicNum() uint32 { if x != nil && x.TotalPicNum != nil { return *x.TotalPicNum @@ -302,13 +225,6 @@ func (x *AccountSearchRecord) GetMobile() string { return "" } -func (x *AccountSearchRecord) GetSign() []byte { - if x != nil { - return x.Sign - } - return nil -} - func (x *AccountSearchRecord) GetCountry() uint32 { if x != nil && x.Country != nil { return *x.Country @@ -428,20 +344,6 @@ func (x *AccountSearchRecord) GetUinPrivilege() int32 { return 0 } -func (x *AccountSearchRecord) GetJoinGroupAuth() []byte { - if x != nil { - return x.JoinGroupAuth - } - return nil -} - -func (x *AccountSearchRecord) GetToken() []byte { - if x != nil { - return x.Token - } - return nil -} - func (x *AccountSearchRecord) GetRichflag1_59() uint32 { if x != nil && x.Richflag1_59 != nil { return *x.Richflag1_59 @@ -502,27 +404,6 @@ func (x *AccountSearch) GetKeyword() string { return "" } -func (x *AccountSearch) GetList() []*AccountSearchRecord { - if x != nil { - return x.List - } - return nil -} - -func (x *AccountSearch) GetHighlight() []string { - if x != nil { - return x.Highlight - } - return nil -} - -func (x *AccountSearch) GetUserLocation() *Location { - if x != nil { - return x.UserLocation - } - return nil -} - func (x *AccountSearch) GetLocationGroup() bool { if x != nil && x.LocationGroup != nil { return *x.LocationGroup @@ -537,13 +418,6 @@ func (x *AccountSearch) GetFiltertype() int32 { return 0 } -func (x *AccountSearch) GetHotwordRecord() *Hotwordrecord { - if x != nil { - return x.HotwordRecord - } - return nil -} - func (x *AccountSearch) GetArticleMoreUrl() string { if x != nil && x.ArticleMoreUrl != nil { return *x.ArticleMoreUrl @@ -551,13 +425,6 @@ func (x *AccountSearch) GetArticleMoreUrl() string { return "" } -func (x *AccountSearch) GetResultItems() []*ResultItem { - if x != nil { - return x.ResultItems - } - return nil -} - func (x *AccountSearch) GetKeywordSuicide() bool { if x != nil && x.KeywordSuicide != nil { return *x.KeywordSuicide diff --git a/client/pb/profilecard/accountsearch.proto b/client/pb/profilecard/accountsearch.proto index c8aa27dc..5f48a253 100644 --- a/client/pb/profilecard/accountsearch.proto +++ b/client/pb/profilecard/accountsearch.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;profilecard"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/profilecard"; /* message Color { diff --git a/client/pb/profilecard/busi.pb.go b/client/pb/profilecard/busi.pb.go index 32f9dcaa..000a1931 100644 --- a/client/pb/profilecard/busi.pb.go +++ b/client/pb/profilecard/busi.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: busi.proto +// source: pb/profilecard/busi.proto package profilecard @@ -93,13 +93,6 @@ func (x *BusiComm) GetSessionType() int32 { return 0 } -func (x *BusiComm) GetSessionKey() []byte { - if x != nil { - return x.SessionKey - } - return nil -} - func (x *BusiComm) GetClientIp() int32 { if x != nil && x.ClientIp != nil { return *x.ClientIp @@ -107,13 +100,6 @@ func (x *BusiComm) GetClientIp() int32 { return 0 } -func (x *BusiComm) GetDisplay() *BusiUi { - if x != nil { - return x.Display - } - return nil -} - func (x *BusiComm) GetResult() int32 { if x != nil && x.Result != nil { return *x.Result @@ -149,13 +135,6 @@ func (x *BusiComm) GetBuild() int32 { return 0 } -func (x *BusiComm) GetMsgLoginSig() *BusiLoginSig { - if x != nil { - return x.MsgLoginSig - } - return nil -} - func (x *BusiComm) GetVersion() int32 { if x != nil && x.Version != nil { return *x.Version @@ -163,20 +142,6 @@ func (x *BusiComm) GetVersion() int32 { return 0 } -func (x *BusiComm) GetMsgUinInfo() *BusiUinInfo { - if x != nil { - return x.MsgUinInfo - } - return nil -} - -func (x *BusiComm) GetMsgRichDisplay() *BusiRichUi { - if x != nil { - return x.MsgRichDisplay - } - return nil -} - type BusiCommonReq struct { ServiceCmd *string `protobuf:"bytes,1,opt"` VcReq *BusiVisitorCountReq `protobuf:"bytes,2,opt"` @@ -190,20 +155,6 @@ func (x *BusiCommonReq) GetServiceCmd() string { return "" } -func (x *BusiCommonReq) GetVcReq() *BusiVisitorCountReq { - if x != nil { - return x.VcReq - } - return nil -} - -func (x *BusiCommonReq) GetHrReq() *BusiHideRecordsReq { - if x != nil { - return x.HrReq - } - return nil -} - type BusiDetailRecord struct { Fuin *int32 `protobuf:"varint,1,opt"` Source *int32 `protobuf:"varint,2,opt"` @@ -267,13 +218,6 @@ func (x *BusiHideRecordsReq) GetFuin() int32 { return 0 } -func (x *BusiHideRecordsReq) GetRecords() []*BusiDetailRecord { - if x != nil { - return x.Records - } - return nil -} - type BusiLabel struct { Name []byte `protobuf:"bytes,1,opt"` EnumType *int32 `protobuf:"varint,2,opt"` @@ -283,13 +227,6 @@ type BusiLabel struct { LabelType *int32 `protobuf:"varint,6,opt"` } -func (x *BusiLabel) GetName() []byte { - if x != nil { - return x.Name - } - return nil -} - func (x *BusiLabel) GetEnumType() int32 { if x != nil && x.EnumType != nil { return *x.EnumType @@ -297,20 +234,6 @@ func (x *BusiLabel) GetEnumType() int32 { return 0 } -func (x *BusiLabel) GetTextColor() *BusiColor { - if x != nil { - return x.TextColor - } - return nil -} - -func (x *BusiLabel) GetEdgingColor() *BusiColor { - if x != nil { - return x.EdgingColor - } - return nil -} - func (x *BusiLabel) GetLabelAttr() int32 { if x != nil && x.LabelAttr != nil { return *x.LabelAttr @@ -338,13 +261,6 @@ func (x *BusiLoginSig) GetType() int32 { return 0 } -func (x *BusiLoginSig) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - func (x *BusiLoginSig) GetAppid() int32 { if x != nil && x.Appid != nil { return *x.Appid diff --git a/client/pb/profilecard/busi.proto b/client/pb/profilecard/busi.proto index 869a6ac4..1419c7a1 100644 --- a/client/pb/profilecard/busi.proto +++ b/client/pb/profilecard/busi.proto @@ -1,5 +1,5 @@ syntax = "proto2"; -option go_package = "./;profilecard"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/profilecard"; message BusiColor { optional int32 r = 1; diff --git a/client/pb/profilecard/gate.pb.go b/client/pb/profilecard/gate.pb.go index cba232cf..3bbcd045 100644 --- a/client/pb/profilecard/gate.pb.go +++ b/client/pb/profilecard/gate.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: gate.proto +// source: pb/profilecard/gate.proto package profilecard @@ -15,13 +15,6 @@ func (x *GateCommTaskInfo) GetAppid() int32 { return 0 } -func (x *GateCommTaskInfo) GetTaskData() []byte { - if x != nil { - return x.TaskData - } - return nil -} - type GateGetGiftListReq struct { Uin *int32 `protobuf:"varint,1,opt"` } @@ -40,13 +33,6 @@ type GateGetGiftListRsp struct { IsOn *bool `protobuf:"varint,4,opt"` } -func (x *GateGetGiftListRsp) GetGiftUrl() []string { - if x != nil { - return x.GiftUrl - } - return nil -} - func (x *GateGetGiftListRsp) GetCustomUrl() string { if x != nil && x.CustomUrl != nil { return *x.CustomUrl @@ -110,13 +96,6 @@ func (x *GateOidbFlagInfo) GetFieled() int32 { return 0 } -func (x *GateOidbFlagInfo) GetByetsValue() []byte { - if x != nil { - return x.ByetsValue - } - return nil -} - type GatePrivilegeBaseInfoReq struct { UReqUin *int64 `protobuf:"varint,1,opt"` } @@ -136,34 +115,6 @@ type GatePrivilegeBaseInfoRsp struct { UIsGrayUsr *int32 `protobuf:"varint,5,opt"` } -func (x *GatePrivilegeBaseInfoRsp) GetMsg() []byte { - if x != nil { - return x.Msg - } - return nil -} - -func (x *GatePrivilegeBaseInfoRsp) GetJumpUrl() []byte { - if x != nil { - return x.JumpUrl - } - return nil -} - -func (x *GatePrivilegeBaseInfoRsp) GetVOpenPriv() []*GatePrivilegeInfo { - if x != nil { - return x.VOpenPriv - } - return nil -} - -func (x *GatePrivilegeBaseInfoRsp) GetVClosePriv() []*GatePrivilegeInfo { - if x != nil { - return x.VClosePriv - } - return nil -} - func (x *GatePrivilegeBaseInfoRsp) GetUIsGrayUsr() int32 { if x != nil && x.UIsGrayUsr != nil { return *x.UIsGrayUsr @@ -218,27 +169,6 @@ func (x *GatePrivilegeInfo) GetIFlag() int32 { return 0 } -func (x *GatePrivilegeInfo) GetIconUrl() []byte { - if x != nil { - return x.IconUrl - } - return nil -} - -func (x *GatePrivilegeInfo) GetDeluxeIconUrl() []byte { - if x != nil { - return x.DeluxeIconUrl - } - return nil -} - -func (x *GatePrivilegeInfo) GetJumpUrl() []byte { - if x != nil { - return x.JumpUrl - } - return nil -} - func (x *GatePrivilegeInfo) GetIIsBig() int32 { if x != nil && x.IIsBig != nil { return *x.IIsBig @@ -262,41 +192,6 @@ func (x *GateVaProfileGateReq) GetUCmd() int32 { return 0 } -func (x *GateVaProfileGateReq) GetStPrivilegeReq() *GatePrivilegeBaseInfoReq { - if x != nil { - return x.StPrivilegeReq - } - return nil -} - -func (x *GateVaProfileGateReq) GetStGiftReq() *GateGetGiftListReq { - if x != nil { - return x.StGiftReq - } - return nil -} - -func (x *GateVaProfileGateReq) GetTaskItem() []*GateCommTaskInfo { - if x != nil { - return x.TaskItem - } - return nil -} - -func (x *GateVaProfileGateReq) GetOidbFlag() []*GateOidbFlagInfo { - if x != nil { - return x.OidbFlag - } - return nil -} - -func (x *GateVaProfileGateReq) GetStVipCare() *GateGetVipCareReq { - if x != nil { - return x.StVipCare - } - return nil -} - type GateQidInfoItem struct { Qid *string `protobuf:"bytes,1,opt"` Url *string `protobuf:"bytes,2,opt"` @@ -349,52 +244,3 @@ func (x *GateVaProfileGateRsp) GetIRetCode() int32 { } return 0 } - -func (x *GateVaProfileGateRsp) GetSRetMsg() []byte { - if x != nil { - return x.SRetMsg - } - return nil -} - -func (x *GateVaProfileGateRsp) GetStPrivilegeRsp() *GatePrivilegeBaseInfoRsp { - if x != nil { - return x.StPrivilegeRsp - } - return nil -} - -func (x *GateVaProfileGateRsp) GetStGiftRsp() *GateGetGiftListRsp { - if x != nil { - return x.StGiftRsp - } - return nil -} - -func (x *GateVaProfileGateRsp) GetTaskItem() []*GateCommTaskInfo { - if x != nil { - return x.TaskItem - } - return nil -} - -func (x *GateVaProfileGateRsp) GetOidbFlag() []*GateOidbFlagInfo { - if x != nil { - return x.OidbFlag - } - return nil -} - -func (x *GateVaProfileGateRsp) GetStVipCare() *GateGetVipCareRsp { - if x != nil { - return x.StVipCare - } - return nil -} - -func (x *GateVaProfileGateRsp) GetQidInfo() *GateQidInfoItem { - if x != nil { - return x.QidInfo - } - return nil -} diff --git a/client/pb/profilecard/gate.proto b/client/pb/profilecard/gate.proto index cb9fa1cb..53fa00a7 100644 --- a/client/pb/profilecard/gate.proto +++ b/client/pb/profilecard/gate.proto @@ -1,5 +1,5 @@ syntax = "proto2"; -option go_package = "./;profilecard"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/profilecard"; message GateCommTaskInfo { optional int32 appid = 1; diff --git a/client/pb/pttcenter/shortvideo.pb.go b/client/pb/pttcenter/shortvideo.pb.go index 8489869d..efde0a02 100644 --- a/client/pb/pttcenter/shortvideo.pb.go +++ b/client/pb/pttcenter/shortvideo.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: shortvideo.proto +// source: pb/pttcenter/shortvideo.proto package pttcenter @@ -11,41 +11,6 @@ type ShortVideoReqBody struct { ExtensionReq []*ShortVideoExtensionReq `protobuf:"bytes,100,rep"` } -func (x *ShortVideoReqBody) GetCmd() int32 { - if x != nil { - return x.Cmd - } - return 0 -} - -func (x *ShortVideoReqBody) GetSeq() int32 { - if x != nil { - return x.Seq - } - return 0 -} - -func (x *ShortVideoReqBody) GetPttShortVideoUploadReq() *ShortVideoUploadReq { - if x != nil { - return x.PttShortVideoUploadReq - } - return nil -} - -func (x *ShortVideoReqBody) GetPttShortVideoDownloadReq() *ShortVideoDownloadReq { - if x != nil { - return x.PttShortVideoDownloadReq - } - return nil -} - -func (x *ShortVideoReqBody) GetExtensionReq() []*ShortVideoExtensionReq { - if x != nil { - return x.ExtensionReq - } - return nil -} - type ShortVideoRspBody struct { Cmd int32 `protobuf:"varint,1,opt"` Seq int32 `protobuf:"varint,2,opt"` @@ -53,34 +18,6 @@ type ShortVideoRspBody struct { PttShortVideoDownloadRsp *ShortVideoDownloadRsp `protobuf:"bytes,4,opt"` } -func (x *ShortVideoRspBody) GetCmd() int32 { - if x != nil { - return x.Cmd - } - return 0 -} - -func (x *ShortVideoRspBody) GetSeq() int32 { - if x != nil { - return x.Seq - } - return 0 -} - -func (x *ShortVideoRspBody) GetPttShortVideoUploadRsp() *ShortVideoUploadRsp { - if x != nil { - return x.PttShortVideoUploadRsp - } - return nil -} - -func (x *ShortVideoRspBody) GetPttShortVideoDownloadRsp() *ShortVideoDownloadRsp { - if x != nil { - return x.PttShortVideoDownloadRsp - } - return nil -} - type ShortVideoUploadReq struct { FromUin int64 `protobuf:"varint,1,opt"` ToUin int64 `protobuf:"varint,2,opt"` @@ -93,69 +30,6 @@ type ShortVideoUploadReq struct { SupportLargeSize int32 `protobuf:"varint,20,opt"` } -func (x *ShortVideoUploadReq) GetFromUin() int64 { - if x != nil { - return x.FromUin - } - return 0 -} - -func (x *ShortVideoUploadReq) GetToUin() int64 { - if x != nil { - return x.ToUin - } - return 0 -} - -func (x *ShortVideoUploadReq) GetChatType() int32 { - if x != nil { - return x.ChatType - } - return 0 -} - -func (x *ShortVideoUploadReq) GetClientType() int32 { - if x != nil { - return x.ClientType - } - return 0 -} - -func (x *ShortVideoUploadReq) GetInfo() *ShortVideoFileInfo { - if x != nil { - return x.Info - } - return nil -} - -func (x *ShortVideoUploadReq) GetGroupCode() int64 { - if x != nil { - return x.GroupCode - } - return 0 -} - -func (x *ShortVideoUploadReq) GetAgentType() int32 { - if x != nil { - return x.AgentType - } - return 0 -} - -func (x *ShortVideoUploadReq) GetBusinessType() int32 { - if x != nil { - return x.BusinessType - } - return 0 -} - -func (x *ShortVideoUploadReq) GetSupportLargeSize() int32 { - if x != nil { - return x.SupportLargeSize - } - return 0 -} - type ShortVideoDownloadReq struct { FromUin int64 `protobuf:"varint,1,opt"` ToUin int64 `protobuf:"varint,2,opt"` @@ -171,90 +45,6 @@ type ShortVideoDownloadReq struct { SceneType int32 `protobuf:"varint,12,opt"` } -func (x *ShortVideoDownloadReq) GetFromUin() int64 { - if x != nil { - return x.FromUin - } - return 0 -} - -func (x *ShortVideoDownloadReq) GetToUin() int64 { - if x != nil { - return x.ToUin - } - return 0 -} - -func (x *ShortVideoDownloadReq) GetChatType() int32 { - if x != nil { - return x.ChatType - } - return 0 -} - -func (x *ShortVideoDownloadReq) GetClientType() int32 { - if x != nil { - return x.ClientType - } - return 0 -} - -func (x *ShortVideoDownloadReq) GetFileId() string { - if x != nil { - return x.FileId - } - return "" -} - -func (x *ShortVideoDownloadReq) GetGroupCode() int64 { - if x != nil { - return x.GroupCode - } - return 0 -} - -func (x *ShortVideoDownloadReq) GetAgentType() int32 { - if x != nil { - return x.AgentType - } - return 0 -} - -func (x *ShortVideoDownloadReq) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - -func (x *ShortVideoDownloadReq) GetBusinessType() int32 { - if x != nil { - return x.BusinessType - } - return 0 -} - -func (x *ShortVideoDownloadReq) GetFileType() int32 { - if x != nil { - return x.FileType - } - return 0 -} - -func (x *ShortVideoDownloadReq) GetDownType() int32 { - if x != nil { - return x.DownType - } - return 0 -} - -func (x *ShortVideoDownloadReq) GetSceneType() int32 { - if x != nil { - return x.SceneType - } - return 0 -} - type ShortVideoDownloadRsp struct { RetCode int32 `protobuf:"varint,1,opt"` RetMsg string `protobuf:"bytes,2,opt"` @@ -268,76 +58,6 @@ type ShortVideoDownloadRsp struct { EncryptKey []byte `protobuf:"bytes,10,opt"` } -func (x *ShortVideoDownloadRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ShortVideoDownloadRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ShortVideoDownloadRsp) GetSameAreaOutAddr() []*ShortVideoIpList { - if x != nil { - return x.SameAreaOutAddr - } - return nil -} - -func (x *ShortVideoDownloadRsp) GetDiffAreaOutAddr() []*ShortVideoIpList { - if x != nil { - return x.DiffAreaOutAddr - } - return nil -} - -func (x *ShortVideoDownloadRsp) GetDownloadKey() []byte { - if x != nil { - return x.DownloadKey - } - return nil -} - -func (x *ShortVideoDownloadRsp) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - -func (x *ShortVideoDownloadRsp) GetSameAreaInnerAddr() []*ShortVideoIpList { - if x != nil { - return x.SameAreaInnerAddr - } - return nil -} - -func (x *ShortVideoDownloadRsp) GetDiffAreaInnerAddr() []*ShortVideoIpList { - if x != nil { - return x.DiffAreaInnerAddr - } - return nil -} - -func (x *ShortVideoDownloadRsp) GetDownloadAddr() *ShortVideoAddr { - if x != nil { - return x.DownloadAddr - } - return nil -} - -func (x *ShortVideoDownloadRsp) GetEncryptKey() []byte { - if x != nil { - return x.EncryptKey - } - return nil -} - type ShortVideoUploadRsp struct { RetCode int32 `protobuf:"varint,1,opt"` RetMsg string `protobuf:"bytes,2,opt"` @@ -351,76 +71,6 @@ type ShortVideoUploadRsp struct { DataHole []*DataHole `protobuf:"bytes,10,rep"` } -func (x *ShortVideoUploadRsp) GetRetCode() int32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *ShortVideoUploadRsp) GetRetMsg() string { - if x != nil { - return x.RetMsg - } - return "" -} - -func (x *ShortVideoUploadRsp) GetSameAreaOutAddr() []*ShortVideoIpList { - if x != nil { - return x.SameAreaOutAddr - } - return nil -} - -func (x *ShortVideoUploadRsp) GetDiffAreaOutAddr() []*ShortVideoIpList { - if x != nil { - return x.DiffAreaOutAddr - } - return nil -} - -func (x *ShortVideoUploadRsp) GetFileId() string { - if x != nil { - return x.FileId - } - return "" -} - -func (x *ShortVideoUploadRsp) GetUKey() []byte { - if x != nil { - return x.UKey - } - return nil -} - -func (x *ShortVideoUploadRsp) GetFileExists() int32 { - if x != nil { - return x.FileExists - } - return 0 -} - -func (x *ShortVideoUploadRsp) GetSameAreaInnerAddr() []*ShortVideoIpList { - if x != nil { - return x.SameAreaInnerAddr - } - return nil -} - -func (x *ShortVideoUploadRsp) GetDiffAreaInnerAddr() []*ShortVideoIpList { - if x != nil { - return x.DiffAreaInnerAddr - } - return nil -} - -func (x *ShortVideoUploadRsp) GetDataHole() []*DataHole { - if x != nil { - return x.DataHole - } - return nil -} - type ShortVideoFileInfo struct { FileName string `protobuf:"bytes,1,opt"` FileMd5 []byte `protobuf:"bytes,2,opt"` @@ -433,141 +83,22 @@ type ShortVideoFileInfo struct { ThumbFileSize int64 `protobuf:"varint,9,opt"` } -func (x *ShortVideoFileInfo) GetFileName() string { - if x != nil { - return x.FileName - } - return "" -} - -func (x *ShortVideoFileInfo) GetFileMd5() []byte { - if x != nil { - return x.FileMd5 - } - return nil -} - -func (x *ShortVideoFileInfo) GetThumbFileMd5() []byte { - if x != nil { - return x.ThumbFileMd5 - } - return nil -} - -func (x *ShortVideoFileInfo) GetFileSize() int64 { - if x != nil { - return x.FileSize - } - return 0 -} - -func (x *ShortVideoFileInfo) GetFileResLength() int32 { - if x != nil { - return x.FileResLength - } - return 0 -} - -func (x *ShortVideoFileInfo) GetFileResWidth() int32 { - if x != nil { - return x.FileResWidth - } - return 0 -} - -func (x *ShortVideoFileInfo) GetFileFormat() int32 { - if x != nil { - return x.FileFormat - } - return 0 -} - -func (x *ShortVideoFileInfo) GetFileTime() int32 { - if x != nil { - return x.FileTime - } - return 0 -} - -func (x *ShortVideoFileInfo) GetThumbFileSize() int64 { - if x != nil { - return x.ThumbFileSize - } - return 0 -} - type DataHole struct { Begin int64 `protobuf:"varint,1,opt"` End int64 `protobuf:"varint,2,opt"` } -func (x *DataHole) GetBegin() int64 { - if x != nil { - return x.Begin - } - return 0 -} - -func (x *DataHole) GetEnd() int64 { - if x != nil { - return x.End - } - return 0 -} - type ShortVideoIpList struct { Ip int32 `protobuf:"varint,1,opt"` Port int32 `protobuf:"varint,2,opt"` } -func (x *ShortVideoIpList) GetIp() int32 { - if x != nil { - return x.Ip - } - return 0 -} - -func (x *ShortVideoIpList) GetPort() int32 { - if x != nil { - return x.Port - } - return 0 -} - type ShortVideoAddr struct { Host []string `protobuf:"bytes,10,rep"` UrlArgs string `protobuf:"bytes,11,opt"` //repeated string domain = 13; } -func (x *ShortVideoAddr) GetHost() []string { - if x != nil { - return x.Host - } - return nil -} - -func (x *ShortVideoAddr) GetUrlArgs() string { - if x != nil { - return x.UrlArgs - } - return "" -} - type ShortVideoExtensionReq struct { SubBusiType int32 `protobuf:"varint,1,opt"` UserCnt int32 `protobuf:"varint,2,opt"` } - -func (x *ShortVideoExtensionReq) GetSubBusiType() int32 { - if x != nil { - return x.SubBusiType - } - return 0 -} - -func (x *ShortVideoExtensionReq) GetUserCnt() int32 { - if x != nil { - return x.UserCnt - } - return 0 -} diff --git a/client/pb/pttcenter/shortvideo.proto b/client/pb/pttcenter/shortvideo.proto index 2283692e..ecbd3c6e 100644 --- a/client/pb/pttcenter/shortvideo.proto +++ b/client/pb/pttcenter/shortvideo.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;pttcenter"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/pttcenter"; message ShortVideoReqBody { int32 cmd = 1; diff --git a/client/pb/qweb/app.pb.go b/client/pb/qweb/app.pb.go index 6108cf4b..639c5b02 100644 --- a/client/pb/qweb/app.pb.go +++ b/client/pb/qweb/app.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: app.proto +// source: pb/qweb/app.proto package qweb @@ -9,31 +9,10 @@ type GetAppInfoByIdReq struct { NeedVersionInfo int32 `protobuf:"varint,3,opt"` } -func (x *GetAppInfoByIdReq) GetAppId() string { - if x != nil { - return x.AppId - } - return "" -} - -func (x *GetAppInfoByIdReq) GetNeedVersionInfo() int32 { - if x != nil { - return x.NeedVersionInfo - } - return 0 -} - type GetAppInfoByIdRsp struct { AppInfo *ApiAppInfo `protobuf:"bytes,2,opt"` } -func (x *GetAppInfoByIdRsp) GetAppInfo() *ApiAppInfo { - if x != nil { - return x.AppInfo - } - return nil -} - type ApiAppInfo struct { AppId string `protobuf:"bytes,1,opt"` AppName string `protobuf:"bytes,2,opt"` @@ -49,76 +28,6 @@ type ApiAppInfo struct { Domain *DomainConfig `protobuf:"bytes,12,opt"` } -func (x *ApiAppInfo) GetAppId() string { - if x != nil { - return x.AppId - } - return "" -} - -func (x *ApiAppInfo) GetAppName() string { - if x != nil { - return x.AppName - } - return "" -} - -func (x *ApiAppInfo) GetIcon() string { - if x != nil { - return x.Icon - } - return "" -} - -func (x *ApiAppInfo) GetDownloadUrl() string { - if x != nil { - return x.DownloadUrl - } - return "" -} - -func (x *ApiAppInfo) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *ApiAppInfo) GetDesc() string { - if x != nil { - return x.Desc - } - return "" -} - -func (x *ApiAppInfo) GetType() int32 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *ApiAppInfo) GetBaseLibMiniVersion() string { - if x != nil { - return x.BaseLibMiniVersion - } - return "" -} - -func (x *ApiAppInfo) GetSubPkgs() []*AppSubPkgInfo { - if x != nil { - return x.SubPkgs - } - return nil -} - -func (x *ApiAppInfo) GetDomain() *DomainConfig { - if x != nil { - return x.Domain - } - return nil -} - type AppSubPkgInfo struct { SubPkgName string `protobuf:"bytes,1,opt"` DownloadUrl string `protobuf:"bytes,2,opt"` @@ -126,34 +35,6 @@ type AppSubPkgInfo struct { FileSize int32 `protobuf:"varint,4,opt"` } -func (x *AppSubPkgInfo) GetSubPkgName() string { - if x != nil { - return x.SubPkgName - } - return "" -} - -func (x *AppSubPkgInfo) GetDownloadUrl() string { - if x != nil { - return x.DownloadUrl - } - return "" -} - -func (x *AppSubPkgInfo) GetIndependent() int32 { - if x != nil { - return x.Independent - } - return 0 -} - -func (x *AppSubPkgInfo) GetFileSize() int32 { - if x != nil { - return x.FileSize - } - return 0 -} - type DomainConfig struct { RequestDomain []string `protobuf:"bytes,1,rep"` SocketDomain []string `protobuf:"bytes,2,rep"` @@ -162,45 +43,3 @@ type DomainConfig struct { BusinessDomain []string `protobuf:"bytes,5,rep"` UdpIpList []string `protobuf:"bytes,6,rep"` } - -func (x *DomainConfig) GetRequestDomain() []string { - if x != nil { - return x.RequestDomain - } - return nil -} - -func (x *DomainConfig) GetSocketDomain() []string { - if x != nil { - return x.SocketDomain - } - return nil -} - -func (x *DomainConfig) GetUploadFileDomain() []string { - if x != nil { - return x.UploadFileDomain - } - return nil -} - -func (x *DomainConfig) GetDownloadFileDomain() []string { - if x != nil { - return x.DownloadFileDomain - } - return nil -} - -func (x *DomainConfig) GetBusinessDomain() []string { - if x != nil { - return x.BusinessDomain - } - return nil -} - -func (x *DomainConfig) GetUdpIpList() []string { - if x != nil { - return x.UdpIpList - } - return nil -} diff --git a/client/pb/qweb/app.proto b/client/pb/qweb/app.proto index fe735452..bb0101ef 100644 --- a/client/pb/qweb/app.proto +++ b/client/pb/qweb/app.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;qweb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/qweb"; message GetAppInfoByIdReq { //CommonExt ExtInfo = 1; diff --git a/client/pb/qweb/protocol.pb.go b/client/pb/qweb/protocol.pb.go index 4eecf74c..065e3412 100644 --- a/client/pb/qweb/protocol.pb.go +++ b/client/pb/qweb/protocol.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: protocol.proto +// source: pb/qweb/protocol.proto package qweb @@ -38,13 +38,6 @@ func (x *QWebReq) GetDeviceInfo() string { return "" } -func (x *QWebReq) GetBusiBuff() []byte { - if x != nil { - return x.BusiBuff - } - return nil -} - func (x *QWebReq) GetTraceId() string { if x != nil && x.TraceId != nil { return *x.TraceId @@ -66,27 +59,6 @@ func (x *QWebReq) GetCmdname() string { return "" } -func (x *QWebReq) GetLoginSig() *StAuthInfo { - if x != nil { - return x.LoginSig - } - return nil -} - -func (x *QWebReq) GetCrypto() *StEncryption { - if x != nil { - return x.Crypto - } - return nil -} - -func (x *QWebReq) GetExtinfo() []*COMMEntry { - if x != nil { - return x.Extinfo - } - return nil -} - func (x *QWebReq) GetContentType() uint32 { if x != nil && x.ContentType != nil { return *x.ContentType @@ -123,13 +95,6 @@ func (x *QWebRsp) GetErrMsg() string { return "" } -func (x *QWebRsp) GetBusiBuff() []byte { - if x != nil { - return x.BusiBuff - } - return nil -} - func (x *QWebRsp) GetTraceid() string { if x != nil && x.Traceid != nil { return *x.Traceid @@ -155,13 +120,6 @@ func (x *StAuthInfo) GetUin() string { return "" } -func (x *StAuthInfo) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - func (x *StAuthInfo) GetPlatform() string { if x != nil && x.Platform != nil { return *x.Platform @@ -190,20 +148,6 @@ func (x *StAuthInfo) GetOpenid() string { return "" } -func (x *StAuthInfo) GetSessionkey() []byte { - if x != nil { - return x.Sessionkey - } - return nil -} - -func (x *StAuthInfo) GetExtinfo() []*COMMEntry { - if x != nil { - return x.Extinfo - } - return nil -} - type StEncryption struct { Method *uint32 `protobuf:"varint,1,opt"` Iv *string `protobuf:"bytes,2,opt"` diff --git a/client/pb/qweb/protocol.proto b/client/pb/qweb/protocol.proto index 53ee1fe1..2f293dd9 100644 --- a/client/pb/qweb/protocol.proto +++ b/client/pb/qweb/protocol.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;qweb"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/qweb"; message QWebReq { optional int64 seq = 1; diff --git a/client/pb/richmedia/tts.pb.go b/client/pb/richmedia/tts.pb.go index e70cd7e9..bcf14542 100644 --- a/client/pb/richmedia/tts.pb.go +++ b/client/pb/richmedia/tts.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: tts.proto +// source: pb/richmedia/tts.proto package richmedia @@ -16,91 +16,7 @@ type TtsRspBody struct { OpusFrameSize uint32 `protobuf:"varint,10,opt"` } -func (x *TtsRspBody) GetRetCode() uint32 { - if x != nil { - return x.RetCode - } - return 0 -} - -func (x *TtsRspBody) GetSessionId() string { - if x != nil { - return x.SessionId - } - return "" -} - -func (x *TtsRspBody) GetOutSeq() uint32 { - if x != nil { - return x.OutSeq - } - return 0 -} - -func (x *TtsRspBody) GetVoiceData() []*TtsVoiceItem { - if x != nil { - return x.VoiceData - } - return nil -} - -func (x *TtsRspBody) GetIslast() bool { - if x != nil { - return x.Islast - } - return false -} - -func (x *TtsRspBody) GetPcmSampleRate() uint32 { - if x != nil { - return x.PcmSampleRate - } - return 0 -} - -func (x *TtsRspBody) GetOpusSampleRate() uint32 { - if x != nil { - return x.OpusSampleRate - } - return 0 -} - -func (x *TtsRspBody) GetOpusChannels() uint32 { - if x != nil { - return x.OpusChannels - } - return 0 -} - -func (x *TtsRspBody) GetOpusBitRate() uint32 { - if x != nil { - return x.OpusBitRate - } - return 0 -} - -func (x *TtsRspBody) GetOpusFrameSize() uint32 { - if x != nil { - return x.OpusFrameSize - } - return 0 -} - type TtsVoiceItem struct { Voice []byte `protobuf:"bytes,1,opt"` Seq uint32 `protobuf:"varint,2,opt"` } - -func (x *TtsVoiceItem) GetVoice() []byte { - if x != nil { - return x.Voice - } - return nil -} - -func (x *TtsVoiceItem) GetSeq() uint32 { - if x != nil { - return x.Seq - } - return 0 -} diff --git a/client/pb/richmedia/tts.proto b/client/pb/richmedia/tts.proto index e15ad1c4..dbf4141c 100644 --- a/client/pb/richmedia/tts.proto +++ b/client/pb/richmedia/tts.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;richmedia"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/richmedia"; message TtsRspBody { uint32 ret_code = 1; diff --git a/client/pb/structmsg/structmsg.pb.go b/client/pb/structmsg/structmsg.pb.go index d8017749..f7404240 100644 --- a/client/pb/structmsg/structmsg.pb.go +++ b/client/pb/structmsg/structmsg.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: structmsg.proto +// source: pb/structmsg/structmsg.proto package structmsg @@ -8,20 +8,6 @@ type AddFrdSNInfo struct { SetSn int32 `protobuf:"varint,2,opt"` } -func (x *AddFrdSNInfo) GetNotSeeDynamic() int32 { - if x != nil { - return x.NotSeeDynamic - } - return 0 -} - -func (x *AddFrdSNInfo) GetSetSn() int32 { - if x != nil { - return x.SetSn - } - return 0 -} - type FlagInfo struct { GrpMsgKickAdmin int32 `protobuf:"varint,1,opt"` GrpMsgHiddenGrp int32 `protobuf:"varint,2,opt"` @@ -42,144 +28,11 @@ type FlagInfo struct { GrpMsgGetC2CInviteJoinGroup int32 `protobuf:"varint,17,opt"` } -func (x *FlagInfo) GetGrpMsgKickAdmin() int32 { - if x != nil { - return x.GrpMsgKickAdmin - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgHiddenGrp() int32 { - if x != nil { - return x.GrpMsgHiddenGrp - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgWordingDown() int32 { - if x != nil { - return x.GrpMsgWordingDown - } - return 0 -} - -func (x *FlagInfo) GetFrdMsgGetBusiCard() int32 { - if x != nil { - return x.FrdMsgGetBusiCard - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgGetOfficialAccount() int32 { - if x != nil { - return x.GrpMsgGetOfficialAccount - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgGetPayInGroup() int32 { - if x != nil { - return x.GrpMsgGetPayInGroup - } - return 0 -} - -func (x *FlagInfo) GetFrdMsgDiscuss2ManyChat() int32 { - if x != nil { - return x.FrdMsgDiscuss2ManyChat - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgNotAllowJoinGrpInviteNotFrd() int32 { - if x != nil { - return x.GrpMsgNotAllowJoinGrpInviteNotFrd - } - return 0 -} - -func (x *FlagInfo) GetFrdMsgNeedWaitingMsg() int32 { - if x != nil { - return x.FrdMsgNeedWaitingMsg - } - return 0 -} - -func (x *FlagInfo) GetFrdMsgUint32NeedAllUnreadMsg() int32 { - if x != nil { - return x.FrdMsgUint32NeedAllUnreadMsg - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgNeedAutoAdminWording() int32 { - if x != nil { - return x.GrpMsgNeedAutoAdminWording - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgGetTransferGroupMsgFlag() int32 { - if x != nil { - return x.GrpMsgGetTransferGroupMsgFlag - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgGetQuitPayGroupMsgFlag() int32 { - if x != nil { - return x.GrpMsgGetQuitPayGroupMsgFlag - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgSupportInviteAutoJoin() int32 { - if x != nil { - return x.GrpMsgSupportInviteAutoJoin - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgMaskInviteAutoJoin() int32 { - if x != nil { - return x.GrpMsgMaskInviteAutoJoin - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgGetDisbandedByAdmin() int32 { - if x != nil { - return x.GrpMsgGetDisbandedByAdmin - } - return 0 -} - -func (x *FlagInfo) GetGrpMsgGetC2CInviteJoinGroup() int32 { - if x != nil { - return x.GrpMsgGetC2CInviteJoinGroup - } - return 0 -} - type FriendInfo struct { MsgJointFriend string `protobuf:"bytes,1,opt"` MsgBlacklist string `protobuf:"bytes,2,opt"` } -func (x *FriendInfo) GetMsgJointFriend() string { - if x != nil { - return x.MsgJointFriend - } - return "" -} - -func (x *FriendInfo) GetMsgBlacklist() string { - if x != nil { - return x.MsgBlacklist - } - return "" -} - type SGroupInfo struct { GroupAuthType int32 `protobuf:"varint,1,opt"` DisplayAction int32 `protobuf:"varint,2,opt"` @@ -189,94 +42,17 @@ type SGroupInfo struct { AppPrivilegeFlag int32 `protobuf:"varint,6,opt"` } -func (x *SGroupInfo) GetGroupAuthType() int32 { - if x != nil { - return x.GroupAuthType - } - return 0 -} - -func (x *SGroupInfo) GetDisplayAction() int32 { - if x != nil { - return x.DisplayAction - } - return 0 -} - -func (x *SGroupInfo) GetMsgAlert() string { - if x != nil { - return x.MsgAlert - } - return "" -} - -func (x *SGroupInfo) GetMsgDetailAlert() string { - if x != nil { - return x.MsgDetailAlert - } - return "" -} - -func (x *SGroupInfo) GetMsgOtherAdminDone() string { - if x != nil { - return x.MsgOtherAdminDone - } - return "" -} - -func (x *SGroupInfo) GetAppPrivilegeFlag() int32 { - if x != nil { - return x.AppPrivilegeFlag - } - return 0 -} - type MsgInviteExt struct { SrcType int32 `protobuf:"varint,1,opt"` SrcCode int64 `protobuf:"varint,2,opt"` WaitState int32 `protobuf:"varint,3,opt"` } -func (x *MsgInviteExt) GetSrcType() int32 { - if x != nil { - return x.SrcType - } - return 0 -} - -func (x *MsgInviteExt) GetSrcCode() int64 { - if x != nil { - return x.SrcCode - } - return 0 -} - -func (x *MsgInviteExt) GetWaitState() int32 { - if x != nil { - return x.WaitState - } - return 0 -} - type MsgPayGroupExt struct { JoinGrpTime int64 `protobuf:"varint,1,opt"` QuitGrpTime int64 `protobuf:"varint,2,opt"` } -func (x *MsgPayGroupExt) GetJoinGrpTime() int64 { - if x != nil { - return x.JoinGrpTime - } - return 0 -} - -func (x *MsgPayGroupExt) GetQuitGrpTime() int64 { - if x != nil { - return x.QuitGrpTime - } - return 0 -} - type ReqNextSystemMsg struct { MsgNum int32 `protobuf:"varint,1,opt"` FollowingFriendSeq int64 `protobuf:"varint,2,opt"` @@ -288,62 +64,6 @@ type ReqNextSystemMsg struct { FriendMsgTypeFlag int64 `protobuf:"varint,8,opt"` } -func (x *ReqNextSystemMsg) GetMsgNum() int32 { - if x != nil { - return x.MsgNum - } - return 0 -} - -func (x *ReqNextSystemMsg) GetFollowingFriendSeq() int64 { - if x != nil { - return x.FollowingFriendSeq - } - return 0 -} - -func (x *ReqNextSystemMsg) GetFollowingGroupSeq() int64 { - if x != nil { - return x.FollowingGroupSeq - } - return 0 -} - -func (x *ReqNextSystemMsg) GetChecktype() int32 { - if x != nil { - return x.Checktype - } - return 0 -} - -func (x *ReqNextSystemMsg) GetFlag() *FlagInfo { - if x != nil { - return x.Flag - } - return nil -} - -func (x *ReqNextSystemMsg) GetLanguage() int32 { - if x != nil { - return x.Language - } - return 0 -} - -func (x *ReqNextSystemMsg) GetVersion() int32 { - if x != nil { - return x.Version - } - return 0 -} - -func (x *ReqNextSystemMsg) GetFriendMsgTypeFlag() int64 { - if x != nil { - return x.FriendMsgTypeFlag - } - return 0 -} - type ReqSystemMsg struct { MsgNum int32 `protobuf:"varint,1,opt"` LatestFriendSeq int64 `protobuf:"varint,2,opt"` @@ -352,41 +72,6 @@ type ReqSystemMsg struct { Language int32 `protobuf:"varint,5,opt"` } -func (x *ReqSystemMsg) GetMsgNum() int32 { - if x != nil { - return x.MsgNum - } - return 0 -} - -func (x *ReqSystemMsg) GetLatestFriendSeq() int64 { - if x != nil { - return x.LatestFriendSeq - } - return 0 -} - -func (x *ReqSystemMsg) GetLatestGroupSeq() int64 { - if x != nil { - return x.LatestGroupSeq - } - return 0 -} - -func (x *ReqSystemMsg) GetVersion() int32 { - if x != nil { - return x.Version - } - return 0 -} - -func (x *ReqSystemMsg) GetLanguage() int32 { - if x != nil { - return x.Language - } - return 0 -} - type ReqSystemMsgAction struct { MsgType int32 `protobuf:"varint,1,opt"` MsgSeq int64 `protobuf:"varint,2,opt"` @@ -399,69 +84,6 @@ type ReqSystemMsgAction struct { Language int32 `protobuf:"varint,9,opt"` } -func (x *ReqSystemMsgAction) GetMsgType() int32 { - if x != nil { - return x.MsgType - } - return 0 -} - -func (x *ReqSystemMsgAction) GetMsgSeq() int64 { - if x != nil { - return x.MsgSeq - } - return 0 -} - -func (x *ReqSystemMsgAction) GetReqUin() int64 { - if x != nil { - return x.ReqUin - } - return 0 -} - -func (x *ReqSystemMsgAction) GetSubType() int32 { - if x != nil { - return x.SubType - } - return 0 -} - -func (x *ReqSystemMsgAction) GetSrcId() int32 { - if x != nil { - return x.SrcId - } - return 0 -} - -func (x *ReqSystemMsgAction) GetSubSrcId() int32 { - if x != nil { - return x.SubSrcId - } - return 0 -} - -func (x *ReqSystemMsgAction) GetGroupMsgType() int32 { - if x != nil { - return x.GroupMsgType - } - return 0 -} - -func (x *ReqSystemMsgAction) GetActionInfo() *SystemMsgActionInfo { - if x != nil { - return x.ActionInfo - } - return nil -} - -func (x *ReqSystemMsgAction) GetLanguage() int32 { - if x != nil { - return x.Language - } - return 0 -} - type ReqSystemMsgNew struct { MsgNum int32 `protobuf:"varint,1,opt"` LatestFriendSeq int64 `protobuf:"varint,2,opt"` @@ -476,83 +98,6 @@ type ReqSystemMsgNew struct { ReqMsgType int32 `protobuf:"varint,11,opt"` } -func (x *ReqSystemMsgNew) GetMsgNum() int32 { - if x != nil { - return x.MsgNum - } - return 0 -} - -func (x *ReqSystemMsgNew) GetLatestFriendSeq() int64 { - if x != nil { - return x.LatestFriendSeq - } - return 0 -} - -func (x *ReqSystemMsgNew) GetLatestGroupSeq() int64 { - if x != nil { - return x.LatestGroupSeq - } - return 0 -} - -func (x *ReqSystemMsgNew) GetVersion() int32 { - if x != nil { - return x.Version - } - return 0 -} - -func (x *ReqSystemMsgNew) GetChecktype() int32 { - if x != nil { - return x.Checktype - } - return 0 -} - -func (x *ReqSystemMsgNew) GetFlag() *FlagInfo { - if x != nil { - return x.Flag - } - return nil -} - -func (x *ReqSystemMsgNew) GetLanguage() int32 { - if x != nil { - return x.Language - } - return 0 -} - -func (x *ReqSystemMsgNew) GetIsGetFrdRibbon() bool { - if x != nil { - return x.IsGetFrdRibbon - } - return false -} - -func (x *ReqSystemMsgNew) GetIsGetGrpRibbon() bool { - if x != nil { - return x.IsGetGrpRibbon - } - return false -} - -func (x *ReqSystemMsgNew) GetFriendMsgTypeFlag() int64 { - if x != nil { - return x.FriendMsgTypeFlag - } - return 0 -} - -func (x *ReqSystemMsgNew) GetReqMsgType() int32 { - if x != nil { - return x.ReqMsgType - } - return 0 -} - type ReqSystemMsgRead struct { LatestFriendSeq int64 `protobuf:"varint,1,opt"` LatestGroupSeq int64 `protobuf:"varint,2,opt"` @@ -560,53 +105,11 @@ type ReqSystemMsgRead struct { Checktype int32 `protobuf:"varint,4,opt"` } -func (x *ReqSystemMsgRead) GetLatestFriendSeq() int64 { - if x != nil { - return x.LatestFriendSeq - } - return 0 -} - -func (x *ReqSystemMsgRead) GetLatestGroupSeq() int64 { - if x != nil { - return x.LatestGroupSeq - } - return 0 -} - -func (x *ReqSystemMsgRead) GetType() int32 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *ReqSystemMsgRead) GetChecktype() int32 { - if x != nil { - return x.Checktype - } - return 0 -} - type RspHead struct { Result int32 `protobuf:"varint,1,opt"` MsgFail string `protobuf:"bytes,2,opt"` } -func (x *RspHead) GetResult() int32 { - if x != nil { - return x.Result - } - return 0 -} - -func (x *RspHead) GetMsgFail() string { - if x != nil { - return x.MsgFail - } - return "" -} - type RspNextSystemMsg struct { Head *RspHead `protobuf:"bytes,1,opt"` Msgs []*StructMsg `protobuf:"bytes,2,rep"` @@ -618,62 +121,6 @@ type RspNextSystemMsg struct { UnReadCount3 int32 `protobuf:"varint,102,opt"` } -func (x *RspNextSystemMsg) GetHead() *RspHead { - if x != nil { - return x.Head - } - return nil -} - -func (x *RspNextSystemMsg) GetMsgs() []*StructMsg { - if x != nil { - return x.Msgs - } - return nil -} - -func (x *RspNextSystemMsg) GetFollowingFriendSeq() int64 { - if x != nil { - return x.FollowingFriendSeq - } - return 0 -} - -func (x *RspNextSystemMsg) GetFollowingGroupSeq() int64 { - if x != nil { - return x.FollowingGroupSeq - } - return 0 -} - -func (x *RspNextSystemMsg) GetChecktype() int32 { - if x != nil { - return x.Checktype - } - return 0 -} - -func (x *RspNextSystemMsg) GetGameNick() string { - if x != nil { - return x.GameNick - } - return "" -} - -func (x *RspNextSystemMsg) GetUndecidForQim() []byte { - if x != nil { - return x.UndecidForQim - } - return nil -} - -func (x *RspNextSystemMsg) GetUnReadCount3() int32 { - if x != nil { - return x.UnReadCount3 - } - return 0 -} - type RspSystemMsg struct { Head *RspHead `protobuf:"bytes,1,opt"` Msgs []*StructMsg `protobuf:"bytes,2,rep"` @@ -685,62 +132,6 @@ type RspSystemMsg struct { MsgDisplay string `protobuf:"bytes,8,opt"` } -func (x *RspSystemMsg) GetHead() *RspHead { - if x != nil { - return x.Head - } - return nil -} - -func (x *RspSystemMsg) GetMsgs() []*StructMsg { - if x != nil { - return x.Msgs - } - return nil -} - -func (x *RspSystemMsg) GetUnreadCount() int32 { - if x != nil { - return x.UnreadCount - } - return 0 -} - -func (x *RspSystemMsg) GetLatestFriendSeq() int64 { - if x != nil { - return x.LatestFriendSeq - } - return 0 -} - -func (x *RspSystemMsg) GetLatestGroupSeq() int64 { - if x != nil { - return x.LatestGroupSeq - } - return 0 -} - -func (x *RspSystemMsg) GetFollowingFriendSeq() int64 { - if x != nil { - return x.FollowingFriendSeq - } - return 0 -} - -func (x *RspSystemMsg) GetFollowingGroupSeq() int64 { - if x != nil { - return x.FollowingGroupSeq - } - return 0 -} - -func (x *RspSystemMsg) GetMsgDisplay() string { - if x != nil { - return x.MsgDisplay - } - return "" -} - type RspSystemMsgAction struct { Head *RspHead `protobuf:"bytes,1,opt"` MsgDetail string `protobuf:"bytes,2,opt"` @@ -749,41 +140,6 @@ type RspSystemMsgAction struct { RemarkResult int32 `protobuf:"varint,6,opt"` } -func (x *RspSystemMsgAction) GetHead() *RspHead { - if x != nil { - return x.Head - } - return nil -} - -func (x *RspSystemMsgAction) GetMsgDetail() string { - if x != nil { - return x.MsgDetail - } - return "" -} - -func (x *RspSystemMsgAction) GetType() int32 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *RspSystemMsgAction) GetMsgInvalidDecided() string { - if x != nil { - return x.MsgInvalidDecided - } - return "" -} - -func (x *RspSystemMsgAction) GetRemarkResult() int32 { - if x != nil { - return x.RemarkResult - } - return 0 -} - type RspSystemMsgNew struct { Head *RspHead `protobuf:"bytes,1,opt"` UnreadFriendCount int32 `protobuf:"varint,2,opt"` @@ -805,159 +161,12 @@ type RspSystemMsgNew struct { UnReadCount3 int32 `protobuf:"varint,102,opt"` } -func (x *RspSystemMsgNew) GetHead() *RspHead { - if x != nil { - return x.Head - } - return nil -} - -func (x *RspSystemMsgNew) GetUnreadFriendCount() int32 { - if x != nil { - return x.UnreadFriendCount - } - return 0 -} - -func (x *RspSystemMsgNew) GetUnreadGroupCount() int32 { - if x != nil { - return x.UnreadGroupCount - } - return 0 -} - -func (x *RspSystemMsgNew) GetLatestFriendSeq() int64 { - if x != nil { - return x.LatestFriendSeq - } - return 0 -} - -func (x *RspSystemMsgNew) GetLatestGroupSeq() int64 { - if x != nil { - return x.LatestGroupSeq - } - return 0 -} - -func (x *RspSystemMsgNew) GetFollowingFriendSeq() int64 { - if x != nil { - return x.FollowingFriendSeq - } - return 0 -} - -func (x *RspSystemMsgNew) GetFollowingGroupSeq() int64 { - if x != nil { - return x.FollowingGroupSeq - } - return 0 -} - -func (x *RspSystemMsgNew) GetFriendmsgs() []*StructMsg { - if x != nil { - return x.Friendmsgs - } - return nil -} - -func (x *RspSystemMsgNew) GetGroupmsgs() []*StructMsg { - if x != nil { - return x.Groupmsgs - } - return nil -} - -func (x *RspSystemMsgNew) GetMsgRibbonFriend() *StructMsg { - if x != nil { - return x.MsgRibbonFriend - } - return nil -} - -func (x *RspSystemMsgNew) GetMsgRibbonGroup() *StructMsg { - if x != nil { - return x.MsgRibbonGroup - } - return nil -} - -func (x *RspSystemMsgNew) GetMsgDisplay() string { - if x != nil { - return x.MsgDisplay - } - return "" -} - -func (x *RspSystemMsgNew) GetGrpMsgDisplay() string { - if x != nil { - return x.GrpMsgDisplay - } - return "" -} - -func (x *RspSystemMsgNew) GetOver() int32 { - if x != nil { - return x.Over - } - return 0 -} - -func (x *RspSystemMsgNew) GetChecktype() int32 { - if x != nil { - return x.Checktype - } - return 0 -} - -func (x *RspSystemMsgNew) GetGameNick() string { - if x != nil { - return x.GameNick - } - return "" -} - -func (x *RspSystemMsgNew) GetUndecidForQim() []byte { - if x != nil { - return x.UndecidForQim - } - return nil -} - -func (x *RspSystemMsgNew) GetUnReadCount3() int32 { - if x != nil { - return x.UnReadCount3 - } - return 0 -} - type RspSystemMsgRead struct { Head *RspHead `protobuf:"bytes,1,opt"` Type int32 `protobuf:"varint,2,opt"` Checktype int32 `protobuf:"varint,3,opt"` } -func (x *RspSystemMsgRead) GetHead() *RspHead { - if x != nil { - return x.Head - } - return nil -} - -func (x *RspSystemMsgRead) GetType() int32 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *RspSystemMsgRead) GetChecktype() int32 { - if x != nil { - return x.Checktype - } - return 0 -} - type StructMsg struct { Version int32 `protobuf:"varint,1,opt"` MsgType int32 `protobuf:"varint,2,opt"` @@ -968,55 +177,6 @@ type StructMsg struct { Msg *SystemMsg `protobuf:"bytes,50,opt"` } -func (x *StructMsg) GetVersion() int32 { - if x != nil { - return x.Version - } - return 0 -} - -func (x *StructMsg) GetMsgType() int32 { - if x != nil { - return x.MsgType - } - return 0 -} - -func (x *StructMsg) GetMsgSeq() int64 { - if x != nil { - return x.MsgSeq - } - return 0 -} - -func (x *StructMsg) GetMsgTime() int64 { - if x != nil { - return x.MsgTime - } - return 0 -} - -func (x *StructMsg) GetReqUin() int64 { - if x != nil { - return x.ReqUin - } - return 0 -} - -func (x *StructMsg) GetUnreadFlag() int32 { - if x != nil { - return x.UnreadFlag - } - return 0 -} - -func (x *StructMsg) GetMsg() *SystemMsg { - if x != nil { - return x.Msg - } - return nil -} - type SystemMsg struct { SubType int32 `protobuf:"varint,1,opt"` MsgTitle string `protobuf:"bytes,2,opt"` @@ -1072,370 +232,6 @@ type SystemMsg struct { CardSwitch int32 `protobuf:"varint,101,opt"` } -func (x *SystemMsg) GetSubType() int32 { - if x != nil { - return x.SubType - } - return 0 -} - -func (x *SystemMsg) GetMsgTitle() string { - if x != nil { - return x.MsgTitle - } - return "" -} - -func (x *SystemMsg) GetMsgDescribe() string { - if x != nil { - return x.MsgDescribe - } - return "" -} - -func (x *SystemMsg) GetMsgAdditional() string { - if x != nil { - return x.MsgAdditional - } - return "" -} - -func (x *SystemMsg) GetMsgSource() string { - if x != nil { - return x.MsgSource - } - return "" -} - -func (x *SystemMsg) GetMsgDecided() string { - if x != nil { - return x.MsgDecided - } - return "" -} - -func (x *SystemMsg) GetSrcId() int32 { - if x != nil { - return x.SrcId - } - return 0 -} - -func (x *SystemMsg) GetSubSrcId() int32 { - if x != nil { - return x.SubSrcId - } - return 0 -} - -func (x *SystemMsg) GetActions() []*SystemMsgAction { - if x != nil { - return x.Actions - } - return nil -} - -func (x *SystemMsg) GetGroupCode() int64 { - if x != nil { - return x.GroupCode - } - return 0 -} - -func (x *SystemMsg) GetActionUin() int64 { - if x != nil { - return x.ActionUin - } - return 0 -} - -func (x *SystemMsg) GetGroupMsgType() int32 { - if x != nil { - return x.GroupMsgType - } - return 0 -} - -func (x *SystemMsg) GetGroupInviterRole() int32 { - if x != nil { - return x.GroupInviterRole - } - return 0 -} - -func (x *SystemMsg) GetFriendInfo() *FriendInfo { - if x != nil { - return x.FriendInfo - } - return nil -} - -func (x *SystemMsg) GetGroupInfo() *SGroupInfo { - if x != nil { - return x.GroupInfo - } - return nil -} - -func (x *SystemMsg) GetActorUin() int64 { - if x != nil { - return x.ActorUin - } - return 0 -} - -func (x *SystemMsg) GetMsgActorDescribe() string { - if x != nil { - return x.MsgActorDescribe - } - return "" -} - -func (x *SystemMsg) GetMsgAdditionalList() string { - if x != nil { - return x.MsgAdditionalList - } - return "" -} - -func (x *SystemMsg) GetRelation() int32 { - if x != nil { - return x.Relation - } - return 0 -} - -func (x *SystemMsg) GetReqsubtype() int32 { - if x != nil { - return x.Reqsubtype - } - return 0 -} - -func (x *SystemMsg) GetCloneUin() int64 { - if x != nil { - return x.CloneUin - } - return 0 -} - -func (x *SystemMsg) GetDiscussUin() int64 { - if x != nil { - return x.DiscussUin - } - return 0 -} - -func (x *SystemMsg) GetEimGroupId() int64 { - if x != nil { - return x.EimGroupId - } - return 0 -} - -func (x *SystemMsg) GetMsgInviteExtinfo() *MsgInviteExt { - if x != nil { - return x.MsgInviteExtinfo - } - return nil -} - -func (x *SystemMsg) GetMsgPayGroupExtinfo() *MsgPayGroupExt { - if x != nil { - return x.MsgPayGroupExtinfo - } - return nil -} - -func (x *SystemMsg) GetSourceFlag() int32 { - if x != nil { - return x.SourceFlag - } - return 0 -} - -func (x *SystemMsg) GetGameNick() []byte { - if x != nil { - return x.GameNick - } - return nil -} - -func (x *SystemMsg) GetGameMsg() []byte { - if x != nil { - return x.GameMsg - } - return nil -} - -func (x *SystemMsg) GetGroupFlagext3() int32 { - if x != nil { - return x.GroupFlagext3 - } - return 0 -} - -func (x *SystemMsg) GetGroupOwnerUin() int64 { - if x != nil { - return x.GroupOwnerUin - } - return 0 -} - -func (x *SystemMsg) GetDoubtFlag() int32 { - if x != nil { - return x.DoubtFlag - } - return 0 -} - -func (x *SystemMsg) GetWarningTips() []byte { - if x != nil { - return x.WarningTips - } - return nil -} - -func (x *SystemMsg) GetNameMore() []byte { - if x != nil { - return x.NameMore - } - return nil -} - -func (x *SystemMsg) GetReqUinFaceid() int32 { - if x != nil { - return x.ReqUinFaceid - } - return 0 -} - -func (x *SystemMsg) GetReqUinNick() string { - if x != nil { - return x.ReqUinNick - } - return "" -} - -func (x *SystemMsg) GetGroupName() string { - if x != nil { - return x.GroupName - } - return "" -} - -func (x *SystemMsg) GetActionUinNick() string { - if x != nil { - return x.ActionUinNick - } - return "" -} - -func (x *SystemMsg) GetMsgQna() string { - if x != nil { - return x.MsgQna - } - return "" -} - -func (x *SystemMsg) GetMsgDetail() string { - if x != nil { - return x.MsgDetail - } - return "" -} - -func (x *SystemMsg) GetGroupExtFlag() int32 { - if x != nil { - return x.GroupExtFlag - } - return 0 -} - -func (x *SystemMsg) GetActorUinNick() string { - if x != nil { - return x.ActorUinNick - } - return "" -} - -func (x *SystemMsg) GetPicUrl() string { - if x != nil { - return x.PicUrl - } - return "" -} - -func (x *SystemMsg) GetCloneUinNick() string { - if x != nil { - return x.CloneUinNick - } - return "" -} - -func (x *SystemMsg) GetReqUinBusinessCard() string { - if x != nil { - return x.ReqUinBusinessCard - } - return "" -} - -func (x *SystemMsg) GetEimGroupIdName() string { - if x != nil { - return x.EimGroupIdName - } - return "" -} - -func (x *SystemMsg) GetReqUinPreRemark() string { - if x != nil { - return x.ReqUinPreRemark - } - return "" -} - -func (x *SystemMsg) GetActionUinQqNick() string { - if x != nil { - return x.ActionUinQqNick - } - return "" -} - -func (x *SystemMsg) GetActionUinRemark() string { - if x != nil { - return x.ActionUinRemark - } - return "" -} - -func (x *SystemMsg) GetReqUinGender() int32 { - if x != nil { - return x.ReqUinGender - } - return 0 -} - -func (x *SystemMsg) GetReqUinAge() int32 { - if x != nil { - return x.ReqUinAge - } - return 0 -} - -func (x *SystemMsg) GetC2CInviteJoinGroupFlag() int32 { - if x != nil { - return x.C2CInviteJoinGroupFlag - } - return 0 -} - -func (x *SystemMsg) GetCardSwitch() int32 { - if x != nil { - return x.CardSwitch - } - return 0 -} - type SystemMsgAction struct { Name string `protobuf:"bytes,1,opt"` Result string `protobuf:"bytes,2,opt"` @@ -1444,41 +240,6 @@ type SystemMsgAction struct { DetailName string `protobuf:"bytes,5,opt"` } -func (x *SystemMsgAction) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *SystemMsgAction) GetResult() string { - if x != nil { - return x.Result - } - return "" -} - -func (x *SystemMsgAction) GetAction() int32 { - if x != nil { - return x.Action - } - return 0 -} - -func (x *SystemMsgAction) GetActionInfo() *SystemMsgActionInfo { - if x != nil { - return x.ActionInfo - } - return nil -} - -func (x *SystemMsgAction) GetDetailName() string { - if x != nil { - return x.DetailName - } - return "" -} - type SystemMsgActionInfo struct { Type int32 `protobuf:"varint,1,opt"` GroupCode int64 `protobuf:"varint,2,opt"` @@ -1489,59 +250,3 @@ type SystemMsgActionInfo struct { Blacklist bool `protobuf:"varint,53,opt"` AddFrdSNInfo *AddFrdSNInfo `protobuf:"bytes,54,opt"` } - -func (x *SystemMsgActionInfo) GetType() int32 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *SystemMsgActionInfo) GetGroupCode() int64 { - if x != nil { - return x.GroupCode - } - return 0 -} - -func (x *SystemMsgActionInfo) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - -func (x *SystemMsgActionInfo) GetMsg() string { - if x != nil { - return x.Msg - } - return "" -} - -func (x *SystemMsgActionInfo) GetGroupId() int32 { - if x != nil { - return x.GroupId - } - return 0 -} - -func (x *SystemMsgActionInfo) GetRemark() string { - if x != nil { - return x.Remark - } - return "" -} - -func (x *SystemMsgActionInfo) GetBlacklist() bool { - if x != nil { - return x.Blacklist - } - return false -} - -func (x *SystemMsgActionInfo) GetAddFrdSNInfo() *AddFrdSNInfo { - if x != nil { - return x.AddFrdSNInfo - } - return nil -} diff --git a/client/pb/structmsg/structmsg.proto b/client/pb/structmsg/structmsg.proto index 790fb952..3463f719 100644 --- a/client/pb/structmsg/structmsg.proto +++ b/client/pb/structmsg/structmsg.proto @@ -1,6 +1,6 @@ syntax = "proto3"; -option go_package = "./;structmsg"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/structmsg"; message AddFrdSNInfo { int32 notSeeDynamic = 1; diff --git a/client/pb/web/WebSsoBody.pb.go b/client/pb/web/WebSsoBody.pb.go index 49a5e55f..f9c097da 100644 --- a/client/pb/web/WebSsoBody.pb.go +++ b/client/pb/web/WebSsoBody.pb.go @@ -1,5 +1,5 @@ // Code generated by protoc-gen-golite. DO NOT EDIT. -// source: WebSsoBody.proto +// source: pb/web/WebSsoBody.proto package web @@ -50,13 +50,6 @@ type STServiceMonitReq struct { List []*STServiceMonitItem `protobuf:"bytes,1,rep"` } -func (x *STServiceMonitReq) GetList() []*STServiceMonitItem { - if x != nil { - return x.List - } - return nil -} - type WebSsoControlData struct { Frequency *uint32 `protobuf:"varint,1,opt"` PackageSize *uint32 `protobuf:"varint,2,opt"` @@ -146,10 +139,3 @@ func (x *WebSsoResponseBody) GetData() string { } return "" } - -func (x *WebSsoResponseBody) GetControlData() *WebSsoControlData { - if x != nil { - return x.ControlData - } - return nil -} diff --git a/client/pb/web/WebSsoBody.proto b/client/pb/web/WebSsoBody.proto index 895ccab8..5fc8f92d 100644 --- a/client/pb/web/WebSsoBody.proto +++ b/client/pb/web/WebSsoBody.proto @@ -1,6 +1,6 @@ syntax = "proto2"; -option go_package = "./;web"; +option go_package = "github.com/Mrs4s/MiraiGo/client/pb/web"; message STServiceMonitItem { optional string cmd = 1; diff --git a/client/sync.go b/client/sync.go index 362cfd19..cdb48647 100644 --- a/client/sync.go +++ b/client/sync.go @@ -401,7 +401,7 @@ func decodeC2CSyncPacket(c *QQClient, info *network.IncomingPacketInfo, payload if err := proto.Unmarshal(payload, &m); err != nil { return nil, err } - _ = c.sendPacket(c.buildDeleteOnlinePushPacket(c.Uin, m.GetSvrip(), m.GetPushToken(), info.SequenceId, nil)) + _ = c.sendPacket(c.buildDeleteOnlinePushPacket(c.Uin, m.GetSvrip(), m.PushToken, info.SequenceId, nil)) c.commMsgProcessor(m.Msg, info) return nil, nil } diff --git a/go.mod b/go.mod index 9983d9eb..e265f018 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/Mrs4s/MiraiGo go 1.17 require ( - github.com/RomiChan/protobuf v0.0.0-20211223055824-048df49a8956 + github.com/RomiChan/protobuf v0.0.0-20220213164748-44b69c8bdec0 github.com/fumiama/imgsz v0.0.2 github.com/pierrec/lz4/v4 v4.1.11 github.com/pkg/errors v0.9.1 diff --git a/go.sum b/go.sum index ba1517df..dfef8f81 100644 --- a/go.sum +++ b/go.sum @@ -1,12 +1,10 @@ -github.com/RomiChan/protobuf v0.0.0-20211223055824-048df49a8956 h1:hnaAkKz4t+xpSNVp5mnuloRMd3Rj2Lfg5biZ3emv//c= -github.com/RomiChan/protobuf v0.0.0-20211223055824-048df49a8956/go.mod h1:CKKOWC7mBxd36zxsCB1V8DTrwlTNRQvkSVbYqyUiGEE= +github.com/RomiChan/protobuf v0.0.0-20220213164748-44b69c8bdec0 h1:8CK7Hg+CRGTFhpjvp5V+7wd8/TkuZ6fSuztLVV3bwoQ= +github.com/RomiChan/protobuf v0.0.0-20220213164748-44b69c8bdec0/go.mod h1:CKKOWC7mBxd36zxsCB1V8DTrwlTNRQvkSVbYqyUiGEE= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/fumiama/imgsz v0.0.2 h1:fAkC0FnIscdKOXwAxlyw3EUba5NzxZdSxGaq3Uyfxak= github.com/fumiama/imgsz v0.0.2/go.mod h1:dR71mI3I2O5u6+PCpd47M9TZptzP+39tRBcbdIkoqM4= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/pierrec/lz4/v4 v4.1.11 h1:LVs17FAZJFOjgmJXl9Tf13WfLUvZq7/RjfEJrnwZ9OE= github.com/pierrec/lz4/v4 v4.1.11/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -27,9 +25,6 @@ go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/message/message.go b/message/message.go index ed040349..96a48ec3 100644 --- a/message/message.go +++ b/message/message.go @@ -370,7 +370,7 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement { Size: elem.VideoFile.GetFileSize(), ThumbSize: elem.VideoFile.GetThumbFileSize(), Md5: elem.VideoFile.FileMd5, - ThumbMd5: elem.VideoFile.GetThumbFileMd5(), + ThumbMd5: elem.VideoFile.ThumbFileMd5, }, } } @@ -482,13 +482,13 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement { } if elem.MarketFace != nil { face := &MarketFaceElement{ - Name: utils.B2S(elem.MarketFace.GetFaceName()), + Name: utils.B2S(elem.MarketFace.FaceName), FaceId: elem.MarketFace.FaceId, TabId: int32(elem.MarketFace.GetTabId()), ItemType: int32(elem.MarketFace.GetItemType()), SubType: int32(elem.MarketFace.GetSubType()), MediaType: int32(elem.MarketFace.GetMediaType()), - EncryptKey: elem.MarketFace.GetKey(), + EncryptKey: elem.MarketFace.Key, MagicValue: utils.B2S(elem.MarketFace.Mobileparam), } if face.Name == "[骰子]" || face.Name == "[随机骰子]" { @@ -588,7 +588,7 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement { _ = proto.Unmarshal(elem.CommonElem.PbElem, animatedStickerMsg) sticker := &AnimatedSticker{ ID: int32(animatedStickerMsg.GetQsid()), - Name: strings.TrimPrefix(string(animatedStickerMsg.GetText()), "/"), + Name: strings.TrimPrefix(string(animatedStickerMsg.Text), "/"), } return []IMessageElement{sticker} // sticker 永远为单独消息 }