diff --git a/client/builders.go b/client/builders.go index 1e0acaa0..2312d460 100644 --- a/client/builders.go +++ b/client/builders.go @@ -4,7 +4,11 @@ import ( "crypto/md5" "encoding/hex" "fmt" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x89a" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x8a0" "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x8fc" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0xd79" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0xed3" "math/rand" "time" @@ -19,11 +23,9 @@ import ( "github.com/Mrs4s/MiraiGo/client/pb" "github.com/Mrs4s/MiraiGo/client/pb/cmd0x352" "github.com/Mrs4s/MiraiGo/client/pb/msg" - "github.com/Mrs4s/MiraiGo/client/pb/oidb" "github.com/Mrs4s/MiraiGo/client/pb/profilecard" "github.com/Mrs4s/MiraiGo/client/pb/qweb" "github.com/Mrs4s/MiraiGo/client/pb/structmsg" - "github.com/Mrs4s/MiraiGo/message" ) var ( @@ -918,9 +920,9 @@ func (c *QQClient) buildEditSpecialTitlePacket(groupCode, memberUin int64, newTi } // OidbSvc.0x89a_0 -func (c *QQClient) buildGroupOperationPacket(body *oidb.D89AReqBody) (uint16, []byte) { +func (c *QQClient) buildGroupOperationPacket(body *oidb0x89a.ReqBody) (uint16, []byte) { seq := c.nextSeq() - b, _ := proto.Marshal(body) + b, _ := body.Marshal() payload := c.packOIDBPackage(2202, 0, b) packet := packets2.BuildUniPacket(c.Uin, seq, "OidbSvc.0x89a_0", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet @@ -928,9 +930,9 @@ func (c *QQClient) buildGroupOperationPacket(body *oidb.D89AReqBody) (uint16, [] // OidbSvc.0x89a_0 func (c *QQClient) buildGroupNameUpdatePacket(groupCode int64, newName string) (uint16, []byte) { - body := &oidb.D89AReqBody{ - GroupCode: groupCode, - StGroupInfo: &oidb.D89AGroupinfo{ + body := &oidb0x89a.ReqBody{ + GroupCode: &groupCode, + StGroupInfo: &oidb0x89a.GroupInfo{ IngGroupName: []byte(newName), }, } @@ -938,9 +940,9 @@ func (c *QQClient) buildGroupNameUpdatePacket(groupCode int64, newName string) ( } func (c *QQClient) buildGroupMemoUpdatePacket(groupCode int64, newMemo string) (uint16, []byte) { - body := &oidb.D89AReqBody{ - GroupCode: groupCode, - StGroupInfo: &oidb.D89AGroupinfo{ + body := &oidb0x89a.ReqBody{ + GroupCode: &groupCode, + StGroupInfo: &oidb0x89a.GroupInfo{ IngGroupMemo: []byte(newMemo), }, } @@ -949,15 +951,15 @@ func (c *QQClient) buildGroupMemoUpdatePacket(groupCode int64, newMemo string) ( // OidbSvc.0x89a_0 func (c *QQClient) buildGroupMuteAllPacket(groupCode int64, mute bool) (uint16, []byte) { - body := &oidb.D89AReqBody{ - GroupCode: groupCode, - StGroupInfo: &oidb.D89AGroupinfo{ - ShutupTime: &oidb.D89AGroupinfo_Val{Val: func() int32 { + body := &oidb0x89a.ReqBody{ + GroupCode: &groupCode, + StGroupInfo: &oidb0x89a.GroupInfo{ + ShutupTime: proto.Int32(func() int32 { if mute { return 268435455 } return 0 - }()}, + }()), }, } return c.buildGroupOperationPacket(body) @@ -970,18 +972,18 @@ func (c *QQClient) buildGroupKickPacket(groupCode, memberUin int64, kickMsg stri if block { flagBlock = 1 } - body := &oidb.D8A0ReqBody{ - OptUint64GroupCode: groupCode, - MsgKickList: []*oidb.D8A0KickMemberInfo{ + body := &oidb0x8a0.ReqBody{ + OptUint64GroupCode: &groupCode, + MsgKickList: []*oidb0x8a0.KickMemberInfo{ { - OptUint32Operate: 5, - OptUint64MemberUin: memberUin, - OptUint32Flag: int32(flagBlock), + OptUint32Operate: proto.Int32(5), + OptUint64MemberUin: &memberUin, + OptUint32Flag: proto.Int32(int32(flagBlock)), }, }, KickMsg: []byte(kickMsg), } - b, _ := proto.Marshal(body) + b, _ := body.Marshal() payload := c.packOIDBPackage(2208, 0, b) packet := packets2.BuildUniPacket(c.Uin, seq, "OidbSvc.0x8a0_0", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet @@ -1004,11 +1006,11 @@ func (c *QQClient) buildGroupMutePacket(groupCode, memberUin int64, time uint32) // OidbSvc.0xed3 func (c *QQClient) buildGroupPokePacket(groupCode, target int64) (uint16, []byte) { seq := c.nextSeq() - body := &oidb.DED3ReqBody{ - ToUin: target, - GroupCode: groupCode, + body := &oidb0xed3.ReqBody{ + ToUin: &target, + GroupCode: &groupCode, } - b, _ := proto.Marshal(body) + b, _ := body.Marshal() payload := c.packOIDBPackage(3795, 1, b) packet := packets2.BuildUniPacket(c.Uin, seq, "OidbSvc.0xed3", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet @@ -1017,11 +1019,11 @@ func (c *QQClient) buildGroupPokePacket(groupCode, target int64) (uint16, []byte // OidbSvc.0xed3 func (c *QQClient) buildFriendPokePacket(target int64) (uint16, []byte) { seq := c.nextSeq() - body := &oidb.DED3ReqBody{ - ToUin: target, - AioUin: target, + body := &oidb0xed3.ReqBody{ + ToUin: &target, + AioUin: &target, } - b, _ := proto.Marshal(body) + b, _ := body.Marshal() payload := c.packOIDBPackage(3795, 1, b) packet := packets2.BuildUniPacket(c.Uin, seq, "OidbSvc.0xed3", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet @@ -1090,8 +1092,8 @@ func (c *QQClient) buildAppInfoRequestPacket(id string) (uint16, []byte) { func (c *QQClient) buildWordSegmentationPacket(data []byte) (uint16, []byte) { seq := c.nextSeq() - payload := c.packOIDBPackageProto(3449, 1, &oidb.D79ReqBody{ - Uin: uint64(c.Uin), + payload := c.packOIDBPackageProto2(3449, 1, &oidb0xd79.ReqBody{ + Uin: proto.Uint64(uint64(c.Uin)), Content: data, Qua: []byte("and_537065262_8.4.5"), }) @@ -1099,10 +1101,11 @@ func (c *QQClient) buildWordSegmentationPacket(data []byte) (uint16, []byte) { return seq, packet } +/* // OidbSvc.0xdad_1 func (c *QQClient) sendGroupGiftPacket(groupCode, uin uint64, productID message.GroupGift) (uint16, []byte) { seq := c.nextSeq() - payload := c.packOIDBPackageProto(3501, 1, &oidb.DADReqBody{ + payload := c.packOIDBPackageProto2(3501, 1, &oidb0xdad.ReqBody{ Client: 1, ProductId: uint64(productID), ToUin: uin, @@ -1116,3 +1119,4 @@ func (c *QQClient) sendGroupGiftPacket(groupCode, uin uint64, productID message. packet := packets2.BuildUniPacket(c.Uin, seq, "OidbSvc.0xdad_1", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet } +*/ diff --git a/client/client.go b/client/client.go index a9045232..c24350b1 100644 --- a/client/client.go +++ b/client/client.go @@ -835,10 +835,12 @@ func (c *QQClient) SetCustomServer(servers []*net.TCPAddr) { c.servers = append(servers, c.servers...) } +/* func (c *QQClient) SendGroupGift(groupCode, uin uint64, gift message.GroupGift) { _, packet := c.sendGroupGiftPacket(groupCode, uin, gift) _ = c.sendPacket(packet) } +*/ func (c *QQClient) registerClient() error { _, err := c.sendAndWait(c.buildClientRegisterPacket()) diff --git a/client/decoders.go b/client/decoders.go index 22602626..cae4a569 100644 --- a/client/decoders.go +++ b/client/decoders.go @@ -4,6 +4,9 @@ import ( "crypto/md5" "encoding/hex" "fmt" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0xd79" + "go.dedis.ch/protobuf" "net" "strconv" "strings" @@ -19,7 +22,6 @@ import ( "github.com/Mrs4s/MiraiGo/client/pb/cmd0x352" "github.com/Mrs4s/MiraiGo/client/pb/cmd0x6ff" "github.com/Mrs4s/MiraiGo/client/pb/msg" - "github.com/Mrs4s/MiraiGo/client/pb/oidb" "github.com/Mrs4s/MiraiGo/client/pb/profilecard" "github.com/Mrs4s/MiraiGo/client/pb/qweb" "github.com/Mrs4s/MiraiGo/client/pb/structmsg" @@ -790,11 +792,11 @@ func decodeMSFOfflinePacket(c *QQClient, _ *incomingPacketInfo, _ []byte) (inter // OidbSvc.0xd79 func decodeWordSegmentation(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := oidb.OIDBSSOPkg{} - rsp := &oidb.D79RspBody{} - if err := proto.Unmarshal(payload, &pkg); err != nil { + rsp := &oidb0xd79.RspBody{} + if err := protobuf.Decode(payload, &pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } - if err := proto.Unmarshal(pkg.Bodybuffer, rsp); err != nil { + if err := protobuf.Decode(pkg.Bodybuffer, rsp); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } if rsp.Content != nil { diff --git a/client/global.go b/client/global.go index 898c81af..62a0fd12 100644 --- a/client/global.go +++ b/client/global.go @@ -5,6 +5,7 @@ import ( "encoding/hex" "encoding/json" "fmt" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb" "math/rand" "net" "sort" @@ -20,7 +21,6 @@ import ( "github.com/Mrs4s/MiraiGo/binary/jce" devinfo "github.com/Mrs4s/MiraiGo/client/pb" "github.com/Mrs4s/MiraiGo/client/pb/msg" - "github.com/Mrs4s/MiraiGo/client/pb/oidb" "github.com/Mrs4s/MiraiGo/message" "github.com/Mrs4s/MiraiGo/utils" ) @@ -644,23 +644,23 @@ func (p requestParams) int32(k string) int32 { return i.(int32) } -func (c *QQClient) packOIDBPackage(cmd, serviceType int32, body []byte) []byte { +func (c *QQClient) packOIDBPackage(cmd, serviceType uint32, body []byte) []byte { pkg := &oidb.OIDBSSOPkg{ - Command: cmd, - ServiceType: serviceType, + Command: &cmd, + ServiceType: &serviceType, Bodybuffer: body, - ClientVersion: "Android " + c.version.SortVersionName, + ClientVersion: proto.String("Android " + c.version.SortVersionName), } - r, _ := proto.Marshal(pkg) + r, _ := pkg.Marshal() return r } -func (c *QQClient) packOIDBPackageProto(cmd, serviceType int32, msg proto.Message) []byte { +func (c *QQClient) packOIDBPackageProto(cmd, serviceType uint32, msg proto.Message) []byte { b, _ := proto.Marshal(msg) return c.packOIDBPackage(cmd, serviceType, b) } -func (c *QQClient) packOIDBPackageProto2(cmd, serviceType int32, msg proto2.Message) []byte { +func (c *QQClient) packOIDBPackageProto2(cmd, serviceType uint32, msg proto2.Message) []byte { b, _ := msg.Marshal() return c.packOIDBPackage(cmd, serviceType, b) } diff --git a/client/group_file.go b/client/group_file.go index 1e170975..dcf99f6f 100644 --- a/client/group_file.go +++ b/client/group_file.go @@ -4,6 +4,7 @@ import ( "crypto/sha1" "encoding/hex" "fmt" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb" "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x6d6" "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x6d7" "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x6d8" @@ -21,7 +22,6 @@ import ( "github.com/pkg/errors" "github.com/Mrs4s/MiraiGo/client/pb/exciting" - "github.com/Mrs4s/MiraiGo/client/pb/oidb" "github.com/Mrs4s/MiraiGo/utils" ) @@ -289,14 +289,7 @@ func (c *QQClient) buildGroupFileUploadReqPacket(parentFolderID, fileName string Md5: md5, SupportMultiUpload: proto.Bool(true), }} - b, _ := body.Marshal() - req := &oidb.OIDBSSOPkg{ - Command: 1750, - ServiceType: 0, - Bodybuffer: b, - ClientVersion: "android 8.4.8", - } - payload, _ := proto.Marshal(req) + payload := c.packOIDBPackageProto2(1750, 0, body) packet := packets.BuildUniPacket(c.Uin, seq, "OidbSvc.0x6d6_0", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet } @@ -333,14 +326,7 @@ func (c *QQClient) buildGroupFileListRequestPacket(groupCode int64, folderID str StartIndex: &startIndex, Context: EmptyBytes, }} - b, _ := body.Marshal() - req := &oidb.OIDBSSOPkg{ - Command: 1752, - ServiceType: 1, - Bodybuffer: b, - ClientVersion: "android 8.4.8", - } - payload, _ := proto.Marshal(req) + payload := c.packOIDBPackageProto2(1752, 1, body) packet := packets.BuildUniPacket(c.Uin, seq, "OidbSvc.0x6d8_1", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet } @@ -352,14 +338,7 @@ func (c *QQClient) buildGroupFileCountRequestPacket(groupCode int64) (uint16, [] AppId: proto.Uint32(3), BusId: proto.Uint32(0), }} - b, _ := body.Marshal() - req := &oidb.OIDBSSOPkg{ - Command: 1752, - ServiceType: 2, - Bodybuffer: b, - ClientVersion: "android 8.4.8", - } - payload, _ := proto.Marshal(req) + payload := c.packOIDBPackageProto2(1752, 2, body) packet := packets.BuildUniPacket(c.Uin, seq, "OidbSvc.0x6d8_1", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet } @@ -370,14 +349,7 @@ func (c *QQClient) buildGroupFileSpaceRequestPacket(groupCode int64) (uint16, [] GroupCode: proto.Uint64(uint64(groupCode)), AppId: proto.Uint32(3), }} - b, _ := body.Marshal() - req := &oidb.OIDBSSOPkg{ - Command: 1752, - ServiceType: 3, - Bodybuffer: b, - ClientVersion: "android 8.4.8", - } - payload, _ := proto.Marshal(req) + payload := c.packOIDBPackageProto2(1752, 3, body) packet := packets.BuildUniPacket(c.Uin, seq, "OidbSvc.0x6d8_1", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet } @@ -428,13 +400,7 @@ func (c *QQClient) buildGroupFileDownloadReqPacket(groupCode int64, fileId strin FileId: &fileId, }, } - b, _ := body.Marshal() - req := &oidb.OIDBSSOPkg{ - Command: 1750, - ServiceType: 2, - Bodybuffer: b, - } - payload, _ := proto.Marshal(req) + payload := c.packOIDBPackageProto2(1750, 2, body) packet := packets.BuildUniPacket(c.Uin, seq, "OidbSvc.0x6d6_2", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet } @@ -448,14 +414,7 @@ func (c *QQClient) buildGroupFileDeleteReqPacket(groupCode int64, parentFolderId ParentFolderId: &parentFolderId, FileId: &fileId, }} - b, _ := body.Marshal() - req := &oidb.OIDBSSOPkg{ - Command: 1750, - ServiceType: 3, - Bodybuffer: b, - ClientVersion: "android 8.4.8", - } - payload, _ := proto.Marshal(req) + payload := c.packOIDBPackageProto2(1750, 3, body) packet := packets.BuildUniPacket(c.Uin, seq, "OidbSvc.0x6d6_3", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet } @@ -463,7 +422,7 @@ func (c *QQClient) buildGroupFileDeleteReqPacket(groupCode int64, parentFolderId func decodeOIDB6d81Response(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := oidb.OIDBSSOPkg{} rsp := oidb0x6d8.RspBody{} - if err := proto.Unmarshal(payload, &pkg); err != nil { + if err := protobuf.Decode(payload, &pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } if err := protobuf.Decode(pkg.Bodybuffer, &rsp); err != nil { @@ -476,7 +435,7 @@ func decodeOIDB6d81Response(_ *QQClient, _ *incomingPacketInfo, payload []byte) func decodeOIDB6d62Response(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := oidb.OIDBSSOPkg{} rsp := oidb0x6d6.RspBody{} - if err := proto.Unmarshal(payload, &pkg); err != nil { + if err := protobuf.Decode(payload, &pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } if err := protobuf.Decode(pkg.Bodybuffer, &rsp); err != nil { @@ -493,7 +452,7 @@ func decodeOIDB6d62Response(_ *QQClient, _ *incomingPacketInfo, payload []byte) func decodeOIDB6d63Response(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := oidb.OIDBSSOPkg{} rsp := oidb0x6d6.RspBody{} - if err := proto.Unmarshal(payload, &pkg); err != nil { + if err := protobuf.Decode(payload, &pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } if err := protobuf.Decode(pkg.Bodybuffer, &rsp); err != nil { @@ -508,7 +467,7 @@ func decodeOIDB6d63Response(_ *QQClient, _ *incomingPacketInfo, payload []byte) func decodeOIDB6d60Response(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := oidb.OIDBSSOPkg{} rsp := oidb0x6d6.RspBody{} - if err := proto.Unmarshal(payload, &pkg); err != nil { + if err := protobuf.Decode(payload, &pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } if err := protobuf.Decode(pkg.Bodybuffer, &rsp); err != nil { @@ -520,7 +479,7 @@ func decodeOIDB6d60Response(_ *QQClient, _ *incomingPacketInfo, payload []byte) func decodeOIDB6d7Response(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := oidb.OIDBSSOPkg{} rsp := oidb0x6d7.RspBody{} - if err := proto.Unmarshal(payload, &pkg); err != nil { + if err := protobuf.Decode(payload, &pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } if err := protobuf.Decode(pkg.Bodybuffer, &rsp); err != nil { diff --git a/client/group_info.go b/client/group_info.go index 4fc3b9f0..6a3b0818 100644 --- a/client/group_info.go +++ b/client/group_info.go @@ -3,6 +3,7 @@ package client import ( "encoding/json" "fmt" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb" "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x88d" "go.dedis.ch/protobuf" "google.golang.org/protobuf/proto" @@ -18,7 +19,6 @@ import ( "github.com/Mrs4s/MiraiGo/binary" "github.com/Mrs4s/MiraiGo/binary/jce" - "github.com/Mrs4s/MiraiGo/client/pb/oidb" "github.com/Mrs4s/MiraiGo/client/pb/profilecard" "github.com/Mrs4s/MiraiGo/utils" ) @@ -228,7 +228,7 @@ func decodeGroupSearchResponse(_ *QQClient, _ *incomingPacketInfo, payload []byt func decodeGroupInfoResponse(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := oidb.OIDBSSOPkg{} rsp := oidb0x88d.RspBody{} - if err := proto.Unmarshal(payload, &pkg); err != nil { + if err := protobuf.Decode(payload, &pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } if err := protobuf.Decode(pkg.Bodybuffer, &rsp); err != nil { diff --git a/client/group_msg.go b/client/group_msg.go index eb521150..c8cefc4a 100644 --- a/client/group_msg.go +++ b/client/group_msg.go @@ -5,8 +5,10 @@ import ( "encoding/base64" "encoding/json" "fmt" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb" "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x8a7" "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x8fc" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0xeac" "go.dedis.ch/protobuf" "math" "math/rand" @@ -19,7 +21,6 @@ import ( "github.com/Mrs4s/MiraiGo/client/pb/longmsg" "github.com/Mrs4s/MiraiGo/client/pb/msg" "github.com/Mrs4s/MiraiGo/client/pb/multimsg" - "github.com/Mrs4s/MiraiGo/client/pb/oidb" "github.com/Mrs4s/MiraiGo/message" "github.com/Mrs4s/MiraiGo/utils" @@ -407,7 +408,7 @@ func decodeGetGroupMsgResponse(c *QQClient, info *incomingPacketInfo, payload [] func decodeAtAllRemainResponse(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := oidb.OIDBSSOPkg{} rsp := oidb0x8a7.RspBody{} - if err := proto.Unmarshal(payload, &pkg); err != nil { + if err := protobuf.Decode(payload, &pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } if err := protobuf.Decode(pkg.Bodybuffer, &rsp); err != nil { @@ -569,7 +570,7 @@ func (c *QQClient) SetEssenceMessage(groupCode int64, msgID, msgInternalId int32 if err != nil { return errors.Wrap(err, "set essence msg network") } - rsp := r.(*oidb.EACRspBody) + rsp := r.(*oidb0xeac.RspBody) if rsp.GetErrorCode() != 0 { return errors.New(rsp.GetWording()) } @@ -582,7 +583,7 @@ func (c *QQClient) DeleteEssenceMessage(groupCode int64, msgID, msgInternalId in if err != nil { return errors.Wrap(err, "set essence msg networ") } - rsp := r.(*oidb.EACRspBody) + rsp := r.(*oidb0xeac.RspBody) if rsp.GetErrorCode() != 0 { return errors.New(rsp.GetWording()) } @@ -592,7 +593,7 @@ func (c *QQClient) DeleteEssenceMessage(groupCode int64, msgID, msgInternalId in func (c *QQClient) buildEssenceMsgOperatePacket(groupCode int64, msgSeq, msgRand, opType uint32) (uint16, []byte) { seq := c.nextSeq() commandName := "OidbSvc.0xeac_" + strconv.FormatInt(int64(opType), 10) - payload := c.packOIDBPackageProto(3756, int32(opType), &oidb.EACReqBody{ // serviceType 2 取消 + payload := c.packOIDBPackageProto2(3756, opType, &oidb0xeac.ReqBody{ // serviceType 2 取消 GroupCode: proto.Uint64(uint64(groupCode)), Seq: proto.Uint32(msgSeq), Random: proto.Uint32(msgRand), @@ -604,11 +605,11 @@ func (c *QQClient) buildEssenceMsgOperatePacket(groupCode int64, msgSeq, msgRand // OidbSvc.0xeac_1/2 func decodeEssenceMsgResponse(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := oidb.OIDBSSOPkg{} - rsp := &oidb.EACRspBody{} - if err := proto.Unmarshal(payload, &pkg); err != nil { + rsp := &oidb0xeac.RspBody{} + if err := protobuf.Decode(payload, &pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } - if err := proto.Unmarshal(pkg.Bodybuffer, rsp); err != nil { + if err := protobuf.Decode(pkg.Bodybuffer, rsp); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } return rsp, nil diff --git a/client/image.go b/client/image.go index 1d612834..767d24ac 100644 --- a/client/image.go +++ b/client/image.go @@ -4,6 +4,9 @@ import ( "bytes" "encoding/hex" "fmt" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0xe07" + "go.dedis.ch/protobuf" "image" _ "image/gif" "io" @@ -15,7 +18,6 @@ import ( "github.com/Mrs4s/MiraiGo/internal/packets" "github.com/Mrs4s/MiraiGo/client/pb/highway" - "github.com/Mrs4s/MiraiGo/client/pb/oidb" "github.com/pkg/errors" "google.golang.org/protobuf/proto" @@ -293,20 +295,20 @@ func (c *QQClient) uploadOcrImage(img io.Reader, length int64, sum []byte) (stri // OidbSvc.0xe07_0 func (c *QQClient) buildImageOcrRequestPacket(url, md5 string, size, weight, height int32) (uint16, []byte) { seq := c.nextSeq() - body := &oidb.DE07ReqBody{ - Version: 1, - Entrance: 3, - OcrReqBody: &oidb.OCRReqBody{ - ImageUrl: url, - OriginMd5: md5, - AfterCompressMd5: md5, - AfterCompressFileSize: size, - AfterCompressWeight: weight, - AfterCompressHeight: height, - IsCut: false, + body := &oidb0xe07.ReqBody{ + Version: proto.Uint32(1), + Entrance: proto.Uint32(3), + OcrReqBody: &oidb0xe07.OCRReqBody{ + ImageUrl: &url, + OriginMd5: &md5, + AfterCompressMd5: &md5, + AfterCompressFileSize: proto.Uint32(uint32(size)), + AfterCompressWeight: proto.Uint32(uint32(weight)), + AfterCompressHeight: proto.Uint32(uint32(height)), + IsCut: proto.Bool(false), }, } - b, _ := proto.Marshal(body) + b, _ := body.Marshal() payload := c.packOIDBPackage(3591, 0, b) packet := packets.BuildUniPacket(c.Uin, seq, "OidbSvc.0xe07_0", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet @@ -357,20 +359,20 @@ func decodeGroupImageDownloadResponse(_ *QQClient, _ *incomingPacketInfo, payloa // OidbSvc.0xe07_0 func decodeImageOcrResponse(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := oidb.OIDBSSOPkg{} - rsp := oidb.DE07RspBody{} - if err := proto.Unmarshal(payload, &pkg); err != nil { + rsp := oidb0xe07.RspBody{} + if err := protobuf.Decode(payload, &pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } - if err := proto.Unmarshal(pkg.Bodybuffer, &rsp); err != nil { + if err := protobuf.Decode(pkg.Bodybuffer, &rsp); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } - if rsp.Wording != "" { - if strings.Contains(rsp.Wording, "服务忙") { + if rsp.GetWording() != "" { + if strings.Contains(rsp.GetWording(), "服务忙") { return nil, errors.New("未识别到文本") } - return nil, errors.New(rsp.Wording) + return nil, errors.New(rsp.GetWording()) } - if rsp.RetCode != 0 { + if rsp.GetRetCode() != 0 { return nil, errors.Errorf("server error, code: %v msg: %v", rsp.RetCode, rsp.ErrMsg) } texts := make([]*TextDetection, 0, len(rsp.OcrRspBody.TextDetections)) @@ -378,18 +380,18 @@ func decodeImageOcrResponse(_ *QQClient, _ *incomingPacketInfo, payload []byte) points := make([]*Coordinate, 0, len(text.Polygon.Coordinates)) for _, c := range text.Polygon.Coordinates { points = append(points, &Coordinate{ - X: c.X, - Y: c.Y, + X: c.GetX(), + Y: c.GetY(), }) } texts = append(texts, &TextDetection{ - Text: text.DetectedText, - Confidence: text.Confidence, + Text: text.GetDetectedText(), + Confidence: int32(text.GetConfidence()), Coordinates: points, }) } return &OcrResponse{ Texts: texts, - Language: rsp.OcrRspBody.Language, + Language: rsp.OcrRspBody.GetLanguage(), }, nil } diff --git a/client/pb/oidb/oidb.pb.go b/client/pb/oidb/oidb.pb.go deleted file mode 100644 index 289a0744..00000000 --- a/client/pb/oidb/oidb.pb.go +++ /dev/null @@ -1,1477 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.17.1 -// source: oidb.proto - -package oidb - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type OIDBSSOPkg struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Command int32 `protobuf:"varint,1,opt,name=command,proto3" json:"command,omitempty"` - ServiceType int32 `protobuf:"varint,2,opt,name=serviceType,proto3" json:"serviceType,omitempty"` - Result int32 `protobuf:"varint,3,opt,name=result,proto3" json:"result,omitempty"` - Bodybuffer []byte `protobuf:"bytes,4,opt,name=bodybuffer,proto3" json:"bodybuffer,omitempty"` - ErrorMsg string `protobuf:"bytes,5,opt,name=errorMsg,proto3" json:"errorMsg,omitempty"` - ClientVersion string `protobuf:"bytes,6,opt,name=clientVersion,proto3" json:"clientVersion,omitempty"` -} - -func (x *OIDBSSOPkg) Reset() { - *x = OIDBSSOPkg{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OIDBSSOPkg) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OIDBSSOPkg) ProtoMessage() {} - -func (x *OIDBSSOPkg) ProtoReflect() protoreflect.Message { - mi := &file_oidb_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OIDBSSOPkg.ProtoReflect.Descriptor instead. -func (*OIDBSSOPkg) Descriptor() ([]byte, []int) { - return file_oidb_proto_rawDescGZIP(), []int{0} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OptUint64GroupCode int64 `protobuf:"varint,1,opt,name=optUint64GroupCode,proto3" json:"optUint64GroupCode,omitempty"` - MsgKickResult []*D8A0KickResult `protobuf:"bytes,2,rep,name=msgKickResult,proto3" json:"msgKickResult,omitempty"` -} - -func (x *D8A0RspBody) Reset() { - *x = D8A0RspBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D8A0RspBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D8A0RspBody) ProtoMessage() {} - -func (x *D8A0RspBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D8A0RspBody.ProtoReflect.Descriptor instead. -func (*D8A0RspBody) Descriptor() ([]byte, []int) { - return file_oidb_proto_rawDescGZIP(), []int{1} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OptUint32Result int32 `protobuf:"varint,1,opt,name=optUint32Result,proto3" json:"optUint32Result,omitempty"` - OptUint64MemberUin int64 `protobuf:"varint,2,opt,name=optUint64MemberUin,proto3" json:"optUint64MemberUin,omitempty"` -} - -func (x *D8A0KickResult) Reset() { - *x = D8A0KickResult{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D8A0KickResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D8A0KickResult) ProtoMessage() {} - -func (x *D8A0KickResult) ProtoReflect() protoreflect.Message { - mi := &file_oidb_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D8A0KickResult.ProtoReflect.Descriptor instead. -func (*D8A0KickResult) Descriptor() ([]byte, []int) { - return file_oidb_proto_rawDescGZIP(), []int{2} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OptUint32Operate int32 `protobuf:"varint,1,opt,name=optUint32Operate,proto3" json:"optUint32Operate,omitempty"` - OptUint64MemberUin int64 `protobuf:"varint,2,opt,name=optUint64MemberUin,proto3" json:"optUint64MemberUin,omitempty"` - OptUint32Flag int32 `protobuf:"varint,3,opt,name=optUint32Flag,proto3" json:"optUint32Flag,omitempty"` - OptBytesMsg []byte `protobuf:"bytes,4,opt,name=optBytesMsg,proto3" json:"optBytesMsg,omitempty"` -} - -func (x *D8A0KickMemberInfo) Reset() { - *x = D8A0KickMemberInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D8A0KickMemberInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D8A0KickMemberInfo) ProtoMessage() {} - -func (x *D8A0KickMemberInfo) ProtoReflect() protoreflect.Message { - mi := &file_oidb_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D8A0KickMemberInfo.ProtoReflect.Descriptor instead. -func (*D8A0KickMemberInfo) Descriptor() ([]byte, []int) { - return file_oidb_proto_rawDescGZIP(), []int{3} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OptUint64GroupCode int64 `protobuf:"varint,1,opt,name=optUint64GroupCode,proto3" json:"optUint64GroupCode,omitempty"` - MsgKickList []*D8A0KickMemberInfo `protobuf:"bytes,2,rep,name=msgKickList,proto3" json:"msgKickList,omitempty"` - KickList []int64 `protobuf:"varint,3,rep,packed,name=kickList,proto3" json:"kickList,omitempty"` - KickFlag int32 `protobuf:"varint,4,opt,name=kickFlag,proto3" json:"kickFlag,omitempty"` - KickMsg []byte `protobuf:"bytes,5,opt,name=kickMsg,proto3" json:"kickMsg,omitempty"` -} - -func (x *D8A0ReqBody) Reset() { - *x = D8A0ReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D8A0ReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D8A0ReqBody) ProtoMessage() {} - -func (x *D8A0ReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D8A0ReqBody.ProtoReflect.Descriptor instead. -func (*D8A0ReqBody) Descriptor() ([]byte, []int) { - return file_oidb_proto_rawDescGZIP(), []int{4} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GroupCode int64 `protobuf:"varint,1,opt,name=groupCode,proto3" json:"groupCode,omitempty"` - StGroupInfo *D89AGroupinfo `protobuf:"bytes,2,opt,name=stGroupInfo,proto3" json:"stGroupInfo,omitempty"` - OriginalOperatorUin int64 `protobuf:"varint,3,opt,name=originalOperatorUin,proto3" json:"originalOperatorUin,omitempty"` - ReqGroupOpenAppid int32 `protobuf:"varint,4,opt,name=reqGroupOpenAppid,proto3" json:"reqGroupOpenAppid,omitempty"` -} - -func (x *D89AReqBody) Reset() { - *x = D89AReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D89AReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D89AReqBody) ProtoMessage() {} - -func (x *D89AReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D89AReqBody.ProtoReflect.Descriptor instead. -func (*D89AReqBody) Descriptor() ([]byte, []int) { - return file_oidb_proto_rawDescGZIP(), []int{5} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GroupExtAdmNum int32 `protobuf:"varint,1,opt,name=groupExtAdmNum,proto3" json:"groupExtAdmNum,omitempty"` - Flag int32 `protobuf:"varint,2,opt,name=flag,proto3" json:"flag,omitempty"` - IngGroupName []byte `protobuf:"bytes,3,opt,name=ingGroupName,proto3" json:"ingGroupName,omitempty"` - IngGroupMemo []byte `protobuf:"bytes,4,opt,name=ingGroupMemo,proto3" json:"ingGroupMemo,omitempty"` - IngGroupFingerMemo []byte `protobuf:"bytes,5,opt,name=ingGroupFingerMemo,proto3" json:"ingGroupFingerMemo,omitempty"` - IngGroupAioSkinUrl []byte `protobuf:"bytes,6,opt,name=ingGroupAioSkinUrl,proto3" json:"ingGroupAioSkinUrl,omitempty"` - IngGroupBoardSkinUrl []byte `protobuf:"bytes,7,opt,name=ingGroupBoardSkinUrl,proto3" json:"ingGroupBoardSkinUrl,omitempty"` - IngGroupCoverSkinUrl []byte `protobuf:"bytes,8,opt,name=ingGroupCoverSkinUrl,proto3" json:"ingGroupCoverSkinUrl,omitempty"` - GroupGrade int32 `protobuf:"varint,9,opt,name=groupGrade,proto3" json:"groupGrade,omitempty"` - ActiveMemberNum int32 `protobuf:"varint,10,opt,name=activeMemberNum,proto3" json:"activeMemberNum,omitempty"` - CertificationType int32 `protobuf:"varint,11,opt,name=certificationType,proto3" json:"certificationType,omitempty"` - IngCertificationText []byte `protobuf:"bytes,12,opt,name=ingCertificationText,proto3" json:"ingCertificationText,omitempty"` - IngGroupRichFingerMemo []byte `protobuf:"bytes,13,opt,name=ingGroupRichFingerMemo,proto3" json:"ingGroupRichFingerMemo,omitempty"` - StGroupNewguidelines *D89AGroupNewGuidelinesInfo `protobuf:"bytes,14,opt,name=stGroupNewguidelines,proto3" json:"stGroupNewguidelines,omitempty"` - GroupFace int32 `protobuf:"varint,15,opt,name=groupFace,proto3" json:"groupFace,omitempty"` - AddOption int32 `protobuf:"varint,16,opt,name=addOption,proto3" json:"addOption,omitempty"` - // Types that are assignable to ShutupTime: - // *D89AGroupinfo_Val - ShutupTime isD89AGroupinfo_ShutupTime `protobuf_oneof:"shutupTime"` - GroupTypeFlag int32 `protobuf:"varint,18,opt,name=groupTypeFlag,proto3" json:"groupTypeFlag,omitempty"` - StringGroupTag []byte `protobuf:"bytes,19,opt,name=stringGroupTag,proto3" json:"stringGroupTag,omitempty"` - MsgGroupGeoInfo *D89AGroupGeoInfo `protobuf:"bytes,20,opt,name=msgGroupGeoInfo,proto3" json:"msgGroupGeoInfo,omitempty"` - GroupClassExt int32 `protobuf:"varint,21,opt,name=groupClassExt,proto3" json:"groupClassExt,omitempty"` - IngGroupClassText []byte `protobuf:"bytes,22,opt,name=ingGroupClassText,proto3" json:"ingGroupClassText,omitempty"` - AppPrivilegeFlag int32 `protobuf:"varint,23,opt,name=appPrivilegeFlag,proto3" json:"appPrivilegeFlag,omitempty"` - AppPrivilegeMask int32 `protobuf:"varint,24,opt,name=appPrivilegeMask,proto3" json:"appPrivilegeMask,omitempty"` - StGroupExInfo *D89AGroupExInfoOnly `protobuf:"bytes,25,opt,name=stGroupExInfo,proto3" json:"stGroupExInfo,omitempty"` - GroupSecLevel int32 `protobuf:"varint,26,opt,name=groupSecLevel,proto3" json:"groupSecLevel,omitempty"` - GroupSecLevelInfo int32 `protobuf:"varint,27,opt,name=groupSecLevelInfo,proto3" json:"groupSecLevelInfo,omitempty"` - SubscriptionUin int64 `protobuf:"varint,28,opt,name=subscriptionUin,proto3" json:"subscriptionUin,omitempty"` - AllowMemberInvite int32 `protobuf:"varint,29,opt,name=allowMemberInvite,proto3" json:"allowMemberInvite,omitempty"` - IngGroupQuestion []byte `protobuf:"bytes,30,opt,name=ingGroupQuestion,proto3" json:"ingGroupQuestion,omitempty"` - IngGroupAnswer []byte `protobuf:"bytes,31,opt,name=ingGroupAnswer,proto3" json:"ingGroupAnswer,omitempty"` - GroupFlagext3 int32 `protobuf:"varint,32,opt,name=groupFlagext3,proto3" json:"groupFlagext3,omitempty"` - GroupFlagext3Mask int32 `protobuf:"varint,33,opt,name=groupFlagext3Mask,proto3" json:"groupFlagext3Mask,omitempty"` - GroupOpenAppid int32 `protobuf:"varint,34,opt,name=groupOpenAppid,proto3" json:"groupOpenAppid,omitempty"` - NoFingerOpenFlag int32 `protobuf:"varint,35,opt,name=noFingerOpenFlag,proto3" json:"noFingerOpenFlag,omitempty"` - NoCodeFingerOpenFlag int32 `protobuf:"varint,36,opt,name=noCodeFingerOpenFlag,proto3" json:"noCodeFingerOpenFlag,omitempty"` - RootId int64 `protobuf:"varint,37,opt,name=rootId,proto3" json:"rootId,omitempty"` - MsgLimitFrequency int32 `protobuf:"varint,38,opt,name=msgLimitFrequency,proto3" json:"msgLimitFrequency,omitempty"` -} - -func (x *D89AGroupinfo) Reset() { - *x = D89AGroupinfo{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D89AGroupinfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D89AGroupinfo) ProtoMessage() {} - -func (x *D89AGroupinfo) ProtoReflect() protoreflect.Message { - mi := &file_oidb_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D89AGroupinfo.ProtoReflect.Descriptor instead. -func (*D89AGroupinfo) Descriptor() ([]byte, []int) { - return file_oidb_proto_rawDescGZIP(), []int{6} -} - -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 (m *D89AGroupinfo) GetShutupTime() isD89AGroupinfo_ShutupTime { - if m != nil { - return m.ShutupTime - } - return nil -} - -func (x *D89AGroupinfo) GetVal() int32 { - if x, ok := x.GetShutupTime().(*D89AGroupinfo_Val); ok { - return x.Val - } - 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 isD89AGroupinfo_ShutupTime interface { - isD89AGroupinfo_ShutupTime() -} - -type D89AGroupinfo_Val struct { - Val int32 `protobuf:"varint,17,opt,name=val,proto3,oneof"` -} - -func (*D89AGroupinfo_Val) isD89AGroupinfo_ShutupTime() {} - -type D89AGroupNewGuidelinesInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - BoolEnabled bool `protobuf:"varint,1,opt,name=boolEnabled,proto3" json:"boolEnabled,omitempty"` - IngContent []byte `protobuf:"bytes,2,opt,name=ingContent,proto3" json:"ingContent,omitempty"` -} - -func (x *D89AGroupNewGuidelinesInfo) Reset() { - *x = D89AGroupNewGuidelinesInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D89AGroupNewGuidelinesInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D89AGroupNewGuidelinesInfo) ProtoMessage() {} - -func (x *D89AGroupNewGuidelinesInfo) ProtoReflect() protoreflect.Message { - mi := &file_oidb_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D89AGroupNewGuidelinesInfo.ProtoReflect.Descriptor instead. -func (*D89AGroupNewGuidelinesInfo) Descriptor() ([]byte, []int) { - return file_oidb_proto_rawDescGZIP(), []int{7} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TribeId int32 `protobuf:"varint,1,opt,name=tribeId,proto3" json:"tribeId,omitempty"` - MoneyForAddGroup int32 `protobuf:"varint,2,opt,name=moneyForAddGroup,proto3" json:"moneyForAddGroup,omitempty"` -} - -func (x *D89AGroupExInfoOnly) Reset() { - *x = D89AGroupExInfoOnly{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D89AGroupExInfoOnly) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D89AGroupExInfoOnly) ProtoMessage() {} - -func (x *D89AGroupExInfoOnly) ProtoReflect() protoreflect.Message { - mi := &file_oidb_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D89AGroupExInfoOnly.ProtoReflect.Descriptor instead. -func (*D89AGroupExInfoOnly) Descriptor() ([]byte, []int) { - return file_oidb_proto_rawDescGZIP(), []int{8} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CityId int32 `protobuf:"varint,1,opt,name=cityId,proto3" json:"cityId,omitempty"` - Longtitude int64 `protobuf:"varint,2,opt,name=longtitude,proto3" json:"longtitude,omitempty"` - Latitude int64 `protobuf:"varint,3,opt,name=latitude,proto3" json:"latitude,omitempty"` - IngGeoContent []byte `protobuf:"bytes,4,opt,name=ingGeoContent,proto3" json:"ingGeoContent,omitempty"` - PoiId int64 `protobuf:"varint,5,opt,name=poiId,proto3" json:"poiId,omitempty"` -} - -func (x *D89AGroupGeoInfo) Reset() { - *x = D89AGroupGeoInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D89AGroupGeoInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D89AGroupGeoInfo) ProtoMessage() {} - -func (x *D89AGroupGeoInfo) ProtoReflect() protoreflect.Message { - mi := &file_oidb_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D89AGroupGeoInfo.ProtoReflect.Descriptor instead. -func (*D89AGroupGeoInfo) Descriptor() ([]byte, []int) { - return file_oidb_proto_rawDescGZIP(), []int{9} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ToUin int64 `protobuf:"varint,1,opt,name=toUin,proto3" json:"toUin,omitempty"` - GroupCode int64 `protobuf:"varint,2,opt,name=groupCode,proto3" json:"groupCode,omitempty"` - MsgSeq int32 `protobuf:"varint,3,opt,name=msgSeq,proto3" json:"msgSeq,omitempty"` - MsgRand int32 `protobuf:"varint,4,opt,name=msgRand,proto3" json:"msgRand,omitempty"` - AioUin int64 `protobuf:"varint,5,opt,name=aioUin,proto3" json:"aioUin,omitempty"` -} - -func (x *DED3ReqBody) Reset() { - *x = DED3ReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DED3ReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DED3ReqBody) ProtoMessage() {} - -func (x *DED3ReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DED3ReqBody.ProtoReflect.Descriptor instead. -func (*DED3ReqBody) Descriptor() ([]byte, []int) { - return file_oidb_proto_rawDescGZIP(), []int{10} -} - -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 -} - -var File_oidb_proto protoreflect.FileDescriptor - -var file_oidb_proto_rawDesc = []byte{ - 0x0a, 0x0a, 0x6f, 0x69, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x01, 0x0a, - 0x0a, 0x4f, 0x49, 0x44, 0x42, 0x53, 0x53, 0x4f, 0x50, 0x6b, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x63, 0x6f, - 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, - 0x1e, 0x0a, 0x0a, 0x62, 0x6f, 0x64, 0x79, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x62, 0x6f, 0x64, 0x79, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, - 0x1a, 0x0a, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x24, 0x0a, 0x0d, 0x63, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x22, 0x74, 0x0a, 0x0b, 0x44, 0x38, 0x41, 0x30, 0x52, 0x73, 0x70, 0x42, 0x6f, 0x64, 0x79, - 0x12, 0x2e, 0x0a, 0x12, 0x6f, 0x70, 0x74, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6f, 0x70, - 0x74, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6f, 0x64, 0x65, - 0x12, 0x35, 0x0a, 0x0d, 0x6d, 0x73, 0x67, 0x4b, 0x69, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x38, 0x41, 0x30, 0x4b, 0x69, - 0x63, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x0d, 0x6d, 0x73, 0x67, 0x4b, 0x69, 0x63, - 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x6a, 0x0a, 0x0e, 0x44, 0x38, 0x41, 0x30, 0x4b, - 0x69, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6f, 0x70, 0x74, - 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x0f, 0x6f, 0x70, 0x74, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x52, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x12, 0x2e, 0x0a, 0x12, 0x6f, 0x70, 0x74, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, - 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x55, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x12, 0x6f, 0x70, 0x74, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x55, 0x69, 0x6e, 0x22, 0xb8, 0x01, 0x0a, 0x12, 0x44, 0x38, 0x41, 0x30, 0x4b, 0x69, 0x63, 0x6b, - 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2a, 0x0a, 0x10, 0x6f, 0x70, - 0x74, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6f, 0x70, 0x74, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x6f, 0x70, 0x74, 0x55, 0x69, 0x6e, - 0x74, 0x36, 0x34, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x55, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x12, 0x6f, 0x70, 0x74, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x55, 0x69, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x6f, 0x70, 0x74, 0x55, 0x69, 0x6e, - 0x74, 0x33, 0x32, 0x46, 0x6c, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6f, - 0x70, 0x74, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x20, 0x0a, 0x0b, - 0x6f, 0x70, 0x74, 0x42, 0x79, 0x74, 0x65, 0x73, 0x4d, 0x73, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x0b, 0x6f, 0x70, 0x74, 0x42, 0x79, 0x74, 0x65, 0x73, 0x4d, 0x73, 0x67, 0x22, 0xc6, - 0x01, 0x0a, 0x0b, 0x44, 0x38, 0x41, 0x30, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x2e, - 0x0a, 0x12, 0x6f, 0x70, 0x74, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x6f, 0x70, 0x74, 0x55, - 0x69, 0x6e, 0x74, 0x36, 0x34, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x35, - 0x0a, 0x0b, 0x6d, 0x73, 0x67, 0x4b, 0x69, 0x63, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x38, 0x41, 0x30, 0x4b, 0x69, 0x63, 0x6b, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x6d, 0x73, 0x67, 0x4b, 0x69, 0x63, - 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x69, 0x63, 0x6b, 0x4c, 0x69, 0x73, - 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x08, 0x6b, 0x69, 0x63, 0x6b, 0x4c, 0x69, 0x73, - 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6b, 0x69, 0x63, 0x6b, 0x46, 0x6c, 0x61, 0x67, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x08, 0x6b, 0x69, 0x63, 0x6b, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x18, 0x0a, - 0x07, 0x6b, 0x69, 0x63, 0x6b, 0x4d, 0x73, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, - 0x6b, 0x69, 0x63, 0x6b, 0x4d, 0x73, 0x67, 0x22, 0xbd, 0x01, 0x0a, 0x0b, 0x44, 0x38, 0x39, 0x41, - 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, - 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x30, 0x0a, 0x0b, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x38, 0x39, - 0x41, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x69, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x73, 0x74, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x30, 0x0a, 0x13, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x61, 0x6c, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x69, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x55, 0x69, 0x6e, 0x12, 0x2c, 0x0a, 0x11, 0x72, 0x65, 0x71, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x70, 0x70, 0x69, 0x64, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x72, 0x65, 0x71, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x70, - 0x65, 0x6e, 0x41, 0x70, 0x70, 0x69, 0x64, 0x22, 0x83, 0x0d, 0x0a, 0x0d, 0x44, 0x38, 0x39, 0x41, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x26, 0x0a, 0x0e, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x45, 0x78, 0x74, 0x41, 0x64, 0x6d, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x78, 0x74, 0x41, 0x64, 0x6d, 0x4e, 0x75, - 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x04, 0x66, 0x6c, 0x61, 0x67, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x69, 0x6e, 0x67, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x67, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x0c, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x6f, 0x12, 0x2e, 0x0a, - 0x12, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x4d, - 0x65, 0x6d, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x69, 0x6e, 0x67, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x4d, 0x65, 0x6d, 0x6f, 0x12, 0x2e, 0x0a, - 0x12, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x69, 0x6f, 0x53, 0x6b, 0x69, 0x6e, - 0x55, 0x72, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x69, 0x6e, 0x67, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x41, 0x69, 0x6f, 0x53, 0x6b, 0x69, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x32, 0x0a, - 0x14, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x6b, - 0x69, 0x6e, 0x55, 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x69, 0x6e, 0x67, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x53, 0x6b, 0x69, 0x6e, 0x55, 0x72, - 0x6c, 0x12, 0x32, 0x0a, 0x14, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6f, 0x76, - 0x65, 0x72, 0x53, 0x6b, 0x69, 0x6e, 0x55, 0x72, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x14, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6f, 0x76, 0x65, 0x72, 0x53, 0x6b, - 0x69, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x47, 0x72, - 0x61, 0x64, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x47, 0x72, 0x61, 0x64, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, - 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x12, - 0x2c, 0x0a, 0x11, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x54, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x63, 0x65, 0x72, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, - 0x14, 0x69, 0x6e, 0x67, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x54, 0x65, 0x78, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x14, 0x69, 0x6e, 0x67, - 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x65, 0x78, - 0x74, 0x12, 0x36, 0x0a, 0x16, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x69, 0x63, - 0x68, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x4d, 0x65, 0x6d, 0x6f, 0x18, 0x0d, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x16, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x69, 0x63, 0x68, 0x46, - 0x69, 0x6e, 0x67, 0x65, 0x72, 0x4d, 0x65, 0x6d, 0x6f, 0x12, 0x4f, 0x0a, 0x14, 0x73, 0x74, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x65, 0x77, 0x67, 0x75, 0x69, 0x64, 0x65, 0x6c, 0x69, 0x6e, 0x65, - 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x44, 0x38, 0x39, 0x41, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x4e, 0x65, 0x77, 0x47, 0x75, 0x69, 0x64, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x14, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x65, 0x77, - 0x67, 0x75, 0x69, 0x64, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x46, 0x61, 0x63, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x46, 0x61, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x64, 0x64, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x61, 0x64, 0x64, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x11, 0x20, - 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x12, 0x24, 0x0a, 0x0d, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x46, 0x6c, 0x61, 0x67, 0x18, 0x12, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x79, 0x70, 0x65, 0x46, 0x6c, 0x61, 0x67, - 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, - 0x61, 0x67, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x61, 0x67, 0x12, 0x3b, 0x0a, 0x0f, 0x6d, 0x73, 0x67, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x47, 0x65, 0x6f, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x14, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x11, 0x2e, 0x44, 0x38, 0x39, 0x41, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x47, 0x65, 0x6f, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0f, 0x6d, 0x73, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x47, 0x65, - 0x6f, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6c, - 0x61, 0x73, 0x73, 0x45, 0x78, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x45, 0x78, 0x74, 0x12, 0x2c, 0x0a, 0x11, 0x69, - 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x54, 0x65, 0x78, 0x74, - 0x18, 0x16, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x43, 0x6c, 0x61, 0x73, 0x73, 0x54, 0x65, 0x78, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x61, 0x70, 0x70, - 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x46, 0x6c, 0x61, 0x67, 0x18, 0x17, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x10, 0x61, 0x70, 0x70, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, - 0x65, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x2a, 0x0a, 0x10, 0x61, 0x70, 0x70, 0x50, 0x72, 0x69, 0x76, - 0x69, 0x6c, 0x65, 0x67, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x18, 0x18, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x10, 0x61, 0x70, 0x70, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x4d, 0x61, 0x73, - 0x6b, 0x12, 0x3a, 0x0a, 0x0d, 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x78, 0x49, 0x6e, - 0x66, 0x6f, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x44, 0x38, 0x39, 0x41, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x45, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x4f, 0x6e, 0x6c, 0x79, 0x52, 0x0d, - 0x73, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x78, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, - 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x63, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x1a, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x63, 0x4c, 0x65, - 0x76, 0x65, 0x6c, 0x12, 0x2c, 0x0a, 0x11, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x63, 0x4c, - 0x65, 0x76, 0x65, 0x6c, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x65, 0x63, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x28, 0x0a, 0x0f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x55, 0x69, 0x6e, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x73, 0x75, 0x62, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x69, 0x6e, 0x12, 0x2c, 0x0a, 0x11, 0x61, - 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, - 0x18, 0x1d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x49, 0x6e, 0x76, 0x69, 0x74, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x6e, 0x67, - 0x47, 0x72, 0x6f, 0x75, 0x70, 0x51, 0x75, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x1e, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x10, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x51, 0x75, 0x65, - 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x26, 0x0a, 0x0e, 0x69, 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x69, - 0x6e, 0x67, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x24, 0x0a, - 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x46, 0x6c, 0x61, 0x67, 0x65, 0x78, 0x74, 0x33, 0x18, 0x20, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x46, 0x6c, 0x61, 0x67, 0x65, - 0x78, 0x74, 0x33, 0x12, 0x2c, 0x0a, 0x11, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x46, 0x6c, 0x61, 0x67, - 0x65, 0x78, 0x74, 0x33, 0x4d, 0x61, 0x73, 0x6b, 0x18, 0x21, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x46, 0x6c, 0x61, 0x67, 0x65, 0x78, 0x74, 0x33, 0x4d, 0x61, 0x73, - 0x6b, 0x12, 0x26, 0x0a, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x70, - 0x70, 0x69, 0x64, 0x18, 0x22, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x70, 0x70, 0x69, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x6e, 0x6f, 0x46, - 0x69, 0x6e, 0x67, 0x65, 0x72, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x6c, 0x61, 0x67, 0x18, 0x23, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x10, 0x6e, 0x6f, 0x46, 0x69, 0x6e, 0x67, 0x65, 0x72, 0x4f, 0x70, 0x65, - 0x6e, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x32, 0x0a, 0x14, 0x6e, 0x6f, 0x43, 0x6f, 0x64, 0x65, 0x46, - 0x69, 0x6e, 0x67, 0x65, 0x72, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x6c, 0x61, 0x67, 0x18, 0x24, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x14, 0x6e, 0x6f, 0x43, 0x6f, 0x64, 0x65, 0x46, 0x69, 0x6e, 0x67, 0x65, - 0x72, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f, - 0x74, 0x49, 0x64, 0x18, 0x25, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x74, 0x49, - 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x6d, 0x73, 0x67, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x46, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x26, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x6d, 0x73, - 0x67, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x46, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x79, 0x42, - 0x0c, 0x0a, 0x0a, 0x73, 0x68, 0x75, 0x74, 0x75, 0x70, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x5e, 0x0a, - 0x1a, 0x44, 0x38, 0x39, 0x41, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x65, 0x77, 0x47, 0x75, 0x69, - 0x64, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x20, 0x0a, 0x0b, 0x62, - 0x6f, 0x6f, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1e, 0x0a, - 0x0a, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x0a, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x5b, 0x0a, - 0x13, 0x44, 0x38, 0x39, 0x41, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x78, 0x49, 0x6e, 0x66, 0x6f, - 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x72, 0x69, 0x62, 0x65, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x74, 0x72, 0x69, 0x62, 0x65, 0x49, 0x64, 0x12, 0x2a, - 0x0a, 0x10, 0x6d, 0x6f, 0x6e, 0x65, 0x79, 0x46, 0x6f, 0x72, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x6d, 0x6f, 0x6e, 0x65, 0x79, 0x46, - 0x6f, 0x72, 0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0xa2, 0x01, 0x0a, 0x10, 0x44, - 0x38, 0x39, 0x41, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x47, 0x65, 0x6f, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x16, 0x0a, 0x06, 0x63, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x06, 0x63, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6c, 0x6f, 0x6e, 0x67, 0x74, - 0x69, 0x74, 0x75, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6c, 0x6f, 0x6e, - 0x67, 0x74, 0x69, 0x74, 0x75, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, - 0x75, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6c, 0x61, 0x74, 0x69, 0x74, - 0x75, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x69, 0x6e, 0x67, 0x47, 0x65, 0x6f, 0x43, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x69, 0x6e, 0x67, 0x47, - 0x65, 0x6f, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x6f, 0x69, - 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x70, 0x6f, 0x69, 0x49, 0x64, 0x22, - 0x8b, 0x01, 0x0a, 0x0b, 0x44, 0x45, 0x44, 0x33, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x55, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, - 0x74, 0x6f, 0x55, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6f, - 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x43, - 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x73, 0x67, 0x53, 0x65, 0x71, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x73, 0x67, 0x53, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x6d, - 0x73, 0x67, 0x52, 0x61, 0x6e, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x73, - 0x67, 0x52, 0x61, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x69, 0x6f, 0x55, 0x69, 0x6e, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x69, 0x6f, 0x55, 0x69, 0x6e, 0x42, 0x09, 0x5a, - 0x07, 0x2e, 0x2f, 0x3b, 0x6f, 0x69, 0x64, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_oidb_proto_rawDescOnce sync.Once - file_oidb_proto_rawDescData = file_oidb_proto_rawDesc -) - -func file_oidb_proto_rawDescGZIP() []byte { - file_oidb_proto_rawDescOnce.Do(func() { - file_oidb_proto_rawDescData = protoimpl.X.CompressGZIP(file_oidb_proto_rawDescData) - }) - return file_oidb_proto_rawDescData -} - -var file_oidb_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_oidb_proto_goTypes = []interface{}{ - (*OIDBSSOPkg)(nil), // 0: OIDBSSOPkg - (*D8A0RspBody)(nil), // 1: D8A0RspBody - (*D8A0KickResult)(nil), // 2: D8A0KickResult - (*D8A0KickMemberInfo)(nil), // 3: D8A0KickMemberInfo - (*D8A0ReqBody)(nil), // 4: D8A0ReqBody - (*D89AReqBody)(nil), // 5: D89AReqBody - (*D89AGroupinfo)(nil), // 6: D89AGroupinfo - (*D89AGroupNewGuidelinesInfo)(nil), // 7: D89AGroupNewGuidelinesInfo - (*D89AGroupExInfoOnly)(nil), // 8: D89AGroupExInfoOnly - (*D89AGroupGeoInfo)(nil), // 9: D89AGroupGeoInfo - (*DED3ReqBody)(nil), // 10: DED3ReqBody -} -var file_oidb_proto_depIdxs = []int32{ - 2, // 0: D8A0RspBody.msgKickResult:type_name -> D8A0KickResult - 3, // 1: D8A0ReqBody.msgKickList:type_name -> D8A0KickMemberInfo - 6, // 2: D89AReqBody.stGroupInfo:type_name -> D89AGroupinfo - 7, // 3: D89AGroupinfo.stGroupNewguidelines:type_name -> D89AGroupNewGuidelinesInfo - 9, // 4: D89AGroupinfo.msgGroupGeoInfo:type_name -> D89AGroupGeoInfo - 8, // 5: D89AGroupinfo.stGroupExInfo:type_name -> D89AGroupExInfoOnly - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_oidb_proto_init() } -func file_oidb_proto_init() { - if File_oidb_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_oidb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OIDBSSOPkg); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D8A0RspBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D8A0KickResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D8A0KickMemberInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D8A0ReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D89AReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D89AGroupinfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D89AGroupNewGuidelinesInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D89AGroupExInfoOnly); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D89AGroupGeoInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DED3ReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_oidb_proto_msgTypes[6].OneofWrappers = []interface{}{ - (*D89AGroupinfo_Val)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oidb_proto_rawDesc, - NumEnums: 0, - NumMessages: 11, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_oidb_proto_goTypes, - DependencyIndexes: file_oidb_proto_depIdxs, - MessageInfos: file_oidb_proto_msgTypes, - }.Build() - File_oidb_proto = out.File - file_oidb_proto_rawDesc = nil - file_oidb_proto_goTypes = nil - file_oidb_proto_depIdxs = nil -} diff --git a/client/pb/oidb/oidb.proto b/client/pb/oidb/oidb.proto deleted file mode 100644 index 0a89d34b..00000000 --- a/client/pb/oidb/oidb.proto +++ /dev/null @@ -1,108 +0,0 @@ -syntax = "proto3"; - -option go_package = "./;oidb"; - -message OIDBSSOPkg { - int32 command = 1; - int32 serviceType = 2; - int32 result = 3; - bytes bodybuffer = 4; - string errorMsg = 5; - string clientVersion = 6; -} - -message D8A0RspBody { - int64 optUint64GroupCode = 1; - repeated D8A0KickResult msgKickResult = 2; -} -message D8A0KickResult { - int32 optUint32Result = 1; - int64 optUint64MemberUin = 2; -} -message D8A0KickMemberInfo { - int32 optUint32Operate = 1; - int64 optUint64MemberUin = 2; - int32 optUint32Flag = 3; - bytes optBytesMsg = 4; -} -message D8A0ReqBody { - int64 optUint64GroupCode = 1; - repeated D8A0KickMemberInfo msgKickList = 2; - repeated int64 kickList = 3; - int32 kickFlag = 4; - bytes kickMsg = 5; -} - -message D89AReqBody { - int64 groupCode = 1; - D89AGroupinfo stGroupInfo = 2; - int64 originalOperatorUin = 3; - int32 reqGroupOpenAppid = 4; -} - -message D89AGroupinfo { - int32 groupExtAdmNum = 1; - int32 flag = 2; - bytes ingGroupName = 3; - bytes ingGroupMemo = 4; - bytes ingGroupFingerMemo = 5; - bytes ingGroupAioSkinUrl = 6; - bytes ingGroupBoardSkinUrl = 7; - bytes ingGroupCoverSkinUrl = 8; - int32 groupGrade = 9; - int32 activeMemberNum = 10; - int32 certificationType = 11; - bytes ingCertificationText = 12; - bytes ingGroupRichFingerMemo = 13; - D89AGroupNewGuidelinesInfo stGroupNewguidelines = 14; - int32 groupFace = 15; - int32 addOption = 16; - oneof shutupTime { - int32 val = 17; - } - int32 groupTypeFlag = 18; - bytes stringGroupTag = 19; - D89AGroupGeoInfo msgGroupGeoInfo = 20; - int32 groupClassExt = 21; - bytes ingGroupClassText = 22; - int32 appPrivilegeFlag = 23; - int32 appPrivilegeMask = 24; - D89AGroupExInfoOnly stGroupExInfo = 25; - int32 groupSecLevel = 26; - int32 groupSecLevelInfo = 27; - int64 subscriptionUin = 28; - int32 allowMemberInvite = 29; - bytes ingGroupQuestion = 30; - bytes ingGroupAnswer = 31; - int32 groupFlagext3 = 32; - int32 groupFlagext3Mask = 33; - int32 groupOpenAppid = 34; - int32 noFingerOpenFlag = 35; - int32 noCodeFingerOpenFlag = 36; - int64 rootId = 37; - int32 msgLimitFrequency = 38; -} -message D89AGroupNewGuidelinesInfo { - bool boolEnabled = 1; - bytes ingContent = 2; -} -message D89AGroupExInfoOnly { - int32 tribeId = 1; - int32 moneyForAddGroup = 2; -} - -message D89AGroupGeoInfo { - int32 cityId = 1; - int64 longtitude = 2; - int64 latitude = 3; - bytes ingGeoContent = 4; - int64 poiId = 5; -} - -message DED3ReqBody { - int64 toUin = 1; - int64 groupCode = 2; - int32 msgSeq = 3; - int32 msgRand = 4; - int64 aioUin = 5; -} \ No newline at end of file diff --git a/client/pb/oidb/oidb0x769.pb.go b/client/pb/oidb/oidb0x769.pb.go deleted file mode 100644 index 956aec23..00000000 --- a/client/pb/oidb/oidb0x769.pb.go +++ /dev/null @@ -1,1365 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.17.1 -// source: oidb0x769.proto - -package oidb - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type CPU struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Model *string `protobuf:"bytes,1,opt,name=model" json:"model,omitempty"` - Cores *uint32 `protobuf:"varint,2,opt,name=cores" json:"cores,omitempty"` - Frequency *uint32 `protobuf:"varint,3,opt,name=frequency" json:"frequency,omitempty"` -} - -func (x *CPU) Reset() { - *x = CPU{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CPU) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CPU) ProtoMessage() {} - -func (x *CPU) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CPU.ProtoReflect.Descriptor instead. -func (*CPU) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{0} -} - -func (x *CPU) GetModel() string { - if x != nil && x.Model != nil { - return *x.Model - } - return "" -} - -func (x *CPU) GetCores() uint32 { - if x != nil && x.Cores != nil { - return *x.Cores - } - return 0 -} - -func (x *CPU) GetFrequency() uint32 { - if x != nil && x.Frequency != nil { - return *x.Frequency - } - return 0 -} - -type Camera struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Primary *uint64 `protobuf:"varint,1,opt,name=primary" json:"primary,omitempty"` - Secondary *uint64 `protobuf:"varint,2,opt,name=secondary" json:"secondary,omitempty"` - Flash *bool `protobuf:"varint,3,opt,name=flash" json:"flash,omitempty"` -} - -func (x *Camera) Reset() { - *x = Camera{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Camera) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Camera) ProtoMessage() {} - -func (x *Camera) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Camera.ProtoReflect.Descriptor instead. -func (*Camera) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{1} -} - -func (x *Camera) GetPrimary() uint64 { - if x != nil && x.Primary != nil { - return *x.Primary - } - return 0 -} - -func (x *Camera) GetSecondary() uint64 { - if x != nil && x.Secondary != nil { - return *x.Secondary - } - return 0 -} - -func (x *Camera) GetFlash() bool { - if x != nil && x.Flash != nil { - return *x.Flash - } - return false -} - -type D769ConfigSeq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type *uint32 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"` - Version *uint32 `protobuf:"varint,2,opt,name=version" json:"version,omitempty"` -} - -func (x *D769ConfigSeq) Reset() { - *x = D769ConfigSeq{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D769ConfigSeq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D769ConfigSeq) ProtoMessage() {} - -func (x *D769ConfigSeq) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D769ConfigSeq.ProtoReflect.Descriptor instead. -func (*D769ConfigSeq) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{2} -} - -func (x *D769ConfigSeq) GetType() uint32 { - if x != nil && x.Type != nil { - return *x.Type - } - return 0 -} - -func (x *D769ConfigSeq) GetVersion() uint32 { - if x != nil && x.Version != nil { - return *x.Version - } - return 0 -} - -type Content struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TaskId *uint32 `protobuf:"varint,1,opt,name=taskId" json:"taskId,omitempty"` - Compress *uint32 `protobuf:"varint,2,opt,name=compress" json:"compress,omitempty"` - Content []byte `protobuf:"bytes,10,opt,name=content" json:"content,omitempty"` -} - -func (x *Content) Reset() { - *x = Content{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Content) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Content) ProtoMessage() {} - -func (x *Content) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Content.ProtoReflect.Descriptor instead. -func (*Content) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{3} -} - -func (x *Content) GetTaskId() uint32 { - if x != nil && x.TaskId != nil { - return *x.TaskId - } - return 0 -} - -func (x *Content) GetCompress() uint32 { - if x != nil && x.Compress != nil { - return *x.Compress - } - return 0 -} - -func (x *Content) GetContent() []byte { - if x != nil { - return x.Content - } - return nil -} - -type D769DeviceInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Brand *string `protobuf:"bytes,1,opt,name=brand" json:"brand,omitempty"` - Model *string `protobuf:"bytes,2,opt,name=model" json:"model,omitempty"` - Os *C41219OS `protobuf:"bytes,3,opt,name=os" json:"os,omitempty"` - Cpu *CPU `protobuf:"bytes,4,opt,name=cpu" json:"cpu,omitempty"` - Memory *Memory `protobuf:"bytes,5,opt,name=memory" json:"memory,omitempty"` - Storage *Storage `protobuf:"bytes,6,opt,name=storage" json:"storage,omitempty"` - Screen *Screen `protobuf:"bytes,7,opt,name=screen" json:"screen,omitempty"` - Camera *Camera `protobuf:"bytes,8,opt,name=camera" json:"camera,omitempty"` -} - -func (x *D769DeviceInfo) Reset() { - *x = D769DeviceInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D769DeviceInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D769DeviceInfo) ProtoMessage() {} - -func (x *D769DeviceInfo) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D769DeviceInfo.ProtoReflect.Descriptor instead. -func (*D769DeviceInfo) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{4} -} - -func (x *D769DeviceInfo) GetBrand() string { - if x != nil && x.Brand != nil { - return *x.Brand - } - return "" -} - -func (x *D769DeviceInfo) GetModel() string { - if x != nil && x.Model != nil { - return *x.Model - } - 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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Total *uint64 `protobuf:"varint,1,opt,name=total" json:"total,omitempty"` - Process *uint64 `protobuf:"varint,2,opt,name=process" json:"process,omitempty"` -} - -func (x *Memory) Reset() { - *x = Memory{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Memory) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Memory) ProtoMessage() {} - -func (x *Memory) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Memory.ProtoReflect.Descriptor instead. -func (*Memory) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{5} -} - -func (x *Memory) GetTotal() uint64 { - if x != nil && x.Total != nil { - return *x.Total - } - return 0 -} - -func (x *Memory) GetProcess() uint64 { - if x != nil && x.Process != nil { - return *x.Process - } - return 0 -} - -type C41219OS struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type *uint32 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"` - Version *string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` - Sdk *string `protobuf:"bytes,3,opt,name=sdk" json:"sdk,omitempty"` - Kernel *string `protobuf:"bytes,4,opt,name=kernel" json:"kernel,omitempty"` - Rom *string `protobuf:"bytes,5,opt,name=rom" json:"rom,omitempty"` -} - -func (x *C41219OS) Reset() { - *x = C41219OS{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *C41219OS) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*C41219OS) ProtoMessage() {} - -func (x *C41219OS) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use C41219OS.ProtoReflect.Descriptor instead. -func (*C41219OS) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{6} -} - -func (x *C41219OS) GetType() uint32 { - if x != nil && x.Type != nil { - return *x.Type - } - return 0 -} - -func (x *C41219OS) GetVersion() string { - if x != nil && x.Version != nil { - return *x.Version - } - return "" -} - -func (x *C41219OS) GetSdk() string { - if x != nil && x.Sdk != nil { - return *x.Sdk - } - return "" -} - -func (x *C41219OS) GetKernel() string { - if x != nil && x.Kernel != nil { - return *x.Kernel - } - return "" -} - -func (x *C41219OS) GetRom() string { - if x != nil && x.Rom != nil { - return *x.Rom - } - return "" -} - -type QueryUinPackageUsageReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type *uint32 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"` - UinFileSize *uint64 `protobuf:"varint,2,opt,name=uinFileSize" json:"uinFileSize,omitempty"` -} - -func (x *QueryUinPackageUsageReq) Reset() { - *x = QueryUinPackageUsageReq{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryUinPackageUsageReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryUinPackageUsageReq) ProtoMessage() {} - -func (x *QueryUinPackageUsageReq) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QueryUinPackageUsageReq.ProtoReflect.Descriptor instead. -func (*QueryUinPackageUsageReq) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{7} -} - -func (x *QueryUinPackageUsageReq) GetType() uint32 { - if x != nil && x.Type != nil { - return *x.Type - } - return 0 -} - -func (x *QueryUinPackageUsageReq) GetUinFileSize() uint64 { - if x != nil && x.UinFileSize != nil { - return *x.UinFileSize - } - return 0 -} - -type QueryUinPackageUsageRsp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *uint32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"` - LeftUinNum *uint64 `protobuf:"varint,2,opt,name=leftUinNum" json:"leftUinNum,omitempty"` - MaxUinNum *uint64 `protobuf:"varint,3,opt,name=maxUinNum" json:"maxUinNum,omitempty"` - Proportion *uint32 `protobuf:"varint,4,opt,name=proportion" json:"proportion,omitempty"` - UinPackageUsedList []*UinPackageUsedInfo `protobuf:"bytes,10,rep,name=uinPackageUsedList" json:"uinPackageUsedList,omitempty"` -} - -func (x *QueryUinPackageUsageRsp) Reset() { - *x = QueryUinPackageUsageRsp{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *QueryUinPackageUsageRsp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*QueryUinPackageUsageRsp) ProtoMessage() {} - -func (x *QueryUinPackageUsageRsp) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use QueryUinPackageUsageRsp.ProtoReflect.Descriptor instead. -func (*QueryUinPackageUsageRsp) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{8} -} - -func (x *QueryUinPackageUsageRsp) GetStatus() uint32 { - if x != nil && x.Status != nil { - return *x.Status - } - return 0 -} - -func (x *QueryUinPackageUsageRsp) GetLeftUinNum() uint64 { - if x != nil && x.LeftUinNum != nil { - return *x.LeftUinNum - } - return 0 -} - -func (x *QueryUinPackageUsageRsp) GetMaxUinNum() uint64 { - if x != nil && x.MaxUinNum != nil { - return *x.MaxUinNum - } - return 0 -} - -func (x *QueryUinPackageUsageRsp) GetProportion() uint32 { - if x != nil && x.Proportion != nil { - return *x.Proportion - } - return 0 -} - -func (x *QueryUinPackageUsageRsp) GetUinPackageUsedList() []*UinPackageUsedInfo { - if x != nil { - return x.UinPackageUsedList - } - return nil -} - -type D769ReqBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ConfigList []*D769ConfigSeq `protobuf:"bytes,1,rep,name=configList" json:"configList,omitempty"` - DeviceInfo *D769DeviceInfo `protobuf:"bytes,2,opt,name=deviceInfo" json:"deviceInfo,omitempty"` - Info *string `protobuf:"bytes,3,opt,name=info" json:"info,omitempty"` - Province *string `protobuf:"bytes,4,opt,name=province" json:"province,omitempty"` - City *string `protobuf:"bytes,5,opt,name=city" json:"city,omitempty"` - ReqDebugMsg *int32 `protobuf:"varint,6,opt,name=reqDebugMsg" json:"reqDebugMsg,omitempty"` - QueryUinPackageUsageReq *QueryUinPackageUsageReq `protobuf:"bytes,101,opt,name=queryUinPackageUsageReq" json:"queryUinPackageUsageReq,omitempty"` -} - -func (x *D769ReqBody) Reset() { - *x = D769ReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D769ReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D769ReqBody) ProtoMessage() {} - -func (x *D769ReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D769ReqBody.ProtoReflect.Descriptor instead. -func (*D769ReqBody) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{9} -} - -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 - } - return "" -} - -func (x *D769ReqBody) GetProvince() string { - if x != nil && x.Province != nil { - return *x.Province - } - return "" -} - -func (x *D769ReqBody) GetCity() string { - if x != nil && x.City != nil { - return *x.City - } - return "" -} - -func (x *D769ReqBody) GetReqDebugMsg() int32 { - if x != nil && x.ReqDebugMsg != nil { - return *x.ReqDebugMsg - } - return 0 -} - -func (x *D769ReqBody) GetQueryUinPackageUsageReq() *QueryUinPackageUsageReq { - if x != nil { - return x.QueryUinPackageUsageReq - } - return nil -} - -type D769RspBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Result *uint32 `protobuf:"varint,1,opt,name=result" json:"result,omitempty"` - ConfigList []*D769ConfigSeq `protobuf:"bytes,2,rep,name=configList" json:"configList,omitempty"` - QueryUinPackageUsageRsp *QueryUinPackageUsageRsp `protobuf:"bytes,101,opt,name=queryUinPackageUsageRsp" json:"queryUinPackageUsageRsp,omitempty"` -} - -func (x *D769RspBody) Reset() { - *x = D769RspBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D769RspBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D769RspBody) ProtoMessage() {} - -func (x *D769RspBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D769RspBody.ProtoReflect.Descriptor instead. -func (*D769RspBody) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{10} -} - -func (x *D769RspBody) GetResult() uint32 { - if x != nil && x.Result != nil { - return *x.Result - } - 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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Model *string `protobuf:"bytes,1,opt,name=model" json:"model,omitempty"` - Width *uint32 `protobuf:"varint,2,opt,name=width" json:"width,omitempty"` - Height *uint32 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"` - Dpi *uint32 `protobuf:"varint,4,opt,name=dpi" json:"dpi,omitempty"` - MultiTouch *bool `protobuf:"varint,5,opt,name=multiTouch" json:"multiTouch,omitempty"` -} - -func (x *Screen) Reset() { - *x = Screen{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Screen) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Screen) ProtoMessage() {} - -func (x *Screen) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Screen.ProtoReflect.Descriptor instead. -func (*Screen) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{11} -} - -func (x *Screen) GetModel() string { - if x != nil && x.Model != nil { - return *x.Model - } - return "" -} - -func (x *Screen) GetWidth() uint32 { - if x != nil && x.Width != nil { - return *x.Width - } - return 0 -} - -func (x *Screen) GetHeight() uint32 { - if x != nil && x.Height != nil { - return *x.Height - } - return 0 -} - -func (x *Screen) GetDpi() uint32 { - if x != nil && x.Dpi != nil { - return *x.Dpi - } - return 0 -} - -func (x *Screen) GetMultiTouch() bool { - if x != nil && x.MultiTouch != nil { - return *x.MultiTouch - } - return false -} - -type Storage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Builtin *uint64 `protobuf:"varint,1,opt,name=builtin" json:"builtin,omitempty"` - External *uint64 `protobuf:"varint,2,opt,name=external" json:"external,omitempty"` -} - -func (x *Storage) Reset() { - *x = Storage{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Storage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Storage) ProtoMessage() {} - -func (x *Storage) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Storage.ProtoReflect.Descriptor instead. -func (*Storage) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{12} -} - -func (x *Storage) GetBuiltin() uint64 { - if x != nil && x.Builtin != nil { - return *x.Builtin - } - return 0 -} - -func (x *Storage) GetExternal() uint64 { - if x != nil && x.External != nil { - return *x.External - } - return 0 -} - -type UinPackageUsedInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RuleId *uint32 `protobuf:"varint,1,opt,name=ruleId" json:"ruleId,omitempty"` - Author *string `protobuf:"bytes,2,opt,name=author" json:"author,omitempty"` - Url *string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"` - UinNum *uint64 `protobuf:"varint,4,opt,name=uinNum" json:"uinNum,omitempty"` -} - -func (x *UinPackageUsedInfo) Reset() { - *x = UinPackageUsedInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x769_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UinPackageUsedInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UinPackageUsedInfo) ProtoMessage() {} - -func (x *UinPackageUsedInfo) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x769_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UinPackageUsedInfo.ProtoReflect.Descriptor instead. -func (*UinPackageUsedInfo) Descriptor() ([]byte, []int) { - return file_oidb0x769_proto_rawDescGZIP(), []int{13} -} - -func (x *UinPackageUsedInfo) GetRuleId() uint32 { - if x != nil && x.RuleId != nil { - return *x.RuleId - } - return 0 -} - -func (x *UinPackageUsedInfo) GetAuthor() string { - if x != nil && x.Author != nil { - return *x.Author - } - return "" -} - -func (x *UinPackageUsedInfo) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url - } - return "" -} - -func (x *UinPackageUsedInfo) GetUinNum() uint64 { - if x != nil && x.UinNum != nil { - return *x.UinNum - } - return 0 -} - -var File_oidb0x769_proto protoreflect.FileDescriptor - -var file_oidb0x769_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x69, 0x64, 0x62, 0x30, 0x78, 0x37, 0x36, 0x39, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x4f, 0x0a, 0x03, 0x43, 0x50, 0x55, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x14, - 0x0a, 0x05, 0x63, 0x6f, 0x72, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, - 0x6f, 0x72, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, - 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x66, 0x72, 0x65, 0x71, 0x75, 0x65, 0x6e, - 0x63, 0x79, 0x22, 0x56, 0x0a, 0x06, 0x43, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x12, 0x18, 0x0a, 0x07, - 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x70, - 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x61, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x65, 0x63, 0x6f, 0x6e, - 0x64, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x73, 0x68, 0x22, 0x3d, 0x0a, 0x0d, 0x44, 0x37, - 0x36, 0x39, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x57, 0x0a, 0x07, 0x43, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, - 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, - 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, - 0x6e, 0x74, 0x22, 0xf6, 0x01, 0x0a, 0x0e, 0x44, 0x37, 0x36, 0x39, 0x44, 0x65, 0x76, 0x69, 0x63, - 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x72, 0x61, 0x6e, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x72, 0x61, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, - 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, - 0x6c, 0x12, 0x19, 0x0a, 0x02, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, - 0x43, 0x34, 0x31, 0x32, 0x31, 0x39, 0x4f, 0x53, 0x52, 0x02, 0x6f, 0x73, 0x12, 0x16, 0x0a, 0x03, - 0x63, 0x70, 0x75, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x04, 0x2e, 0x43, 0x50, 0x55, 0x52, - 0x03, 0x63, 0x70, 0x75, 0x12, 0x1f, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x52, 0x06, 0x6d, - 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x22, 0x0a, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x52, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x06, 0x73, 0x63, 0x72, - 0x65, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x53, 0x63, 0x72, 0x65, - 0x65, 0x6e, 0x52, 0x06, 0x73, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x12, 0x1f, 0x0a, 0x06, 0x63, 0x61, - 0x6d, 0x65, 0x72, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x43, 0x61, 0x6d, - 0x65, 0x72, 0x61, 0x52, 0x06, 0x63, 0x61, 0x6d, 0x65, 0x72, 0x61, 0x22, 0x38, 0x0a, 0x06, 0x4d, - 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x70, - 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x70, 0x72, - 0x6f, 0x63, 0x65, 0x73, 0x73, 0x22, 0x74, 0x0a, 0x08, 0x43, 0x34, 0x31, 0x32, 0x31, 0x39, 0x4f, - 0x53, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x10, 0x0a, 0x03, 0x73, 0x64, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x64, - 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x6f, 0x6d, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x6f, 0x6d, 0x22, 0x4f, 0x0a, 0x17, 0x51, - 0x75, 0x65, 0x72, 0x79, 0x55, 0x69, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x73, - 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x69, - 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0b, 0x75, 0x69, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0xd4, 0x01, 0x0a, - 0x17, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x69, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, - 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x1e, 0x0a, 0x0a, 0x6c, 0x65, 0x66, 0x74, 0x55, 0x69, 0x6e, 0x4e, 0x75, 0x6d, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x6c, 0x65, 0x66, 0x74, 0x55, 0x69, 0x6e, 0x4e, 0x75, 0x6d, - 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x55, 0x69, 0x6e, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x61, 0x78, 0x55, 0x69, 0x6e, 0x4e, 0x75, 0x6d, 0x12, 0x1e, - 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43, - 0x0a, 0x12, 0x75, 0x69, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x73, 0x65, 0x64, - 0x4c, 0x69, 0x73, 0x74, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x55, 0x69, 0x6e, - 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x73, 0x65, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x12, 0x75, 0x69, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x73, 0x65, 0x64, 0x4c, - 0x69, 0x73, 0x74, 0x22, 0xa8, 0x02, 0x0a, 0x0b, 0x44, 0x37, 0x36, 0x39, 0x52, 0x65, 0x71, 0x42, - 0x6f, 0x64, 0x79, 0x12, 0x2e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4c, 0x69, 0x73, - 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x37, 0x36, 0x39, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x53, 0x65, 0x71, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, - 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x37, 0x36, 0x39, 0x44, 0x65, - 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, - 0x69, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x71, 0x44, - 0x65, 0x62, 0x75, 0x67, 0x4d, 0x73, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x72, - 0x65, 0x71, 0x44, 0x65, 0x62, 0x75, 0x67, 0x4d, 0x73, 0x67, 0x12, 0x52, 0x0a, 0x17, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x55, 0x69, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x73, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x71, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x55, 0x69, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x73, 0x61, - 0x67, 0x65, 0x52, 0x65, 0x71, 0x52, 0x17, 0x71, 0x75, 0x65, 0x72, 0x79, 0x55, 0x69, 0x6e, 0x50, - 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x22, 0xa9, - 0x01, 0x0a, 0x0b, 0x44, 0x37, 0x36, 0x39, 0x52, 0x73, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x16, - 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x2e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x37, 0x36, - 0x39, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x65, 0x71, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x17, 0x71, 0x75, 0x65, 0x72, 0x79, 0x55, - 0x69, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x73, - 0x70, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, - 0x69, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x73, - 0x70, 0x52, 0x17, 0x71, 0x75, 0x65, 0x72, 0x79, 0x55, 0x69, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, - 0x67, 0x65, 0x55, 0x73, 0x61, 0x67, 0x65, 0x52, 0x73, 0x70, 0x22, 0x7e, 0x0a, 0x06, 0x53, 0x63, - 0x72, 0x65, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x77, 0x69, - 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, - 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x70, 0x69, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x64, 0x70, 0x69, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x75, - 0x6c, 0x74, 0x69, 0x54, 0x6f, 0x75, 0x63, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, - 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x54, 0x6f, 0x75, 0x63, 0x68, 0x22, 0x3f, 0x0a, 0x07, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x74, 0x69, 0x6e, 0x12, - 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x08, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x22, 0x6e, 0x0a, 0x12, 0x55, - 0x69, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x73, 0x65, 0x64, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x75, 0x74, - 0x68, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x75, 0x74, 0x68, 0x6f, - 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x69, 0x6e, 0x4e, 0x75, 0x6d, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x06, 0x75, 0x69, 0x6e, 0x4e, 0x75, 0x6d, 0x42, 0x09, 0x5a, 0x07, 0x2e, - 0x2f, 0x3b, 0x6f, 0x69, 0x64, 0x62, -} - -var ( - file_oidb0x769_proto_rawDescOnce sync.Once - file_oidb0x769_proto_rawDescData = file_oidb0x769_proto_rawDesc -) - -func file_oidb0x769_proto_rawDescGZIP() []byte { - file_oidb0x769_proto_rawDescOnce.Do(func() { - file_oidb0x769_proto_rawDescData = protoimpl.X.CompressGZIP(file_oidb0x769_proto_rawDescData) - }) - return file_oidb0x769_proto_rawDescData -} - -var file_oidb0x769_proto_msgTypes = make([]protoimpl.MessageInfo, 14) -var file_oidb0x769_proto_goTypes = []interface{}{ - (*CPU)(nil), // 0: CPU - (*Camera)(nil), // 1: Camera - (*D769ConfigSeq)(nil), // 2: D769ConfigSeq - (*Content)(nil), // 3: Content - (*D769DeviceInfo)(nil), // 4: D769DeviceInfo - (*Memory)(nil), // 5: Memory - (*C41219OS)(nil), // 6: C41219OS - (*QueryUinPackageUsageReq)(nil), // 7: QueryUinPackageUsageReq - (*QueryUinPackageUsageRsp)(nil), // 8: QueryUinPackageUsageRsp - (*D769ReqBody)(nil), // 9: D769ReqBody - (*D769RspBody)(nil), // 10: D769RspBody - (*Screen)(nil), // 11: Screen - (*Storage)(nil), // 12: Storage - (*UinPackageUsedInfo)(nil), // 13: UinPackageUsedInfo -} -var file_oidb0x769_proto_depIdxs = []int32{ - 6, // 0: D769DeviceInfo.os:type_name -> C41219OS - 0, // 1: D769DeviceInfo.cpu:type_name -> CPU - 5, // 2: D769DeviceInfo.memory:type_name -> Memory - 12, // 3: D769DeviceInfo.storage:type_name -> Storage - 11, // 4: D769DeviceInfo.screen:type_name -> Screen - 1, // 5: D769DeviceInfo.camera:type_name -> Camera - 13, // 6: QueryUinPackageUsageRsp.uinPackageUsedList:type_name -> UinPackageUsedInfo - 2, // 7: D769ReqBody.configList:type_name -> D769ConfigSeq - 4, // 8: D769ReqBody.deviceInfo:type_name -> D769DeviceInfo - 7, // 9: D769ReqBody.queryUinPackageUsageReq:type_name -> QueryUinPackageUsageReq - 2, // 10: D769RspBody.configList:type_name -> D769ConfigSeq - 8, // 11: D769RspBody.queryUinPackageUsageRsp:type_name -> QueryUinPackageUsageRsp - 12, // [12:12] is the sub-list for method output_type - 12, // [12:12] is the sub-list for method input_type - 12, // [12:12] is the sub-list for extension type_name - 12, // [12:12] is the sub-list for extension extendee - 0, // [0:12] is the sub-list for field type_name -} - -func init() { file_oidb0x769_proto_init() } -func file_oidb0x769_proto_init() { - if File_oidb0x769_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_oidb0x769_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CPU); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Camera); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D769ConfigSeq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Content); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D769DeviceInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Memory); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*C41219OS); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryUinPackageUsageReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*QueryUinPackageUsageRsp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D769ReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D769RspBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Screen); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Storage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x769_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UinPackageUsedInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oidb0x769_proto_rawDesc, - NumEnums: 0, - NumMessages: 14, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_oidb0x769_proto_goTypes, - DependencyIndexes: file_oidb0x769_proto_depIdxs, - MessageInfos: file_oidb0x769_proto_msgTypes, - }.Build() - File_oidb0x769_proto = out.File - file_oidb0x769_proto_rawDesc = nil - file_oidb0x769_proto_goTypes = nil - file_oidb0x769_proto_depIdxs = nil -} diff --git a/client/pb/oidb/oidb0x769.proto b/client/pb/oidb/oidb0x769.proto deleted file mode 100644 index 39ef977c..00000000 --- a/client/pb/oidb/oidb0x769.proto +++ /dev/null @@ -1,99 +0,0 @@ -syntax = "proto2"; - -option go_package = "./;oidb"; - -message CPU { - optional string model = 1; - optional uint32 cores = 2; - optional uint32 frequency = 3; -} - -message Camera { - optional uint64 primary = 1; - optional uint64 secondary = 2; - optional bool flash = 3; -} - -message D769ConfigSeq { - optional uint32 type = 1; - optional uint32 version = 2; -} - -message Content { - optional uint32 taskId = 1; - optional uint32 compress = 2; - optional bytes content = 10; -} - -message D769DeviceInfo { - optional string brand = 1; - optional string model = 2; - optional C41219OS os = 3; - optional CPU cpu = 4; - optional Memory memory = 5; - optional Storage storage = 6; - optional Screen screen = 7; - optional Camera camera = 8; -} - -message Memory { - optional uint64 total = 1; - optional uint64 process = 2; -} - -message C41219OS { - optional uint32 type = 1; - optional string version = 2; - optional string sdk = 3; - optional string kernel = 4; - optional string rom = 5; -} - -message QueryUinPackageUsageReq { - optional uint32 type = 1; - optional uint64 uinFileSize = 2; -} - -message QueryUinPackageUsageRsp { - optional uint32 status = 1; - optional uint64 leftUinNum = 2; - optional uint64 maxUinNum = 3; - optional uint32 proportion = 4; - repeated UinPackageUsedInfo uinPackageUsedList = 10; -} - -message D769ReqBody { - repeated D769ConfigSeq configList = 1; - optional D769DeviceInfo deviceInfo = 2; - optional string info = 3; - optional string province = 4; - optional string city = 5; - optional int32 reqDebugMsg = 6; - optional QueryUinPackageUsageReq queryUinPackageUsageReq = 101; -} - -message D769RspBody { - optional uint32 result = 1; - repeated D769ConfigSeq configList = 2; - optional QueryUinPackageUsageRsp queryUinPackageUsageRsp = 101; -} - -message Screen { - optional string model = 1; - optional uint32 width = 2; - optional uint32 height = 3; - optional uint32 dpi = 4; - optional bool multiTouch = 5; -} - -message Storage { - optional uint64 builtin = 1; - optional uint64 external = 2; -} - -message UinPackageUsedInfo { - optional uint32 ruleId = 1; - optional string author = 2; - optional string url = 3; - optional uint64 uinNum = 4; -} diff --git a/client/pb/oidb/oidb0x990.pb.go b/client/pb/oidb/oidb0x990.pb.go deleted file mode 100644 index 253f1583..00000000 --- a/client/pb/oidb/oidb0x990.pb.go +++ /dev/null @@ -1,413 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.17.1 -// source: oidb0x990.proto - -package oidb - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type TranslateReqBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // TranslateReq translate_req = 1; - BatchTranslateReq *BatchTranslateReq `protobuf:"bytes,2,opt,name=batch_translate_req,json=batchTranslateReq,proto3" json:"batch_translate_req,omitempty"` -} - -func (x *TranslateReqBody) Reset() { - *x = TranslateReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x990_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TranslateReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TranslateReqBody) ProtoMessage() {} - -func (x *TranslateReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x990_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TranslateReqBody.ProtoReflect.Descriptor instead. -func (*TranslateReqBody) Descriptor() ([]byte, []int) { - return file_oidb0x990_proto_rawDescGZIP(), []int{0} -} - -func (x *TranslateReqBody) GetBatchTranslateReq() *BatchTranslateReq { - if x != nil { - return x.BatchTranslateReq - } - return nil -} - -type TranslateRspBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // TranslateRsp translate_rsp = 1; - BatchTranslateRsp *BatchTranslateRsp `protobuf:"bytes,2,opt,name=batch_translate_rsp,json=batchTranslateRsp,proto3" json:"batch_translate_rsp,omitempty"` -} - -func (x *TranslateRspBody) Reset() { - *x = TranslateRspBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x990_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TranslateRspBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TranslateRspBody) ProtoMessage() {} - -func (x *TranslateRspBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x990_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TranslateRspBody.ProtoReflect.Descriptor instead. -func (*TranslateRspBody) Descriptor() ([]byte, []int) { - return file_oidb0x990_proto_rawDescGZIP(), []int{1} -} - -func (x *TranslateRspBody) GetBatchTranslateRsp() *BatchTranslateRsp { - if x != nil { - return x.BatchTranslateRsp - } - return nil -} - -type BatchTranslateReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SrcLanguage string `protobuf:"bytes,1,opt,name=src_language,json=srcLanguage,proto3" json:"src_language,omitempty"` - DstLanguage string `protobuf:"bytes,2,opt,name=dst_language,json=dstLanguage,proto3" json:"dst_language,omitempty"` - SrcTextList []string `protobuf:"bytes,3,rep,name=src_text_list,json=srcTextList,proto3" json:"src_text_list,omitempty"` -} - -func (x *BatchTranslateReq) Reset() { - *x = BatchTranslateReq{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x990_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BatchTranslateReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BatchTranslateReq) ProtoMessage() {} - -func (x *BatchTranslateReq) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x990_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BatchTranslateReq.ProtoReflect.Descriptor instead. -func (*BatchTranslateReq) Descriptor() ([]byte, []int) { - return file_oidb0x990_proto_rawDescGZIP(), []int{2} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ErrorCode int32 `protobuf:"varint,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` - ErrorMsg []byte `protobuf:"bytes,2,opt,name=error_msg,json=errorMsg,proto3" json:"error_msg,omitempty"` - SrcLanguage string `protobuf:"bytes,3,opt,name=src_language,json=srcLanguage,proto3" json:"src_language,omitempty"` - DstLanguage string `protobuf:"bytes,4,opt,name=dst_language,json=dstLanguage,proto3" json:"dst_language,omitempty"` - SrcTextList []string `protobuf:"bytes,5,rep,name=src_text_list,json=srcTextList,proto3" json:"src_text_list,omitempty"` - DstTextList []string `protobuf:"bytes,6,rep,name=dst_text_list,json=dstTextList,proto3" json:"dst_text_list,omitempty"` -} - -func (x *BatchTranslateRsp) Reset() { - *x = BatchTranslateRsp{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0x990_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BatchTranslateRsp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BatchTranslateRsp) ProtoMessage() {} - -func (x *BatchTranslateRsp) ProtoReflect() protoreflect.Message { - mi := &file_oidb0x990_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use BatchTranslateRsp.ProtoReflect.Descriptor instead. -func (*BatchTranslateRsp) Descriptor() ([]byte, []int) { - return file_oidb0x990_proto_rawDescGZIP(), []int{3} -} - -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 -} - -var File_oidb0x990_proto protoreflect.FileDescriptor - -var file_oidb0x990_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x69, 0x64, 0x62, 0x30, 0x78, 0x39, 0x39, 0x30, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x56, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x71, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x42, 0x0a, 0x13, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x74, - 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x72, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x52, 0x11, 0x62, 0x61, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x22, 0x56, 0x0a, 0x10, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x73, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x42, 0x0a, - 0x13, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, - 0x5f, 0x72, 0x73, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x42, 0x61, 0x74, - 0x63, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x73, 0x70, 0x52, 0x11, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x73, - 0x70, 0x22, 0x7d, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x72, 0x63, 0x5f, 0x6c, 0x61, - 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x72, - 0x63, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x73, 0x74, - 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x64, 0x73, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0d, - 0x73, 0x72, 0x63, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x72, 0x63, 0x54, 0x65, 0x78, 0x74, 0x4c, 0x69, 0x73, 0x74, - 0x22, 0xdd, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x63, 0x68, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, - 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, - 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, - 0x73, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x72, 0x63, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, - 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x72, 0x63, 0x4c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x73, 0x74, 0x5f, 0x6c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x73, 0x74, - 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0d, 0x73, 0x72, 0x63, 0x5f, - 0x74, 0x65, 0x78, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0b, 0x73, 0x72, 0x63, 0x54, 0x65, 0x78, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0d, - 0x64, 0x73, 0x74, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x06, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x73, 0x74, 0x54, 0x65, 0x78, 0x74, 0x4c, 0x69, 0x73, 0x74, - 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x3b, 0x6f, 0x69, 0x64, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_oidb0x990_proto_rawDescOnce sync.Once - file_oidb0x990_proto_rawDescData = file_oidb0x990_proto_rawDesc -) - -func file_oidb0x990_proto_rawDescGZIP() []byte { - file_oidb0x990_proto_rawDescOnce.Do(func() { - file_oidb0x990_proto_rawDescData = protoimpl.X.CompressGZIP(file_oidb0x990_proto_rawDescData) - }) - return file_oidb0x990_proto_rawDescData -} - -var file_oidb0x990_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_oidb0x990_proto_goTypes = []interface{}{ - (*TranslateReqBody)(nil), // 0: TranslateReqBody - (*TranslateRspBody)(nil), // 1: TranslateRspBody - (*BatchTranslateReq)(nil), // 2: BatchTranslateReq - (*BatchTranslateRsp)(nil), // 3: BatchTranslateRsp -} -var file_oidb0x990_proto_depIdxs = []int32{ - 2, // 0: TranslateReqBody.batch_translate_req:type_name -> BatchTranslateReq - 3, // 1: TranslateRspBody.batch_translate_rsp:type_name -> BatchTranslateRsp - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_oidb0x990_proto_init() } -func file_oidb0x990_proto_init() { - if File_oidb0x990_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_oidb0x990_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TranslateReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x990_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TranslateRspBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x990_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchTranslateReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0x990_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*BatchTranslateRsp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oidb0x990_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_oidb0x990_proto_goTypes, - DependencyIndexes: file_oidb0x990_proto_depIdxs, - MessageInfos: file_oidb0x990_proto_msgTypes, - }.Build() - File_oidb0x990_proto = out.File - file_oidb0x990_proto_rawDesc = nil - file_oidb0x990_proto_goTypes = nil - file_oidb0x990_proto_depIdxs = nil -} diff --git a/client/pb/oidb/oidb0x990.proto b/client/pb/oidb/oidb0x990.proto deleted file mode 100644 index 81ee55e4..00000000 --- a/client/pb/oidb/oidb0x990.proto +++ /dev/null @@ -1,28 +0,0 @@ -syntax = "proto3"; - -option go_package = "./;oidb"; - -message TranslateReqBody { - // TranslateReq translate_req = 1; - BatchTranslateReq batch_translate_req = 2; -} - -message TranslateRspBody { - // TranslateRsp translate_rsp = 1; - BatchTranslateRsp batch_translate_rsp = 2; -} - -message BatchTranslateReq { - string src_language = 1; - string dst_language = 2; - repeated string src_text_list = 3; -} - -message BatchTranslateRsp { - int32 error_code = 1; - bytes error_msg = 2; - string src_language = 3; - string dst_language = 4; - repeated string src_text_list = 5; - repeated string dst_text_list = 6; -} \ No newline at end of file diff --git a/client/pb/oidb/oidb0xD79.proto b/client/pb/oidb/oidb0xD79.proto deleted file mode 100644 index 7412257f..00000000 --- a/client/pb/oidb/oidb0xD79.proto +++ /dev/null @@ -1,25 +0,0 @@ -syntax = "proto3"; - -option go_package = "./;oidb"; - -message D79ReqBody { - uint64 seq = 1; - uint64 uin = 2; - uint32 compress_flag = 3; - bytes content = 4; - uint64 sender_uin = 5; - bytes qua = 6; - bytes word_ext = 7; -} - -message D79RspBody { - uint32 ret = 1; - uint64 seq = 2; - uint64 uin = 3; - uint32 compress_flag = 4; - D79Content content = 5; -} - -message D79Content { - repeated bytes slice_content = 1; -} \ No newline at end of file diff --git a/client/pb/oidb/oidb0xb77.pb.go b/client/pb/oidb/oidb0xb77.pb.go deleted file mode 100644 index 20fd388b..00000000 --- a/client/pb/oidb/oidb0xb77.pb.go +++ /dev/null @@ -1,575 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.17.1 -// source: oidb0xb77.proto - -package oidb - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type DB77ReqBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AppId uint64 `protobuf:"varint,1,opt,name=appId,proto3" json:"appId,omitempty"` - AppType uint32 `protobuf:"varint,2,opt,name=appType,proto3" json:"appType,omitempty"` - MsgStyle uint32 `protobuf:"varint,3,opt,name=msgStyle,proto3" json:"msgStyle,omitempty"` - SenderUin uint64 `protobuf:"varint,4,opt,name=senderUin,proto3" json:"senderUin,omitempty"` - ClientInfo *DB77ClientInfo `protobuf:"bytes,5,opt,name=clientInfo,proto3" json:"clientInfo,omitempty"` - TextMsg string `protobuf:"bytes,6,opt,name=textMsg,proto3" json:"textMsg,omitempty"` - ExtInfo *DB77ExtInfo `protobuf:"bytes,7,opt,name=extInfo,proto3" json:"extInfo,omitempty"` - SendType uint32 `protobuf:"varint,10,opt,name=sendType,proto3" json:"sendType,omitempty"` - RecvUin uint64 `protobuf:"varint,11,opt,name=recvUin,proto3" json:"recvUin,omitempty"` - RichMsgBody *DB77RichMsgBody `protobuf:"bytes,12,opt,name=richMsgBody,proto3" json:"richMsgBody,omitempty"` -} - -func (x *DB77ReqBody) Reset() { - *x = DB77ReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xb77_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DB77ReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DB77ReqBody) ProtoMessage() {} - -func (x *DB77ReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xb77_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DB77ReqBody.ProtoReflect.Descriptor instead. -func (*DB77ReqBody) Descriptor() ([]byte, []int) { - return file_oidb0xb77_proto_rawDescGZIP(), []int{0} -} - -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 -} - -type DB77ClientInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Platform uint32 `protobuf:"varint,1,opt,name=platform,proto3" json:"platform,omitempty"` - SdkVersion string `protobuf:"bytes,2,opt,name=sdkVersion,proto3" json:"sdkVersion,omitempty"` - AndroidPackageName string `protobuf:"bytes,3,opt,name=androidPackageName,proto3" json:"androidPackageName,omitempty"` - AndroidSignature string `protobuf:"bytes,4,opt,name=androidSignature,proto3" json:"androidSignature,omitempty"` - IosBundleId string `protobuf:"bytes,5,opt,name=iosBundleId,proto3" json:"iosBundleId,omitempty"` - PcSign string `protobuf:"bytes,6,opt,name=pcSign,proto3" json:"pcSign,omitempty"` -} - -func (x *DB77ClientInfo) Reset() { - *x = DB77ClientInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xb77_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DB77ClientInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DB77ClientInfo) ProtoMessage() {} - -func (x *DB77ClientInfo) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xb77_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DB77ClientInfo.ProtoReflect.Descriptor instead. -func (*DB77ClientInfo) Descriptor() ([]byte, []int) { - return file_oidb0xb77_proto_rawDescGZIP(), []int{1} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CustomFeatureId []uint32 `protobuf:"varint,11,rep,packed,name=customFeatureId,proto3" json:"customFeatureId,omitempty"` - ApnsWording string `protobuf:"bytes,12,opt,name=apnsWording,proto3" json:"apnsWording,omitempty"` - GroupSaveDbFlag uint32 `protobuf:"varint,13,opt,name=groupSaveDbFlag,proto3" json:"groupSaveDbFlag,omitempty"` - ReceiverAppId uint32 `protobuf:"varint,14,opt,name=receiverAppId,proto3" json:"receiverAppId,omitempty"` - MsgSeq uint64 `protobuf:"varint,15,opt,name=msgSeq,proto3" json:"msgSeq,omitempty"` -} - -func (x *DB77ExtInfo) Reset() { - *x = DB77ExtInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xb77_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DB77ExtInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DB77ExtInfo) ProtoMessage() {} - -func (x *DB77ExtInfo) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xb77_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DB77ExtInfo.ProtoReflect.Descriptor instead. -func (*DB77ExtInfo) Descriptor() ([]byte, []int) { - return file_oidb0xb77_proto_rawDescGZIP(), []int{2} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Title string `protobuf:"bytes,10,opt,name=title,proto3" json:"title,omitempty"` - Summary string `protobuf:"bytes,11,opt,name=summary,proto3" json:"summary,omitempty"` - Brief string `protobuf:"bytes,12,opt,name=brief,proto3" json:"brief,omitempty"` - Url string `protobuf:"bytes,13,opt,name=url,proto3" json:"url,omitempty"` - PictureUrl string `protobuf:"bytes,14,opt,name=pictureUrl,proto3" json:"pictureUrl,omitempty"` - Action string `protobuf:"bytes,15,opt,name=action,proto3" json:"action,omitempty"` - MusicUrl string `protobuf:"bytes,16,opt,name=musicUrl,proto3" json:"musicUrl,omitempty"` //ImageInfo imageInfo = 17; -} - -func (x *DB77RichMsgBody) Reset() { - *x = DB77RichMsgBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xb77_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DB77RichMsgBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DB77RichMsgBody) ProtoMessage() {} - -func (x *DB77RichMsgBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xb77_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DB77RichMsgBody.ProtoReflect.Descriptor instead. -func (*DB77RichMsgBody) Descriptor() ([]byte, []int) { - return file_oidb0xb77_proto_rawDescGZIP(), []int{3} -} - -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 "" -} - -var File_oidb0xb77_proto protoreflect.FileDescriptor - -var file_oidb0xb77_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x69, 0x64, 0x62, 0x30, 0x78, 0x62, 0x37, 0x37, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xd4, 0x02, 0x0a, 0x0b, 0x44, 0x42, 0x37, 0x37, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x70, 0x70, 0x54, 0x79, - 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x70, 0x70, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x73, 0x67, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6d, 0x73, 0x67, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x1c, 0x0a, - 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x55, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x55, 0x69, 0x6e, 0x12, 0x2f, 0x0a, 0x0a, 0x63, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0f, 0x2e, 0x44, 0x42, 0x37, 0x37, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, - 0x74, 0x65, 0x78, 0x74, 0x4d, 0x73, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, - 0x65, 0x78, 0x74, 0x4d, 0x73, 0x67, 0x12, 0x26, 0x0a, 0x07, 0x65, 0x78, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x37, 0x37, 0x45, 0x78, - 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x07, 0x65, 0x78, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, - 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, - 0x63, 0x76, 0x55, 0x69, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x72, 0x65, 0x63, - 0x76, 0x55, 0x69, 0x6e, 0x12, 0x32, 0x0a, 0x0b, 0x72, 0x69, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x42, - 0x6f, 0x64, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x44, 0x42, 0x37, 0x37, - 0x52, 0x69, 0x63, 0x68, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x0b, 0x72, 0x69, 0x63, - 0x68, 0x4d, 0x73, 0x67, 0x42, 0x6f, 0x64, 0x79, 0x22, 0xe2, 0x01, 0x0a, 0x0e, 0x44, 0x42, 0x37, - 0x37, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x70, - 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x64, 0x6b, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x64, 0x6b, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x12, 0x61, 0x6e, 0x64, 0x72, 0x6f, - 0x69, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x12, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x50, 0x61, 0x63, 0x6b, - 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x61, 0x6e, 0x64, 0x72, 0x6f, - 0x69, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x10, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x74, - 0x75, 0x72, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6f, 0x73, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, - 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x6f, 0x73, 0x42, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x63, 0x53, 0x69, 0x67, 0x6e, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x63, 0x53, 0x69, 0x67, 0x6e, 0x22, 0xc1, 0x01, - 0x0a, 0x0b, 0x44, 0x42, 0x37, 0x37, 0x45, 0x78, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x28, 0x0a, - 0x0f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x49, 0x64, - 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x65, - 0x61, 0x74, 0x75, 0x72, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x70, 0x6e, 0x73, 0x57, - 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x70, - 0x6e, 0x73, 0x57, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x0a, 0x0f, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x53, 0x61, 0x76, 0x65, 0x44, 0x62, 0x46, 0x6c, 0x61, 0x67, 0x18, 0x0d, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x53, 0x61, 0x76, 0x65, 0x44, 0x62, 0x46, - 0x6c, 0x61, 0x67, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x72, 0x41, - 0x70, 0x70, 0x49, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x72, 0x41, 0x70, 0x70, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x73, 0x67, - 0x53, 0x65, 0x71, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x6d, 0x73, 0x67, 0x53, 0x65, - 0x71, 0x22, 0xbd, 0x01, 0x0a, 0x0f, 0x44, 0x42, 0x37, 0x37, 0x52, 0x69, 0x63, 0x68, 0x4d, 0x73, - 0x67, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, - 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, - 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x72, 0x69, 0x65, 0x66, 0x12, 0x10, 0x0a, 0x03, 0x75, - 0x72, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1e, 0x0a, - 0x0a, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x18, 0x0e, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x16, 0x0a, - 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x75, 0x73, 0x69, 0x63, 0x55, 0x72, - 0x6c, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x75, 0x73, 0x69, 0x63, 0x55, 0x72, - 0x6c, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x3b, 0x6f, 0x69, 0x64, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_oidb0xb77_proto_rawDescOnce sync.Once - file_oidb0xb77_proto_rawDescData = file_oidb0xb77_proto_rawDesc -) - -func file_oidb0xb77_proto_rawDescGZIP() []byte { - file_oidb0xb77_proto_rawDescOnce.Do(func() { - file_oidb0xb77_proto_rawDescData = protoimpl.X.CompressGZIP(file_oidb0xb77_proto_rawDescData) - }) - return file_oidb0xb77_proto_rawDescData -} - -var file_oidb0xb77_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_oidb0xb77_proto_goTypes = []interface{}{ - (*DB77ReqBody)(nil), // 0: DB77ReqBody - (*DB77ClientInfo)(nil), // 1: DB77ClientInfo - (*DB77ExtInfo)(nil), // 2: DB77ExtInfo - (*DB77RichMsgBody)(nil), // 3: DB77RichMsgBody -} -var file_oidb0xb77_proto_depIdxs = []int32{ - 1, // 0: DB77ReqBody.clientInfo:type_name -> DB77ClientInfo - 2, // 1: DB77ReqBody.extInfo:type_name -> DB77ExtInfo - 3, // 2: DB77ReqBody.richMsgBody:type_name -> DB77RichMsgBody - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_oidb0xb77_proto_init() } -func file_oidb0xb77_proto_init() { - if File_oidb0xb77_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_oidb0xb77_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DB77ReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xb77_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DB77ClientInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xb77_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DB77ExtInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xb77_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DB77RichMsgBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oidb0xb77_proto_rawDesc, - NumEnums: 0, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_oidb0xb77_proto_goTypes, - DependencyIndexes: file_oidb0xb77_proto_depIdxs, - MessageInfos: file_oidb0xb77_proto_msgTypes, - }.Build() - File_oidb0xb77_proto = out.File - file_oidb0xb77_proto_rawDesc = nil - file_oidb0xb77_proto_goTypes = nil - file_oidb0xb77_proto_depIdxs = nil -} diff --git a/client/pb/oidb/oidb0xb77.proto b/client/pb/oidb/oidb0xb77.proto deleted file mode 100644 index 2f5d952b..00000000 --- a/client/pb/oidb/oidb0xb77.proto +++ /dev/null @@ -1,44 +0,0 @@ -syntax = "proto3"; - -option go_package = "./;oidb"; - -message DB77ReqBody { - uint64 appId = 1; - uint32 appType = 2; - uint32 msgStyle = 3; - uint64 senderUin = 4; - DB77ClientInfo clientInfo = 5; - string textMsg = 6; - DB77ExtInfo extInfo = 7; - uint32 sendType = 10; - uint64 recvUin = 11; - DB77RichMsgBody richMsgBody = 12; -} - -message DB77ClientInfo { - uint32 platform = 1; - string sdkVersion = 2; - string androidPackageName = 3; - string androidSignature = 4; - string iosBundleId = 5; - string pcSign = 6; -} - -message DB77ExtInfo { - repeated uint32 customFeatureId = 11; - string apnsWording = 12; - uint32 groupSaveDbFlag = 13; - uint32 receiverAppId = 14; - uint64 msgSeq = 15; -} - -message DB77RichMsgBody { - string title = 10; - string summary = 11; - string brief = 12; - string url = 13; - string pictureUrl = 14; - string action = 15; - string musicUrl = 16; - //ImageInfo imageInfo = 17; -} \ No newline at end of file diff --git a/client/pb/oidb/oidb0xbcb.pb.go b/client/pb/oidb/oidb0xbcb.pb.go deleted file mode 100644 index e574918e..00000000 --- a/client/pb/oidb/oidb0xbcb.pb.go +++ /dev/null @@ -1,809 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.17.1 -// source: oidb0xbcb.proto - -package oidb - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type CheckUrlReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Url []string `protobuf:"bytes,1,rep,name=url" json:"url,omitempty"` - Refer *string `protobuf:"bytes,2,opt,name=refer" json:"refer,omitempty"` - Plateform *string `protobuf:"bytes,3,opt,name=plateform" json:"plateform,omitempty"` - QqPfTo *string `protobuf:"bytes,4,opt,name=qqPfTo" json:"qqPfTo,omitempty"` - Type *uint32 `protobuf:"varint,5,opt,name=type" json:"type,omitempty"` - From *uint32 `protobuf:"varint,6,opt,name=from" json:"from,omitempty"` - Chatid *uint64 `protobuf:"varint,7,opt,name=chatid" json:"chatid,omitempty"` - ServiceType *uint64 `protobuf:"varint,8,opt,name=serviceType" json:"serviceType,omitempty"` - SendUin *uint64 `protobuf:"varint,9,opt,name=sendUin" json:"sendUin,omitempty"` - ReqType *string `protobuf:"bytes,10,opt,name=reqType" json:"reqType,omitempty"` - OriginalUrl *string `protobuf:"bytes,11,opt,name=originalUrl" json:"originalUrl,omitempty"` - IsArk *bool `protobuf:"varint,12,opt,name=isArk" json:"isArk,omitempty"` - ArkName *string `protobuf:"bytes,13,opt,name=arkName" json:"arkName,omitempty"` - IsFinish *bool `protobuf:"varint,14,opt,name=isFinish" json:"isFinish,omitempty"` - SrcUrls []string `protobuf:"bytes,15,rep,name=srcUrls" json:"srcUrls,omitempty"` - SrcPlatform *uint32 `protobuf:"varint,16,opt,name=srcPlatform" json:"srcPlatform,omitempty"` - Qua *string `protobuf:"bytes,17,opt,name=qua" json:"qua,omitempty"` -} - -func (x *CheckUrlReq) Reset() { - *x = CheckUrlReq{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xbcb_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CheckUrlReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CheckUrlReq) ProtoMessage() {} - -func (x *CheckUrlReq) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xbcb_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CheckUrlReq.ProtoReflect.Descriptor instead. -func (*CheckUrlReq) Descriptor() ([]byte, []int) { - return file_oidb0xbcb_proto_rawDescGZIP(), []int{0} -} - -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 - } - return "" -} - -func (x *CheckUrlReq) GetPlateform() string { - if x != nil && x.Plateform != nil { - return *x.Plateform - } - return "" -} - -func (x *CheckUrlReq) GetQqPfTo() string { - if x != nil && x.QqPfTo != nil { - return *x.QqPfTo - } - return "" -} - -func (x *CheckUrlReq) GetType() uint32 { - if x != nil && x.Type != nil { - return *x.Type - } - return 0 -} - -func (x *CheckUrlReq) GetFrom() uint32 { - if x != nil && x.From != nil { - return *x.From - } - return 0 -} - -func (x *CheckUrlReq) GetChatid() uint64 { - if x != nil && x.Chatid != nil { - return *x.Chatid - } - return 0 -} - -func (x *CheckUrlReq) GetServiceType() uint64 { - if x != nil && x.ServiceType != nil { - return *x.ServiceType - } - return 0 -} - -func (x *CheckUrlReq) GetSendUin() uint64 { - if x != nil && x.SendUin != nil { - return *x.SendUin - } - return 0 -} - -func (x *CheckUrlReq) GetReqType() string { - if x != nil && x.ReqType != nil { - return *x.ReqType - } - return "" -} - -func (x *CheckUrlReq) GetOriginalUrl() string { - if x != nil && x.OriginalUrl != nil { - return *x.OriginalUrl - } - return "" -} - -func (x *CheckUrlReq) GetIsArk() bool { - if x != nil && x.IsArk != nil { - return *x.IsArk - } - return false -} - -func (x *CheckUrlReq) GetArkName() string { - if x != nil && x.ArkName != nil { - return *x.ArkName - } - return "" -} - -func (x *CheckUrlReq) GetIsFinish() bool { - if x != nil && x.IsFinish != nil { - return *x.IsFinish - } - 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 - } - return 0 -} - -func (x *CheckUrlReq) GetQua() string { - if x != nil && x.Qua != nil { - return *x.Qua - } - return "" -} - -type CheckUrlReqItem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` - Refer *string `protobuf:"bytes,2,opt,name=refer" json:"refer,omitempty"` - Plateform *string `protobuf:"bytes,3,opt,name=plateform" json:"plateform,omitempty"` - QqPfTo *string `protobuf:"bytes,4,opt,name=qqPfTo" json:"qqPfTo,omitempty"` - Type *uint32 `protobuf:"varint,5,opt,name=type" json:"type,omitempty"` - From *uint32 `protobuf:"varint,6,opt,name=from" json:"from,omitempty"` - Chatid *uint64 `protobuf:"varint,7,opt,name=chatid" json:"chatid,omitempty"` - ServiceType *uint64 `protobuf:"varint,8,opt,name=serviceType" json:"serviceType,omitempty"` - SendUin *uint64 `protobuf:"varint,9,opt,name=sendUin" json:"sendUin,omitempty"` - ReqType *string `protobuf:"bytes,10,opt,name=reqType" json:"reqType,omitempty"` -} - -func (x *CheckUrlReqItem) Reset() { - *x = CheckUrlReqItem{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xbcb_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CheckUrlReqItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CheckUrlReqItem) ProtoMessage() {} - -func (x *CheckUrlReqItem) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xbcb_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CheckUrlReqItem.ProtoReflect.Descriptor instead. -func (*CheckUrlReqItem) Descriptor() ([]byte, []int) { - return file_oidb0xbcb_proto_rawDescGZIP(), []int{1} -} - -func (x *CheckUrlReqItem) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url - } - return "" -} - -func (x *CheckUrlReqItem) GetRefer() string { - if x != nil && x.Refer != nil { - return *x.Refer - } - return "" -} - -func (x *CheckUrlReqItem) GetPlateform() string { - if x != nil && x.Plateform != nil { - return *x.Plateform - } - return "" -} - -func (x *CheckUrlReqItem) GetQqPfTo() string { - if x != nil && x.QqPfTo != nil { - return *x.QqPfTo - } - return "" -} - -func (x *CheckUrlReqItem) GetType() uint32 { - if x != nil && x.Type != nil { - return *x.Type - } - return 0 -} - -func (x *CheckUrlReqItem) GetFrom() uint32 { - if x != nil && x.From != nil { - return *x.From - } - return 0 -} - -func (x *CheckUrlReqItem) GetChatid() uint64 { - if x != nil && x.Chatid != nil { - return *x.Chatid - } - return 0 -} - -func (x *CheckUrlReqItem) GetServiceType() uint64 { - if x != nil && x.ServiceType != nil { - return *x.ServiceType - } - return 0 -} - -func (x *CheckUrlReqItem) GetSendUin() uint64 { - if x != nil && x.SendUin != nil { - return *x.SendUin - } - return 0 -} - -func (x *CheckUrlReqItem) GetReqType() string { - if x != nil && x.ReqType != nil { - return *x.ReqType - } - return "" -} - -type CheckUrlRsp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Results []*UrlCheckResult `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"` - NextReqDuration *uint32 `protobuf:"varint,2,opt,name=nextReqDuration" json:"nextReqDuration,omitempty"` -} - -func (x *CheckUrlRsp) Reset() { - *x = CheckUrlRsp{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xbcb_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CheckUrlRsp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CheckUrlRsp) ProtoMessage() {} - -func (x *CheckUrlRsp) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xbcb_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CheckUrlRsp.ProtoReflect.Descriptor instead. -func (*CheckUrlRsp) Descriptor() ([]byte, []int) { - return file_oidb0xbcb_proto_rawDescGZIP(), []int{2} -} - -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 - } - return 0 -} - -type DBCBReqBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NotUseCache *int32 `protobuf:"varint,9,opt,name=notUseCache" json:"notUseCache,omitempty"` - CheckUrlReq *CheckUrlReq `protobuf:"bytes,10,opt,name=checkUrlReq" json:"checkUrlReq,omitempty"` -} - -func (x *DBCBReqBody) Reset() { - *x = DBCBReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xbcb_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DBCBReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DBCBReqBody) ProtoMessage() {} - -func (x *DBCBReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xbcb_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DBCBReqBody.ProtoReflect.Descriptor instead. -func (*DBCBReqBody) Descriptor() ([]byte, []int) { - return file_oidb0xbcb_proto_rawDescGZIP(), []int{3} -} - -func (x *DBCBReqBody) GetNotUseCache() int32 { - if x != nil && x.NotUseCache != nil { - return *x.NotUseCache - } - return 0 -} - -func (x *DBCBReqBody) GetCheckUrlReq() *CheckUrlReq { - if x != nil { - return x.CheckUrlReq - } - return nil -} - -type DBCBRspBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Wording *string `protobuf:"bytes,1,opt,name=wording" json:"wording,omitempty"` - CheckUrlRsp *CheckUrlRsp `protobuf:"bytes,10,opt,name=checkUrlRsp" json:"checkUrlRsp,omitempty"` -} - -func (x *DBCBRspBody) Reset() { - *x = DBCBRspBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xbcb_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DBCBRspBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DBCBRspBody) ProtoMessage() {} - -func (x *DBCBRspBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xbcb_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DBCBRspBody.ProtoReflect.Descriptor instead. -func (*DBCBRspBody) Descriptor() ([]byte, []int) { - return file_oidb0xbcb_proto_rawDescGZIP(), []int{4} -} - -func (x *DBCBRspBody) GetWording() string { - if x != nil && x.Wording != nil { - return *x.Wording - } - return "" -} - -func (x *DBCBRspBody) GetCheckUrlRsp() *CheckUrlRsp { - if x != nil { - return x.CheckUrlRsp - } - return nil -} - -type UrlCheckResult struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Url *string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` - Result *uint32 `protobuf:"varint,2,opt,name=result" json:"result,omitempty"` - JumpResult *uint32 `protobuf:"varint,3,opt,name=jumpResult" json:"jumpResult,omitempty"` - JumpUrl *string `protobuf:"bytes,4,opt,name=jumpUrl" json:"jumpUrl,omitempty"` - Level *uint32 `protobuf:"varint,5,opt,name=level" json:"level,omitempty"` - SubLevel *uint32 `protobuf:"varint,6,opt,name=subLevel" json:"subLevel,omitempty"` - Umrtype *uint32 `protobuf:"varint,7,opt,name=umrtype" json:"umrtype,omitempty"` - RetFrom *uint32 `protobuf:"varint,8,opt,name=retFrom" json:"retFrom,omitempty"` - OperationBit *uint64 `protobuf:"varint,9,opt,name=operationBit" json:"operationBit,omitempty"` -} - -func (x *UrlCheckResult) Reset() { - *x = UrlCheckResult{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xbcb_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UrlCheckResult) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UrlCheckResult) ProtoMessage() {} - -func (x *UrlCheckResult) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xbcb_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UrlCheckResult.ProtoReflect.Descriptor instead. -func (*UrlCheckResult) Descriptor() ([]byte, []int) { - return file_oidb0xbcb_proto_rawDescGZIP(), []int{5} -} - -func (x *UrlCheckResult) GetUrl() string { - if x != nil && x.Url != nil { - return *x.Url - } - return "" -} - -func (x *UrlCheckResult) GetResult() uint32 { - if x != nil && x.Result != nil { - return *x.Result - } - return 0 -} - -func (x *UrlCheckResult) GetJumpResult() uint32 { - if x != nil && x.JumpResult != nil { - return *x.JumpResult - } - return 0 -} - -func (x *UrlCheckResult) GetJumpUrl() string { - if x != nil && x.JumpUrl != nil { - return *x.JumpUrl - } - return "" -} - -func (x *UrlCheckResult) GetLevel() uint32 { - if x != nil && x.Level != nil { - return *x.Level - } - return 0 -} - -func (x *UrlCheckResult) GetSubLevel() uint32 { - if x != nil && x.SubLevel != nil { - return *x.SubLevel - } - return 0 -} - -func (x *UrlCheckResult) GetUmrtype() uint32 { - if x != nil && x.Umrtype != nil { - return *x.Umrtype - } - return 0 -} - -func (x *UrlCheckResult) GetRetFrom() uint32 { - if x != nil && x.RetFrom != nil { - return *x.RetFrom - } - return 0 -} - -func (x *UrlCheckResult) GetOperationBit() uint64 { - if x != nil && x.OperationBit != nil { - return *x.OperationBit - } - return 0 -} - -var File_oidb0xbcb_proto protoreflect.FileDescriptor - -var file_oidb0xbcb_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x69, 0x64, 0x62, 0x30, 0x78, 0x62, 0x63, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xbd, 0x03, 0x0a, 0x0b, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x72, 0x6c, 0x52, 0x65, - 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, - 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x66, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x66, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x71, 0x71, 0x50, 0x66, 0x54, - 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x71, 0x71, 0x50, 0x66, 0x54, 0x6f, 0x12, - 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x74, 0x69, - 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x68, 0x61, 0x74, 0x69, 0x64, 0x12, - 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x69, 0x6e, 0x18, 0x09, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x07, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, - 0x65, 0x71, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, - 0x71, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, - 0x6c, 0x55, 0x72, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x72, 0x69, 0x67, - 0x69, 0x6e, 0x61, 0x6c, 0x55, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73, 0x41, 0x72, 0x6b, - 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x41, 0x72, 0x6b, 0x12, 0x18, 0x0a, - 0x07, 0x61, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x61, 0x72, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x46, 0x69, 0x6e, - 0x69, 0x73, 0x68, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x46, 0x69, 0x6e, - 0x69, 0x73, 0x68, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x72, 0x63, 0x55, 0x72, 0x6c, 0x73, 0x18, 0x0f, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x72, 0x63, 0x55, 0x72, 0x6c, 0x73, 0x12, 0x20, 0x0a, - 0x0b, 0x73, 0x72, 0x63, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x10, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0b, 0x73, 0x72, 0x63, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, - 0x10, 0x0a, 0x03, 0x71, 0x75, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x71, 0x75, - 0x61, 0x22, 0x85, 0x02, 0x0a, 0x0f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x72, 0x6c, 0x52, 0x65, - 0x71, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x65, 0x66, 0x65, 0x72, 0x12, 0x1c, 0x0a, - 0x09, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x71, - 0x71, 0x50, 0x66, 0x54, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x71, 0x71, 0x50, - 0x66, 0x54, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x63, - 0x68, 0x61, 0x74, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x68, 0x61, - 0x74, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, - 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x69, 0x6e, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x69, 0x6e, 0x12, - 0x18, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x72, 0x65, 0x71, 0x54, 0x79, 0x70, 0x65, 0x22, 0x62, 0x0a, 0x0b, 0x43, 0x68, 0x65, - 0x63, 0x6b, 0x55, 0x72, 0x6c, 0x52, 0x73, 0x70, 0x12, 0x29, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x55, 0x72, 0x6c, 0x43, - 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x52, 0x65, 0x71, 0x44, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x6e, 0x65, - 0x78, 0x74, 0x52, 0x65, 0x71, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x5f, 0x0a, - 0x0b, 0x44, 0x42, 0x43, 0x42, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x20, 0x0a, 0x0b, - 0x6e, 0x6f, 0x74, 0x55, 0x73, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0b, 0x6e, 0x6f, 0x74, 0x55, 0x73, 0x65, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x2e, - 0x0a, 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x71, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x72, 0x6c, 0x52, 0x65, - 0x71, 0x52, 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x71, 0x22, 0x57, - 0x0a, 0x0b, 0x44, 0x42, 0x43, 0x42, 0x52, 0x73, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, 0x0a, - 0x07, 0x77, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x77, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x2e, 0x0a, 0x0b, 0x63, 0x68, 0x65, 0x63, 0x6b, - 0x55, 0x72, 0x6c, 0x52, 0x73, 0x70, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x43, - 0x68, 0x65, 0x63, 0x6b, 0x55, 0x72, 0x6c, 0x52, 0x73, 0x70, 0x52, 0x0b, 0x63, 0x68, 0x65, 0x63, - 0x6b, 0x55, 0x72, 0x6c, 0x52, 0x73, 0x70, 0x22, 0xfe, 0x01, 0x0a, 0x0e, 0x55, 0x72, 0x6c, 0x43, - 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, - 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x72, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6a, 0x75, 0x6d, 0x70, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6a, 0x75, 0x6d, 0x70, 0x52, 0x65, - 0x73, 0x75, 0x6c, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6a, 0x75, 0x6d, 0x70, 0x55, 0x72, 0x6c, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x75, 0x6d, 0x70, 0x55, 0x72, 0x6c, 0x12, 0x14, - 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, - 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x73, 0x75, 0x62, 0x4c, 0x65, 0x76, 0x65, 0x6c, - 0x12, 0x18, 0x0a, 0x07, 0x75, 0x6d, 0x72, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x07, 0x75, 0x6d, 0x72, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, - 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x65, 0x74, - 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x42, 0x69, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x6f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x69, 0x74, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x3b, 0x6f, - 0x69, 0x64, 0x62, -} - -var ( - file_oidb0xbcb_proto_rawDescOnce sync.Once - file_oidb0xbcb_proto_rawDescData = file_oidb0xbcb_proto_rawDesc -) - -func file_oidb0xbcb_proto_rawDescGZIP() []byte { - file_oidb0xbcb_proto_rawDescOnce.Do(func() { - file_oidb0xbcb_proto_rawDescData = protoimpl.X.CompressGZIP(file_oidb0xbcb_proto_rawDescData) - }) - return file_oidb0xbcb_proto_rawDescData -} - -var file_oidb0xbcb_proto_msgTypes = make([]protoimpl.MessageInfo, 6) -var file_oidb0xbcb_proto_goTypes = []interface{}{ - (*CheckUrlReq)(nil), // 0: CheckUrlReq - (*CheckUrlReqItem)(nil), // 1: CheckUrlReqItem - (*CheckUrlRsp)(nil), // 2: CheckUrlRsp - (*DBCBReqBody)(nil), // 3: DBCBReqBody - (*DBCBRspBody)(nil), // 4: DBCBRspBody - (*UrlCheckResult)(nil), // 5: UrlCheckResult -} -var file_oidb0xbcb_proto_depIdxs = []int32{ - 5, // 0: CheckUrlRsp.results:type_name -> UrlCheckResult - 0, // 1: DBCBReqBody.checkUrlReq:type_name -> CheckUrlReq - 2, // 2: DBCBRspBody.checkUrlRsp:type_name -> CheckUrlRsp - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_oidb0xbcb_proto_init() } -func file_oidb0xbcb_proto_init() { - if File_oidb0xbcb_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_oidb0xbcb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckUrlReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xbcb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckUrlReqItem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xbcb_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CheckUrlRsp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xbcb_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBCBReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xbcb_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DBCBRspBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xbcb_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UrlCheckResult); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oidb0xbcb_proto_rawDesc, - NumEnums: 0, - NumMessages: 6, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_oidb0xbcb_proto_goTypes, - DependencyIndexes: file_oidb0xbcb_proto_depIdxs, - MessageInfos: file_oidb0xbcb_proto_msgTypes, - }.Build() - File_oidb0xbcb_proto = out.File - file_oidb0xbcb_proto_rawDesc = nil - file_oidb0xbcb_proto_goTypes = nil - file_oidb0xbcb_proto_depIdxs = nil -} diff --git a/client/pb/oidb/oidb0xbcb.proto b/client/pb/oidb/oidb0xbcb.proto deleted file mode 100644 index 6ad38f18..00000000 --- a/client/pb/oidb/oidb0xbcb.proto +++ /dev/null @@ -1,63 +0,0 @@ -syntax = "proto2"; - -option go_package = "./;oidb"; - -message CheckUrlReq { - repeated string url = 1; - optional string refer = 2; - optional string plateform = 3; - optional string qqPfTo = 4; - optional uint32 type = 5; - optional uint32 from = 6; - optional uint64 chatid = 7; - optional uint64 serviceType = 8; - optional uint64 sendUin = 9; - optional string reqType = 10; - optional string originalUrl = 11; - optional bool isArk = 12; - optional string arkName = 13; - optional bool isFinish = 14; - repeated string srcUrls = 15; - optional uint32 srcPlatform = 16; - optional string qua = 17; -} - -message CheckUrlReqItem { - optional string url = 1; - optional string refer = 2; - optional string plateform = 3; - optional string qqPfTo = 4; - optional uint32 type = 5; - optional uint32 from = 6; - optional uint64 chatid = 7; - optional uint64 serviceType = 8; - optional uint64 sendUin = 9; - optional string reqType = 10; -} - -message CheckUrlRsp { - repeated UrlCheckResult results = 1; - optional uint32 nextReqDuration = 2; -} - -message DBCBReqBody { - optional int32 notUseCache = 9; - optional CheckUrlReq checkUrlReq = 10; -} - -message DBCBRspBody { - optional string wording = 1; - optional CheckUrlRsp checkUrlRsp = 10; -} - -message UrlCheckResult { - optional string url = 1; - optional uint32 result = 2; - optional uint32 jumpResult = 3; - optional string jumpUrl = 4; - optional uint32 level = 5; - optional uint32 subLevel = 6; - optional uint32 umrtype = 7; - optional uint32 retFrom = 8; - optional uint64 operationBit = 9; -} \ No newline at end of file diff --git a/client/pb/oidb/oidb0xd79.pb.go b/client/pb/oidb/oidb0xd79.pb.go deleted file mode 100644 index 29b38580..00000000 --- a/client/pb/oidb/oidb0xd79.pb.go +++ /dev/null @@ -1,365 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.17.1 -// source: oidb0xD79.proto - -package oidb - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type D79ReqBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` - Uin uint64 `protobuf:"varint,2,opt,name=uin,proto3" json:"uin,omitempty"` - CompressFlag uint32 `protobuf:"varint,3,opt,name=compress_flag,json=compressFlag,proto3" json:"compress_flag,omitempty"` - Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` - SenderUin uint64 `protobuf:"varint,5,opt,name=sender_uin,json=senderUin,proto3" json:"sender_uin,omitempty"` - Qua []byte `protobuf:"bytes,6,opt,name=qua,proto3" json:"qua,omitempty"` - WordExt []byte `protobuf:"bytes,7,opt,name=word_ext,json=wordExt,proto3" json:"word_ext,omitempty"` -} - -func (x *D79ReqBody) Reset() { - *x = D79ReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xD79_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D79ReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D79ReqBody) ProtoMessage() {} - -func (x *D79ReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xD79_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D79ReqBody.ProtoReflect.Descriptor instead. -func (*D79ReqBody) Descriptor() ([]byte, []int) { - return file_oidb0xD79_proto_rawDescGZIP(), []int{0} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Ret uint32 `protobuf:"varint,1,opt,name=ret,proto3" json:"ret,omitempty"` - Seq uint64 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` - Uin uint64 `protobuf:"varint,3,opt,name=uin,proto3" json:"uin,omitempty"` - CompressFlag uint32 `protobuf:"varint,4,opt,name=compress_flag,json=compressFlag,proto3" json:"compress_flag,omitempty"` - Content *D79Content `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` -} - -func (x *D79RspBody) Reset() { - *x = D79RspBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xD79_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D79RspBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D79RspBody) ProtoMessage() {} - -func (x *D79RspBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xD79_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D79RspBody.ProtoReflect.Descriptor instead. -func (*D79RspBody) Descriptor() ([]byte, []int) { - return file_oidb0xD79_proto_rawDescGZIP(), []int{1} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SliceContent [][]byte `protobuf:"bytes,1,rep,name=slice_content,json=sliceContent,proto3" json:"slice_content,omitempty"` -} - -func (x *D79Content) Reset() { - *x = D79Content{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xD79_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *D79Content) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*D79Content) ProtoMessage() {} - -func (x *D79Content) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xD79_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use D79Content.ProtoReflect.Descriptor instead. -func (*D79Content) Descriptor() ([]byte, []int) { - return file_oidb0xD79_proto_rawDescGZIP(), []int{2} -} - -func (x *D79Content) GetSliceContent() [][]byte { - if x != nil { - return x.SliceContent - } - return nil -} - -var File_oidb0xD79_proto protoreflect.FileDescriptor - -var file_oidb0xD79_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x69, 0x64, 0x62, 0x30, 0x78, 0x44, 0x37, 0x39, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xbb, 0x01, 0x0a, 0x0a, 0x44, 0x37, 0x39, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, - 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x03, 0x75, 0x69, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, - 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x63, 0x6f, 0x6d, - 0x70, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x5f, 0x75, 0x69, - 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x55, - 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x71, 0x75, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x03, 0x71, 0x75, 0x61, 0x12, 0x19, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x64, 0x5f, 0x65, 0x78, 0x74, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x64, 0x45, 0x78, 0x74, 0x22, - 0x8e, 0x01, 0x0a, 0x0a, 0x44, 0x37, 0x39, 0x52, 0x73, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x72, 0x65, 0x74, - 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, - 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x03, 0x75, 0x69, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, - 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x63, 0x6f, 0x6d, - 0x70, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6c, 0x61, 0x67, 0x12, 0x25, 0x0a, 0x07, 0x63, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x37, 0x39, - 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x22, 0x31, 0x0a, 0x0a, 0x44, 0x37, 0x39, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x23, - 0x0a, 0x0d, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x3b, 0x6f, 0x69, 0x64, 0x62, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_oidb0xD79_proto_rawDescOnce sync.Once - file_oidb0xD79_proto_rawDescData = file_oidb0xD79_proto_rawDesc -) - -func file_oidb0xD79_proto_rawDescGZIP() []byte { - file_oidb0xD79_proto_rawDescOnce.Do(func() { - file_oidb0xD79_proto_rawDescData = protoimpl.X.CompressGZIP(file_oidb0xD79_proto_rawDescData) - }) - return file_oidb0xD79_proto_rawDescData -} - -var file_oidb0xD79_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_oidb0xD79_proto_goTypes = []interface{}{ - (*D79ReqBody)(nil), // 0: D79ReqBody - (*D79RspBody)(nil), // 1: D79RspBody - (*D79Content)(nil), // 2: D79Content -} -var file_oidb0xD79_proto_depIdxs = []int32{ - 2, // 0: D79RspBody.content:type_name -> D79Content - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_oidb0xD79_proto_init() } -func file_oidb0xD79_proto_init() { - if File_oidb0xD79_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_oidb0xD79_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D79ReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xD79_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D79RspBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xD79_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*D79Content); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oidb0xD79_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_oidb0xD79_proto_goTypes, - DependencyIndexes: file_oidb0xD79_proto_depIdxs, - MessageInfos: file_oidb0xD79_proto_msgTypes, - }.Build() - File_oidb0xD79_proto = out.File - file_oidb0xD79_proto_rawDesc = nil - file_oidb0xD79_proto_goTypes = nil - file_oidb0xD79_proto_depIdxs = nil -} diff --git a/client/pb/oidb/oidb0xdad.pb.go b/client/pb/oidb/oidb0xdad.pb.go deleted file mode 100644 index 2086f03e..00000000 --- a/client/pb/oidb/oidb0xdad.pb.go +++ /dev/null @@ -1,290 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.17.1 -// source: oidb0xdad.proto - -package oidb - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type DADReqBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Client int64 `protobuf:"varint,1,opt,name=client,proto3" json:"client,omitempty"` - ProductId uint64 `protobuf:"varint,2,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` - Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` - ToUin uint64 `protobuf:"varint,4,opt,name=to_uin,json=toUin,proto3" json:"to_uin,omitempty"` - Gc uint64 `protobuf:"varint,5,opt,name=gc,proto3" json:"gc,omitempty"` - Ip string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"` - Version string `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"` - Sig *DADLoginSig `protobuf:"bytes,8,opt,name=sig,proto3" json:"sig,omitempty"` -} - -func (x *DADReqBody) Reset() { - *x = DADReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xdad_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DADReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DADReqBody) ProtoMessage() {} - -func (x *DADReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xdad_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DADReqBody.ProtoReflect.Descriptor instead. -func (*DADReqBody) Descriptor() ([]byte, []int) { - return file_oidb0xdad_proto_rawDescGZIP(), []int{0} -} - -func (x *DADReqBody) GetClient() int64 { - if x != nil { - return x.Client - } - return 0 -} - -func (x *DADReqBody) GetProductId() uint64 { - if x != nil { - return x.ProductId - } - return 0 -} - -func (x *DADReqBody) GetAmount() int64 { - if x != nil { - return x.Amount - } - return 0 -} - -func (x *DADReqBody) GetToUin() uint64 { - if x != nil { - return x.ToUin - } - return 0 -} - -func (x *DADReqBody) GetGc() uint64 { - if x != nil { - return x.Gc - } - return 0 -} - -func (x *DADReqBody) GetIp() string { - if x != nil { - return x.Ip - } - return "" -} - -func (x *DADReqBody) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *DADReqBody) GetSig() *DADLoginSig { - if x != nil { - return x.Sig - } - return nil -} - -type DADLoginSig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type uint32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` - Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"` - Appid uint32 `protobuf:"varint,3,opt,name=appid,proto3" json:"appid,omitempty"` -} - -func (x *DADLoginSig) Reset() { - *x = DADLoginSig{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xdad_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DADLoginSig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DADLoginSig) ProtoMessage() {} - -func (x *DADLoginSig) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xdad_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DADLoginSig.ProtoReflect.Descriptor instead. -func (*DADLoginSig) Descriptor() ([]byte, []int) { - return file_oidb0xdad_proto_rawDescGZIP(), []int{1} -} - -func (x *DADLoginSig) GetType() uint32 { - if x != nil { - return x.Type - } - return 0 -} - -func (x *DADLoginSig) GetSig() []byte { - if x != nil { - return x.Sig - } - return nil -} - -func (x *DADLoginSig) GetAppid() uint32 { - if x != nil { - return x.Appid - } - return 0 -} - -var File_oidb0xdad_proto protoreflect.FileDescriptor - -var file_oidb0xdad_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x69, 0x64, 0x62, 0x30, 0x78, 0x64, 0x61, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xcc, 0x01, 0x0a, 0x0a, 0x44, 0x41, 0x44, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, - 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x64, - 0x75, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x72, - 0x6f, 0x64, 0x75, 0x63, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x15, 0x0a, 0x06, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x05, 0x74, 0x6f, 0x55, 0x69, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x67, 0x63, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x02, 0x67, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x1e, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, - 0x44, 0x41, 0x44, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x53, 0x69, 0x67, 0x52, 0x03, 0x73, 0x69, 0x67, - 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x41, 0x44, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x53, 0x69, 0x67, 0x12, - 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x03, 0x73, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x42, 0x09, 0x5a, 0x07, 0x2e, - 0x2f, 0x3b, 0x6f, 0x69, 0x64, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_oidb0xdad_proto_rawDescOnce sync.Once - file_oidb0xdad_proto_rawDescData = file_oidb0xdad_proto_rawDesc -) - -func file_oidb0xdad_proto_rawDescGZIP() []byte { - file_oidb0xdad_proto_rawDescOnce.Do(func() { - file_oidb0xdad_proto_rawDescData = protoimpl.X.CompressGZIP(file_oidb0xdad_proto_rawDescData) - }) - return file_oidb0xdad_proto_rawDescData -} - -var file_oidb0xdad_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_oidb0xdad_proto_goTypes = []interface{}{ - (*DADReqBody)(nil), // 0: DADReqBody - (*DADLoginSig)(nil), // 1: DADLoginSig -} -var file_oidb0xdad_proto_depIdxs = []int32{ - 1, // 0: DADReqBody.sig:type_name -> DADLoginSig - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_oidb0xdad_proto_init() } -func file_oidb0xdad_proto_init() { - if File_oidb0xdad_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_oidb0xdad_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DADReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xdad_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DADLoginSig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oidb0xdad_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_oidb0xdad_proto_goTypes, - DependencyIndexes: file_oidb0xdad_proto_depIdxs, - MessageInfos: file_oidb0xdad_proto_msgTypes, - }.Build() - File_oidb0xdad_proto = out.File - file_oidb0xdad_proto_rawDesc = nil - file_oidb0xdad_proto_goTypes = nil - file_oidb0xdad_proto_depIdxs = nil -} diff --git a/client/pb/oidb/oidb0xdad.proto b/client/pb/oidb/oidb0xdad.proto deleted file mode 100644 index 31ecc56e..00000000 --- a/client/pb/oidb/oidb0xdad.proto +++ /dev/null @@ -1,20 +0,0 @@ -syntax = "proto3"; - -option go_package = "./;oidb"; - -message DADReqBody { - int64 client = 1; - uint64 product_id = 2; - int64 amount = 3; - uint64 to_uin = 4; - uint64 gc = 5; - string ip = 6; - string version = 7; - DADLoginSig sig = 8; -} - -message DADLoginSig { - uint32 type = 1; - bytes sig = 2; - uint32 appid = 3; -} \ No newline at end of file diff --git a/client/pb/oidb/oidb0xe07.pb.go b/client/pb/oidb/oidb0xe07.pb.go deleted file mode 100644 index 7920ab49..00000000 --- a/client/pb/oidb/oidb0xe07.pb.go +++ /dev/null @@ -1,857 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.17.1 -// source: oidb0xe07.proto - -package oidb - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type DE07ReqBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` - Client int32 `protobuf:"varint,2,opt,name=client,proto3" json:"client,omitempty"` - Entrance int32 `protobuf:"varint,3,opt,name=entrance,proto3" json:"entrance,omitempty"` - OcrReqBody *OCRReqBody `protobuf:"bytes,10,opt,name=ocrReqBody,proto3" json:"ocrReqBody,omitempty"` -} - -func (x *DE07ReqBody) Reset() { - *x = DE07ReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xe07_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DE07ReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DE07ReqBody) ProtoMessage() {} - -func (x *DE07ReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xe07_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DE07ReqBody.ProtoReflect.Descriptor instead. -func (*DE07ReqBody) Descriptor() ([]byte, []int) { - return file_oidb0xe07_proto_rawDescGZIP(), []int{0} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ImageUrl string `protobuf:"bytes,1,opt,name=imageUrl,proto3" json:"imageUrl,omitempty"` - LanguageType string `protobuf:"bytes,2,opt,name=languageType,proto3" json:"languageType,omitempty"` - Scene string `protobuf:"bytes,3,opt,name=scene,proto3" json:"scene,omitempty"` - OriginMd5 string `protobuf:"bytes,10,opt,name=originMd5,proto3" json:"originMd5,omitempty"` - AfterCompressMd5 string `protobuf:"bytes,11,opt,name=afterCompressMd5,proto3" json:"afterCompressMd5,omitempty"` - AfterCompressFileSize int32 `protobuf:"varint,12,opt,name=afterCompressFileSize,proto3" json:"afterCompressFileSize,omitempty"` - AfterCompressWeight int32 `protobuf:"varint,13,opt,name=afterCompressWeight,proto3" json:"afterCompressWeight,omitempty"` - AfterCompressHeight int32 `protobuf:"varint,14,opt,name=afterCompressHeight,proto3" json:"afterCompressHeight,omitempty"` - IsCut bool `protobuf:"varint,15,opt,name=isCut,proto3" json:"isCut,omitempty"` -} - -func (x *OCRReqBody) Reset() { - *x = OCRReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xe07_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OCRReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OCRReqBody) ProtoMessage() {} - -func (x *OCRReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xe07_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OCRReqBody.ProtoReflect.Descriptor instead. -func (*OCRReqBody) Descriptor() ([]byte, []int) { - return file_oidb0xe07_proto_rawDescGZIP(), []int{1} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RetCode int32 `protobuf:"varint,1,opt,name=retCode,proto3" json:"retCode,omitempty"` - ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` - Wording string `protobuf:"bytes,3,opt,name=wording,proto3" json:"wording,omitempty"` - OcrRspBody *OCRRspBody `protobuf:"bytes,10,opt,name=ocrRspBody,proto3" json:"ocrRspBody,omitempty"` -} - -func (x *DE07RspBody) Reset() { - *x = DE07RspBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xe07_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DE07RspBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DE07RspBody) ProtoMessage() {} - -func (x *DE07RspBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xe07_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DE07RspBody.ProtoReflect.Descriptor instead. -func (*DE07RspBody) Descriptor() ([]byte, []int) { - return file_oidb0xe07_proto_rawDescGZIP(), []int{2} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DetectedText string `protobuf:"bytes,1,opt,name=detectedText,proto3" json:"detectedText,omitempty"` - Confidence int32 `protobuf:"varint,2,opt,name=confidence,proto3" json:"confidence,omitempty"` - Polygon *Polygon `protobuf:"bytes,3,opt,name=polygon,proto3" json:"polygon,omitempty"` - AdvancedInfo string `protobuf:"bytes,4,opt,name=advancedInfo,proto3" json:"advancedInfo,omitempty"` -} - -func (x *TextDetection) Reset() { - *x = TextDetection{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xe07_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TextDetection) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TextDetection) ProtoMessage() {} - -func (x *TextDetection) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xe07_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TextDetection.ProtoReflect.Descriptor instead. -func (*TextDetection) Descriptor() ([]byte, []int) { - return file_oidb0xe07_proto_rawDescGZIP(), []int{3} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Coordinates []*Coordinate `protobuf:"bytes,1,rep,name=coordinates,proto3" json:"coordinates,omitempty"` -} - -func (x *Polygon) Reset() { - *x = Polygon{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xe07_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Polygon) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Polygon) ProtoMessage() {} - -func (x *Polygon) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xe07_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Polygon.ProtoReflect.Descriptor instead. -func (*Polygon) Descriptor() ([]byte, []int) { - return file_oidb0xe07_proto_rawDescGZIP(), []int{4} -} - -func (x *Polygon) GetCoordinates() []*Coordinate { - if x != nil { - return x.Coordinates - } - return nil -} - -type Coordinate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - X int32 `protobuf:"varint,1,opt,name=X,proto3" json:"X,omitempty"` - Y int32 `protobuf:"varint,2,opt,name=Y,proto3" json:"Y,omitempty"` -} - -func (x *Coordinate) Reset() { - *x = Coordinate{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xe07_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Coordinate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Coordinate) ProtoMessage() {} - -func (x *Coordinate) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xe07_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Coordinate.ProtoReflect.Descriptor instead. -func (*Coordinate) Descriptor() ([]byte, []int) { - return file_oidb0xe07_proto_rawDescGZIP(), []int{5} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"` - LanguageDesc string `protobuf:"bytes,2,opt,name=languageDesc,proto3" json:"languageDesc,omitempty"` -} - -func (x *Language) Reset() { - *x = Language{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xe07_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Language) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Language) ProtoMessage() {} - -func (x *Language) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xe07_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Language.ProtoReflect.Descriptor instead. -func (*Language) Descriptor() ([]byte, []int) { - return file_oidb0xe07_proto_rawDescGZIP(), []int{6} -} - -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 { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TextDetections []*TextDetection `protobuf:"bytes,1,rep,name=textDetections,proto3" json:"textDetections,omitempty"` - Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"` - RequestId string `protobuf:"bytes,3,opt,name=requestId,proto3" json:"requestId,omitempty"` - OcrLanguageList []string `protobuf:"bytes,101,rep,name=ocrLanguageList,proto3" json:"ocrLanguageList,omitempty"` - DstTranslateLanguageList []string `protobuf:"bytes,102,rep,name=dstTranslateLanguageList,proto3" json:"dstTranslateLanguageList,omitempty"` - LanguageList []*Language `protobuf:"bytes,103,rep,name=languageList,proto3" json:"languageList,omitempty"` - AfterCompressWeight int32 `protobuf:"varint,111,opt,name=afterCompressWeight,proto3" json:"afterCompressWeight,omitempty"` - AfterCompressHeight int32 `protobuf:"varint,112,opt,name=afterCompressHeight,proto3" json:"afterCompressHeight,omitempty"` -} - -func (x *OCRRspBody) Reset() { - *x = OCRRspBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xe07_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OCRRspBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OCRRspBody) ProtoMessage() {} - -func (x *OCRRspBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xe07_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use OCRRspBody.ProtoReflect.Descriptor instead. -func (*OCRRspBody) Descriptor() ([]byte, []int) { - return file_oidb0xe07_proto_rawDescGZIP(), []int{7} -} - -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 -} - -var File_oidb0xe07_proto protoreflect.FileDescriptor - -var file_oidb0xe07_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x69, 0x64, 0x62, 0x30, 0x78, 0x65, 0x30, 0x37, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x88, 0x01, 0x0a, 0x0b, 0x44, 0x45, 0x30, 0x37, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, - 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x63, - 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6e, 0x63, 0x65, 0x12, - 0x2b, 0x0a, 0x0a, 0x6f, 0x63, 0x72, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x4f, 0x43, 0x52, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, - 0x52, 0x0a, 0x6f, 0x63, 0x72, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, 0x22, 0xdc, 0x02, 0x0a, - 0x0a, 0x4f, 0x43, 0x52, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, - 0x6d, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, - 0x6d, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x22, 0x0a, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75, - 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, - 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, - 0x63, 0x65, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x65, 0x6e, - 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x4d, 0x64, 0x35, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x4d, 0x64, 0x35, 0x12, - 0x2a, 0x0a, 0x10, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, - 0x4d, 0x64, 0x35, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x66, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x64, 0x35, 0x12, 0x34, 0x0a, 0x15, 0x61, - 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x65, - 0x53, 0x69, 0x7a, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x15, 0x61, 0x66, 0x74, 0x65, - 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, - 0x65, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, - 0x73, 0x73, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, - 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x57, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, - 0x72, 0x65, 0x73, 0x73, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x13, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x48, - 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x73, 0x43, 0x75, 0x74, 0x18, 0x0f, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x43, 0x75, 0x74, 0x22, 0x86, 0x01, 0x0a, 0x0b, - 0x44, 0x45, 0x30, 0x37, 0x52, 0x73, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x72, - 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x72, 0x65, - 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x18, 0x0a, - 0x07, 0x77, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x77, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, 0x12, 0x2b, 0x0a, 0x0a, 0x6f, 0x63, 0x72, 0x52, 0x73, - 0x70, 0x42, 0x6f, 0x64, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x4f, 0x43, - 0x52, 0x52, 0x73, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x0a, 0x6f, 0x63, 0x72, 0x52, 0x73, 0x70, - 0x42, 0x6f, 0x64, 0x79, 0x22, 0x9b, 0x01, 0x0a, 0x0d, 0x54, 0x65, 0x78, 0x74, 0x44, 0x65, 0x74, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x74, 0x65, 0x63, 0x74, - 0x65, 0x64, 0x54, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, - 0x74, 0x65, 0x63, 0x74, 0x65, 0x64, 0x54, 0x65, 0x78, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x0a, 0x07, 0x70, 0x6f, - 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x50, 0x6f, - 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x52, 0x07, 0x70, 0x6f, 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x12, 0x22, - 0x0a, 0x0c, 0x61, 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x61, 0x64, 0x76, 0x61, 0x6e, 0x63, 0x65, 0x64, 0x49, 0x6e, - 0x66, 0x6f, 0x22, 0x38, 0x0a, 0x07, 0x50, 0x6f, 0x6c, 0x79, 0x67, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, - 0x0b, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x52, - 0x0b, 0x63, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x73, 0x22, 0x28, 0x0a, 0x0a, - 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x61, 0x74, 0x65, 0x12, 0x0c, 0x0a, 0x01, 0x58, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x01, 0x58, 0x12, 0x0c, 0x0a, 0x01, 0x59, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x01, 0x59, 0x22, 0x4a, 0x0a, 0x08, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, - 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x22, - 0x0a, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x44, 0x65, 0x73, 0x63, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x44, 0x65, - 0x73, 0x63, 0x22, 0xf7, 0x02, 0x0a, 0x0a, 0x4f, 0x43, 0x52, 0x52, 0x73, 0x70, 0x42, 0x6f, 0x64, - 0x79, 0x12, 0x36, 0x0a, 0x0e, 0x74, 0x65, 0x78, 0x74, 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x54, 0x65, 0x78, 0x74, - 0x44, 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x74, 0x65, 0x78, 0x74, 0x44, - 0x65, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x6f, 0x63, 0x72, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, - 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x65, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x6f, 0x63, - 0x72, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3a, 0x0a, - 0x18, 0x64, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x66, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x18, 0x64, 0x73, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x65, 0x4c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x0c, 0x6c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x67, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x09, 0x2e, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, - 0x75, 0x61, 0x67, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x66, 0x74, 0x65, - 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, - 0x6f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, - 0x72, 0x65, 0x73, 0x73, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x66, - 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x48, 0x65, 0x69, 0x67, 0x68, - 0x74, 0x18, 0x70, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, - 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x09, 0x5a, 0x07, - 0x2e, 0x2f, 0x3b, 0x6f, 0x69, 0x64, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_oidb0xe07_proto_rawDescOnce sync.Once - file_oidb0xe07_proto_rawDescData = file_oidb0xe07_proto_rawDesc -) - -func file_oidb0xe07_proto_rawDescGZIP() []byte { - file_oidb0xe07_proto_rawDescOnce.Do(func() { - file_oidb0xe07_proto_rawDescData = protoimpl.X.CompressGZIP(file_oidb0xe07_proto_rawDescData) - }) - return file_oidb0xe07_proto_rawDescData -} - -var file_oidb0xe07_proto_msgTypes = make([]protoimpl.MessageInfo, 8) -var file_oidb0xe07_proto_goTypes = []interface{}{ - (*DE07ReqBody)(nil), // 0: DE07ReqBody - (*OCRReqBody)(nil), // 1: OCRReqBody - (*DE07RspBody)(nil), // 2: DE07RspBody - (*TextDetection)(nil), // 3: TextDetection - (*Polygon)(nil), // 4: Polygon - (*Coordinate)(nil), // 5: Coordinate - (*Language)(nil), // 6: Language - (*OCRRspBody)(nil), // 7: OCRRspBody -} -var file_oidb0xe07_proto_depIdxs = []int32{ - 1, // 0: DE07ReqBody.ocrReqBody:type_name -> OCRReqBody - 7, // 1: DE07RspBody.ocrRspBody:type_name -> OCRRspBody - 4, // 2: TextDetection.polygon:type_name -> Polygon - 5, // 3: Polygon.coordinates:type_name -> Coordinate - 3, // 4: OCRRspBody.textDetections:type_name -> TextDetection - 6, // 5: OCRRspBody.languageList:type_name -> Language - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_oidb0xe07_proto_init() } -func file_oidb0xe07_proto_init() { - if File_oidb0xe07_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_oidb0xe07_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DE07ReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xe07_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OCRReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xe07_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DE07RspBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xe07_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TextDetection); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xe07_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Polygon); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xe07_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Coordinate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xe07_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Language); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xe07_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OCRRspBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oidb0xe07_proto_rawDesc, - NumEnums: 0, - NumMessages: 8, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_oidb0xe07_proto_goTypes, - DependencyIndexes: file_oidb0xe07_proto_depIdxs, - MessageInfos: file_oidb0xe07_proto_msgTypes, - }.Build() - File_oidb0xe07_proto = out.File - file_oidb0xe07_proto_rawDesc = nil - file_oidb0xe07_proto_goTypes = nil - file_oidb0xe07_proto_depIdxs = nil -} diff --git a/client/pb/oidb/oidb0xe07.proto b/client/pb/oidb/oidb0xe07.proto deleted file mode 100644 index e4ccaac6..00000000 --- a/client/pb/oidb/oidb0xe07.proto +++ /dev/null @@ -1,61 +0,0 @@ -syntax = "proto3"; - -option go_package = "./;oidb"; - -message DE07ReqBody { - int32 version = 1; - int32 client = 2; - int32 entrance = 3; - OCRReqBody ocrReqBody = 10; -} - -message OCRReqBody { - string imageUrl = 1; - string languageType = 2; - string scene = 3; - string originMd5 = 10; - string afterCompressMd5 = 11; - int32 afterCompressFileSize = 12; - int32 afterCompressWeight = 13; - int32 afterCompressHeight = 14; - bool isCut = 15; -} - -message DE07RspBody { - int32 retCode = 1; - string errMsg = 2; - string wording = 3; - OCRRspBody ocrRspBody = 10; -} - -message TextDetection { - string detectedText = 1; - int32 confidence = 2; - Polygon polygon = 3; - string advancedInfo = 4; -} - -message Polygon { - repeated Coordinate coordinates = 1; -} - -message Coordinate { - int32 X = 1; - int32 Y = 2; -} - -message Language { - string language = 1; - string languageDesc = 2; -} - -message OCRRspBody { - repeated TextDetection textDetections = 1; - string language = 2; - string requestId = 3; - repeated string ocrLanguageList = 101; - repeated string dstTranslateLanguageList = 102; - repeated Language languageList = 103; - int32 afterCompressWeight = 111; - int32 afterCompressHeight = 112; -} diff --git a/client/pb/oidb/oidb0xe5b.pb.go b/client/pb/oidb/oidb0xe5b.pb.go deleted file mode 100644 index a543d949..00000000 --- a/client/pb/oidb/oidb0xe5b.pb.go +++ /dev/null @@ -1,377 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.17.1 -// source: oidb0xe5b.proto - -package oidb - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type LifeAchievementItem struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AchievementId *uint32 `protobuf:"varint,1,opt,name=achievementId" json:"achievementId,omitempty"` - AchievementTitle *string `protobuf:"bytes,2,opt,name=achievementTitle" json:"achievementTitle,omitempty"` - AchievementIcon *string `protobuf:"bytes,3,opt,name=achievementIcon" json:"achievementIcon,omitempty"` - HasPraised *bool `protobuf:"varint,4,opt,name=hasPraised" json:"hasPraised,omitempty"` - PraiseNum *uint32 `protobuf:"varint,5,opt,name=praiseNum" json:"praiseNum,omitempty"` - AchievementContent []byte `protobuf:"bytes,6,opt,name=achievementContent" json:"achievementContent,omitempty"` -} - -func (x *LifeAchievementItem) Reset() { - *x = LifeAchievementItem{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xe5b_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LifeAchievementItem) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LifeAchievementItem) ProtoMessage() {} - -func (x *LifeAchievementItem) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xe5b_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LifeAchievementItem.ProtoReflect.Descriptor instead. -func (*LifeAchievementItem) Descriptor() ([]byte, []int) { - return file_oidb0xe5b_proto_rawDescGZIP(), []int{0} -} - -func (x *LifeAchievementItem) GetAchievementId() uint32 { - if x != nil && x.AchievementId != nil { - return *x.AchievementId - } - return 0 -} - -func (x *LifeAchievementItem) GetAchievementTitle() string { - if x != nil && x.AchievementTitle != nil { - return *x.AchievementTitle - } - return "" -} - -func (x *LifeAchievementItem) GetAchievementIcon() string { - if x != nil && x.AchievementIcon != nil { - return *x.AchievementIcon - } - return "" -} - -func (x *LifeAchievementItem) GetHasPraised() bool { - if x != nil && x.HasPraised != nil { - return *x.HasPraised - } - return false -} - -func (x *LifeAchievementItem) GetPraiseNum() uint32 { - if x != nil && x.PraiseNum != nil { - return *x.PraiseNum - } - return 0 -} - -func (x *LifeAchievementItem) GetAchievementContent() []byte { - if x != nil { - return x.AchievementContent - } - return nil -} - -type DE5BReqBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uin *uint64 `protobuf:"varint,1,opt,name=uin" json:"uin,omitempty"` - AchievementId []uint32 `protobuf:"varint,2,rep,name=achievementId" json:"achievementId,omitempty"` - MaxCount *uint32 `protobuf:"varint,3,opt,name=maxCount" json:"maxCount,omitempty"` - ReqAchievementContent *bool `protobuf:"varint,4,opt,name=reqAchievementContent" json:"reqAchievementContent,omitempty"` -} - -func (x *DE5BReqBody) Reset() { - *x = DE5BReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xe5b_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DE5BReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DE5BReqBody) ProtoMessage() {} - -func (x *DE5BReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xe5b_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DE5BReqBody.ProtoReflect.Descriptor instead. -func (*DE5BReqBody) Descriptor() ([]byte, []int) { - return file_oidb0xe5b_proto_rawDescGZIP(), []int{1} -} - -func (x *DE5BReqBody) GetUin() uint64 { - if x != nil && x.Uin != nil { - return *x.Uin - } - 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 - } - return 0 -} - -func (x *DE5BReqBody) GetReqAchievementContent() bool { - if x != nil && x.ReqAchievementContent != nil { - return *x.ReqAchievementContent - } - return false -} - -type DE5BRspBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AchievementTotalCount *uint32 `protobuf:"varint,1,opt,name=achievementTotalCount" json:"achievementTotalCount,omitempty"` - LifeAchItem []*LifeAchievementItem `protobuf:"bytes,2,rep,name=lifeAchItem" json:"lifeAchItem,omitempty"` - AchievementOpenid *string `protobuf:"bytes,3,opt,name=achievementOpenid" json:"achievementOpenid,omitempty"` -} - -func (x *DE5BRspBody) Reset() { - *x = DE5BRspBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xe5b_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DE5BRspBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DE5BRspBody) ProtoMessage() {} - -func (x *DE5BRspBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xe5b_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DE5BRspBody.ProtoReflect.Descriptor instead. -func (*DE5BRspBody) Descriptor() ([]byte, []int) { - return file_oidb0xe5b_proto_rawDescGZIP(), []int{2} -} - -func (x *DE5BRspBody) GetAchievementTotalCount() uint32 { - if x != nil && x.AchievementTotalCount != nil { - return *x.AchievementTotalCount - } - 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 - } - return "" -} - -var File_oidb0xe5b_proto protoreflect.FileDescriptor - -var file_oidb0xe5b_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x69, 0x64, 0x62, 0x30, 0x78, 0x65, 0x35, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xff, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x66, 0x65, 0x41, 0x63, 0x68, 0x69, 0x65, 0x76, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x63, 0x68, - 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x0d, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, - 0x2a, 0x0a, 0x10, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, - 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x63, 0x68, 0x69, 0x65, - 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x61, - 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x63, 0x6f, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x49, 0x63, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x68, 0x61, 0x73, 0x50, 0x72, 0x61, 0x69, - 0x73, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x68, 0x61, 0x73, 0x50, 0x72, - 0x61, 0x69, 0x73, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x61, 0x69, 0x73, 0x65, 0x4e, - 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, 0x61, 0x69, 0x73, 0x65, - 0x4e, 0x75, 0x6d, 0x12, 0x2e, 0x0a, 0x12, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x12, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x22, 0x97, 0x01, 0x0a, 0x0b, 0x44, 0x45, 0x35, 0x42, 0x52, 0x65, 0x71, 0x42, - 0x6f, 0x64, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x03, 0x75, 0x69, 0x6e, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0d, 0x61, 0x63, - 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6d, - 0x61, 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6d, - 0x61, 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x15, 0x72, 0x65, 0x71, 0x41, 0x63, - 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x72, 0x65, 0x71, 0x41, 0x63, 0x68, 0x69, 0x65, - 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0xa9, 0x01, - 0x0a, 0x0b, 0x44, 0x45, 0x35, 0x42, 0x52, 0x73, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x34, 0x0a, - 0x15, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x74, 0x61, - 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x15, 0x61, 0x63, - 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x6c, 0x69, 0x66, 0x65, 0x41, 0x63, 0x68, 0x49, 0x74, - 0x65, 0x6d, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x4c, 0x69, 0x66, 0x65, 0x41, - 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0b, - 0x6c, 0x69, 0x66, 0x65, 0x41, 0x63, 0x68, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x2c, 0x0a, 0x11, 0x61, - 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x69, 0x64, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x61, 0x63, 0x68, 0x69, 0x65, 0x76, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x69, 0x64, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x3b, - 0x6f, 0x69, 0x64, 0x62, -} - -var ( - file_oidb0xe5b_proto_rawDescOnce sync.Once - file_oidb0xe5b_proto_rawDescData = file_oidb0xe5b_proto_rawDesc -) - -func file_oidb0xe5b_proto_rawDescGZIP() []byte { - file_oidb0xe5b_proto_rawDescOnce.Do(func() { - file_oidb0xe5b_proto_rawDescData = protoimpl.X.CompressGZIP(file_oidb0xe5b_proto_rawDescData) - }) - return file_oidb0xe5b_proto_rawDescData -} - -var file_oidb0xe5b_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_oidb0xe5b_proto_goTypes = []interface{}{ - (*LifeAchievementItem)(nil), // 0: LifeAchievementItem - (*DE5BReqBody)(nil), // 1: DE5BReqBody - (*DE5BRspBody)(nil), // 2: DE5BRspBody -} -var file_oidb0xe5b_proto_depIdxs = []int32{ - 0, // 0: DE5BRspBody.lifeAchItem:type_name -> LifeAchievementItem - 1, // [1:1] is the sub-list for method output_type - 1, // [1:1] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_oidb0xe5b_proto_init() } -func file_oidb0xe5b_proto_init() { - if File_oidb0xe5b_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_oidb0xe5b_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LifeAchievementItem); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xe5b_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DE5BReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xe5b_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DE5BRspBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oidb0xe5b_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_oidb0xe5b_proto_goTypes, - DependencyIndexes: file_oidb0xe5b_proto_depIdxs, - MessageInfos: file_oidb0xe5b_proto_msgTypes, - }.Build() - File_oidb0xe5b_proto = out.File - file_oidb0xe5b_proto_rawDesc = nil - file_oidb0xe5b_proto_goTypes = nil - file_oidb0xe5b_proto_depIdxs = nil -} diff --git a/client/pb/oidb/oidb0xe5b.proto b/client/pb/oidb/oidb0xe5b.proto deleted file mode 100644 index 168845c9..00000000 --- a/client/pb/oidb/oidb0xe5b.proto +++ /dev/null @@ -1,25 +0,0 @@ -syntax = "proto2"; - -option go_package = "./;oidb"; - -message LifeAchievementItem { - optional uint32 achievementId = 1; - optional string achievementTitle = 2; - optional string achievementIcon = 3; - optional bool hasPraised = 4; - optional uint32 praiseNum = 5; - optional bytes achievementContent = 6; -} - -message DE5BReqBody { - optional uint64 uin = 1; - repeated uint32 achievementId = 2; - optional uint32 maxCount = 3; - optional bool reqAchievementContent = 4; -} - -message DE5BRspBody { - optional uint32 achievementTotalCount = 1; - repeated LifeAchievementItem lifeAchItem = 2; - optional string achievementOpenid = 3; -} diff --git a/client/pb/oidb/oidb0xeac.pb.go b/client/pb/oidb/oidb0xeac.pb.go deleted file mode 100644 index c80758aa..00000000 --- a/client/pb/oidb/oidb0xeac.pb.go +++ /dev/null @@ -1,254 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.17.1 -// source: oidb0xeac.proto - -package oidb - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type EACReqBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GroupCode *uint64 `protobuf:"varint,1,opt,name=groupCode" json:"groupCode,omitempty"` - Seq *uint32 `protobuf:"varint,2,opt,name=seq" json:"seq,omitempty"` - Random *uint32 `protobuf:"varint,3,opt,name=random" json:"random,omitempty"` -} - -func (x *EACReqBody) Reset() { - *x = EACReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xeac_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EACReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EACReqBody) ProtoMessage() {} - -func (x *EACReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xeac_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EACReqBody.ProtoReflect.Descriptor instead. -func (*EACReqBody) Descriptor() ([]byte, []int) { - return file_oidb0xeac_proto_rawDescGZIP(), []int{0} -} - -func (x *EACReqBody) GetGroupCode() uint64 { - if x != nil && x.GroupCode != nil { - return *x.GroupCode - } - return 0 -} - -func (x *EACReqBody) GetSeq() uint32 { - if x != nil && x.Seq != nil { - return *x.Seq - } - return 0 -} - -func (x *EACReqBody) GetRandom() uint32 { - if x != nil && x.Random != nil { - return *x.Random - } - return 0 -} - -type EACRspBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Wording *string `protobuf:"bytes,1,opt,name=wording" json:"wording,omitempty"` - DigestUin *uint64 `protobuf:"varint,2,opt,name=digestUin" json:"digestUin,omitempty"` - DigestTime *uint32 `protobuf:"varint,3,opt,name=digestTime" json:"digestTime,omitempty"` - //optional DigestMsg msg = 4; - ErrorCode *uint32 `protobuf:"varint,10,opt,name=errorCode" json:"errorCode,omitempty"` -} - -func (x *EACRspBody) Reset() { - *x = EACRspBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xeac_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *EACRspBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*EACRspBody) ProtoMessage() {} - -func (x *EACRspBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xeac_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use EACRspBody.ProtoReflect.Descriptor instead. -func (*EACRspBody) Descriptor() ([]byte, []int) { - return file_oidb0xeac_proto_rawDescGZIP(), []int{1} -} - -func (x *EACRspBody) GetWording() string { - if x != nil && x.Wording != nil { - return *x.Wording - } - return "" -} - -func (x *EACRspBody) GetDigestUin() uint64 { - if x != nil && x.DigestUin != nil { - return *x.DigestUin - } - return 0 -} - -func (x *EACRspBody) GetDigestTime() uint32 { - if x != nil && x.DigestTime != nil { - return *x.DigestTime - } - return 0 -} - -func (x *EACRspBody) GetErrorCode() uint32 { - if x != nil && x.ErrorCode != nil { - return *x.ErrorCode - } - return 0 -} - -var File_oidb0xeac_proto protoreflect.FileDescriptor - -var file_oidb0xeac_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x69, 0x64, 0x62, 0x30, 0x78, 0x65, 0x61, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x54, 0x0a, 0x0a, 0x45, 0x41, 0x43, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, 0x12, - 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x10, 0x0a, - 0x03, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, - 0x16, 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x06, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x22, 0x82, 0x01, 0x0a, 0x0a, 0x45, 0x41, 0x43, 0x52, - 0x73, 0x70, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x6f, 0x72, 0x64, 0x69, 0x6e, - 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x64, 0x69, 0x6e, 0x67, - 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x55, 0x69, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x09, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x55, 0x69, 0x6e, 0x12, 0x1e, - 0x0a, 0x0a, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0a, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, - 0x0a, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x42, 0x09, 0x5a, 0x07, - 0x2e, 0x2f, 0x3b, 0x6f, 0x69, 0x64, 0x62, -} - -var ( - file_oidb0xeac_proto_rawDescOnce sync.Once - file_oidb0xeac_proto_rawDescData = file_oidb0xeac_proto_rawDesc -) - -func file_oidb0xeac_proto_rawDescGZIP() []byte { - file_oidb0xeac_proto_rawDescOnce.Do(func() { - file_oidb0xeac_proto_rawDescData = protoimpl.X.CompressGZIP(file_oidb0xeac_proto_rawDescData) - }) - return file_oidb0xeac_proto_rawDescData -} - -var file_oidb0xeac_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_oidb0xeac_proto_goTypes = []interface{}{ - (*EACReqBody)(nil), // 0: EACReqBody - (*EACRspBody)(nil), // 1: EACRspBody -} -var file_oidb0xeac_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_oidb0xeac_proto_init() } -func file_oidb0xeac_proto_init() { - if File_oidb0xeac_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_oidb0xeac_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EACReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xeac_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EACRspBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oidb0xeac_proto_rawDesc, - NumEnums: 0, - NumMessages: 2, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_oidb0xeac_proto_goTypes, - DependencyIndexes: file_oidb0xeac_proto_depIdxs, - MessageInfos: file_oidb0xeac_proto_msgTypes, - }.Build() - File_oidb0xeac_proto = out.File - file_oidb0xeac_proto_rawDesc = nil - file_oidb0xeac_proto_goTypes = nil - file_oidb0xeac_proto_depIdxs = nil -} diff --git a/client/pb/oidb/oidb0xeac.proto b/client/pb/oidb/oidb0xeac.proto deleted file mode 100644 index c04b35bd..00000000 --- a/client/pb/oidb/oidb0xeac.proto +++ /dev/null @@ -1,135 +0,0 @@ -syntax = "proto2"; - -option go_package = "./;oidb"; - -/* -message ArkMsg { - optional string appName = 1; - optional string json = 2; -} - -message BatchReqBody { - optional uint64 groupCode = 1; - repeated MsgInfo msgs = 2; -} - -message BatchRspBody { - optional string wording = 1; - optional uint32 errorCode = 2; - optional int32 succCnt = 3; - repeated MsgProcessInfo procInfos = 4; - optional uint32 digestTime = 5; -} - -message DigestMsg { - optional uint64 groupCode = 1; - optional uint32 seq = 2; - optional uint32 random = 3; - repeated MsgElem content = 4; - optional uint64 textSize = 5; - optional uint64 picSize = 6; - optional uint64 videoSize = 7; - optional uint64 senderUin = 8; - optional uint32 senderTime = 9; - optional uint64 addDigestUin = 10; - optional uint32 addDigestTime = 11; - optional uint32 startTime = 12; - optional uint32 latestMsgSeq = 13; - optional uint32 opType = 14; -} - -message FaceMsg { - optional uint32 index = 1; - optional string text = 2; -} - -message GroupFileMsg { - optional bytes fileName = 1; - optional uint32 busId = 2; - optional string fileId = 3; - optional uint64 fileSize = 4; - optional uint64 deadTime = 5; - optional bytes fileSha1 = 6; - optional bytes ext = 7; - optional bytes fileMd5 = 8; -} - -message ImageMsg { - optional string md5 = 1; - optional string uuid = 2; - optional uint32 imgType = 3; - optional uint32 fileSize = 4; - optional uint32 width = 5; - optional uint32 height = 6; - optional uint32 fileId = 101; - optional uint32 serverIp = 102; - optional uint32 serverPort = 103; - optional string filePath = 104; - optional string thumbUrl = 201; - optional string originalUrl = 202; - optional string resaveUrl = 203; -} - -message MsgElem { - optional uint32 type = 1; - optional TextMsg textMsg = 11; - optional FaceMsg faceMsg = 12; - optional ImageMsg imageMsg = 13; - optional GroupFileMsg groupFileMsg = 14; - optional ShareMsg shareMsg = 15; - optional RichMsg richMsg = 16; - optional ArkMsg arkMsg = 17; -} - -message MsgInfo { - optional uint32 seq = 1; - optional uint32 random = 2; -} - -message MsgProcessInfo { - optional MsgInfo msg = 1; - optional uint32 errorCode = 2; - optional uint64 digestUin = 3; - optional uint32 digestTime = 4; -} -*/ - -message EACReqBody { - optional uint64 groupCode = 1; - optional uint32 seq = 2; - optional uint32 random = 3; -} - -/* -message RichMsg { - optional uint32 serviceId = 1; - optional string xml = 2; - optional string longMsgResid = 3; -} -*/ - -message EACRspBody { - optional string wording = 1; - optional uint64 digestUin = 2; - optional uint32 digestTime = 3; - //optional DigestMsg msg = 4; - optional uint32 errorCode = 10; -} - -/* -message ShareMsg { - optional string type = 1; - optional string title = 2; - optional string summary = 3; - optional string brief = 4; - optional string url = 5; - optional string pictureUrl = 6; - optional string action = 7; - optional string source = 8; - optional string sourceUrl = 9; -} - -message TextMsg { - optional bytes str = 1; -} - */ \ No newline at end of file diff --git a/client/pb/oidb/oidb0xec4.pb.go b/client/pb/oidb/oidb0xec4.pb.go deleted file mode 100644 index 801a2cf8..00000000 --- a/client/pb/oidb/oidb0xec4.pb.go +++ /dev/null @@ -1,724 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.26.0 -// protoc v3.17.1 -// source: oidb0xec4.proto - -package oidb - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Comment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` - Comment *string `protobuf:"bytes,2,opt,name=comment" json:"comment,omitempty"` - Time *uint64 `protobuf:"varint,3,opt,name=time" json:"time,omitempty"` - FromUin *uint64 `protobuf:"varint,4,opt,name=fromUin" json:"fromUin,omitempty"` - ToUin *uint64 `protobuf:"varint,5,opt,name=toUin" json:"toUin,omitempty"` - ReplyId *string `protobuf:"bytes,6,opt,name=replyId" json:"replyId,omitempty"` - FromNick *string `protobuf:"bytes,7,opt,name=fromNick" json:"fromNick,omitempty"` -} - -func (x *Comment) Reset() { - *x = Comment{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xec4_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Comment) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Comment) ProtoMessage() {} - -func (x *Comment) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xec4_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Comment.ProtoReflect.Descriptor instead. -func (*Comment) Descriptor() ([]byte, []int) { - return file_oidb0xec4_proto_rawDescGZIP(), []int{0} -} - -func (x *Comment) GetId() string { - if x != nil && x.Id != nil { - return *x.Id - } - return "" -} - -func (x *Comment) GetComment() string { - if x != nil && x.Comment != nil { - return *x.Comment - } - return "" -} - -func (x *Comment) GetTime() uint64 { - if x != nil && x.Time != nil { - return *x.Time - } - return 0 -} - -func (x *Comment) GetFromUin() uint64 { - if x != nil && x.FromUin != nil { - return *x.FromUin - } - return 0 -} - -func (x *Comment) GetToUin() uint64 { - if x != nil && x.ToUin != nil { - return *x.ToUin - } - return 0 -} - -func (x *Comment) GetReplyId() string { - if x != nil && x.ReplyId != nil { - return *x.ReplyId - } - return "" -} - -func (x *Comment) GetFromNick() string { - if x != nil && x.FromNick != nil { - return *x.FromNick - } - return "" -} - -type Praise struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FromUin *uint64 `protobuf:"varint,1,opt,name=fromUin" json:"fromUin,omitempty"` - ToUin *uint64 `protobuf:"varint,2,opt,name=toUin" json:"toUin,omitempty"` - Time *uint64 `protobuf:"varint,3,opt,name=time" json:"time,omitempty"` - FromNick *string `protobuf:"bytes,4,opt,name=fromNick" json:"fromNick,omitempty"` -} - -func (x *Praise) Reset() { - *x = Praise{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xec4_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Praise) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Praise) ProtoMessage() {} - -func (x *Praise) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xec4_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Praise.ProtoReflect.Descriptor instead. -func (*Praise) Descriptor() ([]byte, []int) { - return file_oidb0xec4_proto_rawDescGZIP(), []int{1} -} - -func (x *Praise) GetFromUin() uint64 { - if x != nil && x.FromUin != nil { - return *x.FromUin - } - return 0 -} - -func (x *Praise) GetToUin() uint64 { - if x != nil && x.ToUin != nil { - return *x.ToUin - } - return 0 -} - -func (x *Praise) GetTime() uint64 { - if x != nil && x.Time != nil { - return *x.Time - } - return 0 -} - -func (x *Praise) GetFromNick() string { - if x != nil && x.FromNick != nil { - return *x.FromNick - } - return "" -} - -type Quest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` - Quest *string `protobuf:"bytes,2,opt,name=quest" json:"quest,omitempty"` - QuestUin *uint64 `protobuf:"varint,3,opt,name=questUin" json:"questUin,omitempty"` - Time *uint64 `protobuf:"varint,4,opt,name=time" json:"time,omitempty"` - Ans *string `protobuf:"bytes,5,opt,name=ans" json:"ans,omitempty"` - AnsTime *uint64 `protobuf:"varint,6,opt,name=ansTime" json:"ansTime,omitempty"` - Comment []*Comment `protobuf:"bytes,7,rep,name=comment" json:"comment,omitempty"` - Praise []*Praise `protobuf:"bytes,8,rep,name=praise" json:"praise,omitempty"` - PraiseNum *uint64 `protobuf:"varint,9,opt,name=praiseNum" json:"praiseNum,omitempty"` - LikeKey *string `protobuf:"bytes,10,opt,name=likeKey" json:"likeKey,omitempty"` - SystemId *uint64 `protobuf:"varint,11,opt,name=systemId" json:"systemId,omitempty"` - CommentNum *uint64 `protobuf:"varint,12,opt,name=commentNum" json:"commentNum,omitempty"` - ShowType *uint64 `protobuf:"varint,13,opt,name=showType" json:"showType,omitempty"` - ShowTimes *uint64 `protobuf:"varint,14,opt,name=showTimes" json:"showTimes,omitempty"` - BeenPraised *uint64 `protobuf:"varint,15,opt,name=beenPraised" json:"beenPraised,omitempty"` - QuestRead *bool `protobuf:"varint,16,opt,name=questRead" json:"questRead,omitempty"` - AnsShowType *uint64 `protobuf:"varint,17,opt,name=ansShowType" json:"ansShowType,omitempty"` -} - -func (x *Quest) Reset() { - *x = Quest{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xec4_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Quest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Quest) ProtoMessage() {} - -func (x *Quest) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xec4_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Quest.ProtoReflect.Descriptor instead. -func (*Quest) Descriptor() ([]byte, []int) { - return file_oidb0xec4_proto_rawDescGZIP(), []int{2} -} - -func (x *Quest) GetId() string { - if x != nil && x.Id != nil { - return *x.Id - } - return "" -} - -func (x *Quest) GetQuest() string { - if x != nil && x.Quest != nil { - return *x.Quest - } - return "" -} - -func (x *Quest) GetQuestUin() uint64 { - if x != nil && x.QuestUin != nil { - return *x.QuestUin - } - return 0 -} - -func (x *Quest) GetTime() uint64 { - if x != nil && x.Time != nil { - return *x.Time - } - return 0 -} - -func (x *Quest) GetAns() string { - if x != nil && x.Ans != nil { - return *x.Ans - } - return "" -} - -func (x *Quest) GetAnsTime() uint64 { - if x != nil && x.AnsTime != nil { - return *x.AnsTime - } - 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 - } - return 0 -} - -func (x *Quest) GetLikeKey() string { - if x != nil && x.LikeKey != nil { - return *x.LikeKey - } - return "" -} - -func (x *Quest) GetSystemId() uint64 { - if x != nil && x.SystemId != nil { - return *x.SystemId - } - return 0 -} - -func (x *Quest) GetCommentNum() uint64 { - if x != nil && x.CommentNum != nil { - return *x.CommentNum - } - return 0 -} - -func (x *Quest) GetShowType() uint64 { - if x != nil && x.ShowType != nil { - return *x.ShowType - } - return 0 -} - -func (x *Quest) GetShowTimes() uint64 { - if x != nil && x.ShowTimes != nil { - return *x.ShowTimes - } - return 0 -} - -func (x *Quest) GetBeenPraised() uint64 { - if x != nil && x.BeenPraised != nil { - return *x.BeenPraised - } - return 0 -} - -func (x *Quest) GetQuestRead() bool { - if x != nil && x.QuestRead != nil { - return *x.QuestRead - } - return false -} - -func (x *Quest) GetAnsShowType() uint64 { - if x != nil && x.AnsShowType != nil { - return *x.AnsShowType - } - return 0 -} - -type DEC4ReqBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uin *uint64 `protobuf:"varint,1,opt,name=uin" json:"uin,omitempty"` - QuestNum *uint64 `protobuf:"varint,2,opt,name=questNum" json:"questNum,omitempty"` - CommentNum *uint64 `protobuf:"varint,3,opt,name=commentNum" json:"commentNum,omitempty"` - Cookie []byte `protobuf:"bytes,4,opt,name=cookie" json:"cookie,omitempty"` - FetchType *uint32 `protobuf:"varint,5,opt,name=fetchType" json:"fetchType,omitempty"` -} - -func (x *DEC4ReqBody) Reset() { - *x = DEC4ReqBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xec4_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DEC4ReqBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DEC4ReqBody) ProtoMessage() {} - -func (x *DEC4ReqBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xec4_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DEC4ReqBody.ProtoReflect.Descriptor instead. -func (*DEC4ReqBody) Descriptor() ([]byte, []int) { - return file_oidb0xec4_proto_rawDescGZIP(), []int{3} -} - -func (x *DEC4ReqBody) GetUin() uint64 { - if x != nil && x.Uin != nil { - return *x.Uin - } - return 0 -} - -func (x *DEC4ReqBody) GetQuestNum() uint64 { - if x != nil && x.QuestNum != nil { - return *x.QuestNum - } - return 0 -} - -func (x *DEC4ReqBody) GetCommentNum() uint64 { - if x != nil && x.CommentNum != nil { - return *x.CommentNum - } - 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 - } - return 0 -} - -type DEC4RspBody struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Quest []*Quest `protobuf:"bytes,1,rep,name=quest" json:"quest,omitempty"` - IsFetchOver *bool `protobuf:"varint,2,opt,name=isFetchOver" json:"isFetchOver,omitempty"` - TotalQuestNum *uint32 `protobuf:"varint,3,opt,name=totalQuestNum" json:"totalQuestNum,omitempty"` - Cookie []byte `protobuf:"bytes,4,opt,name=cookie" json:"cookie,omitempty"` - Ret *uint32 `protobuf:"varint,5,opt,name=ret" json:"ret,omitempty"` - AnsweredQuestNum *uint32 `protobuf:"varint,6,opt,name=answeredQuestNum" json:"answeredQuestNum,omitempty"` -} - -func (x *DEC4RspBody) Reset() { - *x = DEC4RspBody{} - if protoimpl.UnsafeEnabled { - mi := &file_oidb0xec4_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DEC4RspBody) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DEC4RspBody) ProtoMessage() {} - -func (x *DEC4RspBody) ProtoReflect() protoreflect.Message { - mi := &file_oidb0xec4_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DEC4RspBody.ProtoReflect.Descriptor instead. -func (*DEC4RspBody) Descriptor() ([]byte, []int) { - return file_oidb0xec4_proto_rawDescGZIP(), []int{4} -} - -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 - } - return false -} - -func (x *DEC4RspBody) GetTotalQuestNum() uint32 { - if x != nil && x.TotalQuestNum != nil { - return *x.TotalQuestNum - } - 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 - } - return 0 -} - -func (x *DEC4RspBody) GetAnsweredQuestNum() uint32 { - if x != nil && x.AnsweredQuestNum != nil { - return *x.AnsweredQuestNum - } - return 0 -} - -var File_oidb0xec4_proto protoreflect.FileDescriptor - -var file_oidb0xec4_proto_rawDesc = []byte{ - 0x0a, 0x0f, 0x6f, 0x69, 0x64, 0x62, 0x30, 0x78, 0x65, 0x63, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xad, 0x01, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, - 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x66, - 0x72, 0x6f, 0x6d, 0x55, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x66, 0x72, - 0x6f, 0x6d, 0x55, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x55, 0x69, 0x6e, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x6f, 0x55, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, - 0x65, 0x70, 0x6c, 0x79, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, - 0x70, 0x6c, 0x79, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x72, 0x6f, 0x6d, 0x4e, 0x69, 0x63, - 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x72, 0x6f, 0x6d, 0x4e, 0x69, 0x63, - 0x6b, 0x22, 0x68, 0x0a, 0x06, 0x50, 0x72, 0x61, 0x69, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x66, - 0x72, 0x6f, 0x6d, 0x55, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x66, 0x72, - 0x6f, 0x6d, 0x55, 0x69, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x55, 0x69, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x74, 0x6f, 0x55, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x66, 0x72, 0x6f, 0x6d, 0x4e, 0x69, 0x63, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x66, 0x72, 0x6f, 0x6d, 0x4e, 0x69, 0x63, 0x6b, 0x22, 0xde, 0x03, 0x0a, 0x05, - 0x51, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x55, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x55, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x61, - 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x6e, 0x73, 0x12, 0x18, 0x0a, - 0x07, 0x61, 0x6e, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, - 0x61, 0x6e, 0x73, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, - 0x6e, 0x74, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x06, 0x70, - 0x72, 0x61, 0x69, 0x73, 0x65, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x50, 0x72, - 0x61, 0x69, 0x73, 0x65, 0x52, 0x06, 0x70, 0x72, 0x61, 0x69, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, - 0x70, 0x72, 0x61, 0x69, 0x73, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x09, 0x70, 0x72, 0x61, 0x69, 0x73, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x69, - 0x6b, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x69, 0x6b, - 0x65, 0x4b, 0x65, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x64, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x64, - 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x0c, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x75, 0x6d, - 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x73, 0x68, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, - 0x73, 0x68, 0x6f, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x09, 0x73, 0x68, 0x6f, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x65, - 0x65, 0x6e, 0x50, 0x72, 0x61, 0x69, 0x73, 0x65, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0b, 0x62, 0x65, 0x65, 0x6e, 0x50, 0x72, 0x61, 0x69, 0x73, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x61, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x09, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x65, 0x61, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x6e, - 0x73, 0x53, 0x68, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x0b, 0x61, 0x6e, 0x73, 0x53, 0x68, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x22, 0x91, 0x01, 0x0a, - 0x0b, 0x44, 0x45, 0x43, 0x34, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x75, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x75, 0x69, 0x6e, 0x12, 0x1a, - 0x0a, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x08, 0x71, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x75, 0x6d, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, - 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, - 0x6f, 0x6b, 0x69, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x6f, 0x6f, 0x6b, - 0x69, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x66, 0x65, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x66, 0x65, 0x74, 0x63, 0x68, 0x54, 0x79, 0x70, 0x65, - 0x22, 0xc9, 0x01, 0x0a, 0x0b, 0x44, 0x45, 0x43, 0x34, 0x52, 0x73, 0x70, 0x42, 0x6f, 0x64, 0x79, - 0x12, 0x1c, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x06, 0x2e, 0x51, 0x75, 0x65, 0x73, 0x74, 0x52, 0x05, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, - 0x0a, 0x0b, 0x69, 0x73, 0x46, 0x65, 0x74, 0x63, 0x68, 0x4f, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x46, 0x65, 0x74, 0x63, 0x68, 0x4f, 0x76, 0x65, 0x72, - 0x12, 0x24, 0x0a, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x51, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x75, - 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x51, 0x75, - 0x65, 0x73, 0x74, 0x4e, 0x75, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x12, 0x10, - 0x0a, 0x03, 0x72, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x72, 0x65, 0x74, - 0x12, 0x2a, 0x0a, 0x10, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x73, - 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x61, 0x6e, 0x73, 0x77, - 0x65, 0x72, 0x65, 0x64, 0x51, 0x75, 0x65, 0x73, 0x74, 0x4e, 0x75, 0x6d, 0x42, 0x09, 0x5a, 0x07, - 0x2e, 0x2f, 0x3b, 0x6f, 0x69, 0x64, 0x62, -} - -var ( - file_oidb0xec4_proto_rawDescOnce sync.Once - file_oidb0xec4_proto_rawDescData = file_oidb0xec4_proto_rawDesc -) - -func file_oidb0xec4_proto_rawDescGZIP() []byte { - file_oidb0xec4_proto_rawDescOnce.Do(func() { - file_oidb0xec4_proto_rawDescData = protoimpl.X.CompressGZIP(file_oidb0xec4_proto_rawDescData) - }) - return file_oidb0xec4_proto_rawDescData -} - -var file_oidb0xec4_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_oidb0xec4_proto_goTypes = []interface{}{ - (*Comment)(nil), // 0: Comment - (*Praise)(nil), // 1: Praise - (*Quest)(nil), // 2: Quest - (*DEC4ReqBody)(nil), // 3: DEC4ReqBody - (*DEC4RspBody)(nil), // 4: DEC4RspBody -} -var file_oidb0xec4_proto_depIdxs = []int32{ - 0, // 0: Quest.comment:type_name -> Comment - 1, // 1: Quest.praise:type_name -> Praise - 2, // 2: DEC4RspBody.quest:type_name -> Quest - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name -} - -func init() { file_oidb0xec4_proto_init() } -func file_oidb0xec4_proto_init() { - if File_oidb0xec4_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_oidb0xec4_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Comment); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xec4_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Praise); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xec4_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Quest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xec4_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DEC4ReqBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_oidb0xec4_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DEC4RspBody); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_oidb0xec4_proto_rawDesc, - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_oidb0xec4_proto_goTypes, - DependencyIndexes: file_oidb0xec4_proto_depIdxs, - MessageInfos: file_oidb0xec4_proto_msgTypes, - }.Build() - File_oidb0xec4_proto = out.File - file_oidb0xec4_proto_rawDesc = nil - file_oidb0xec4_proto_goTypes = nil - file_oidb0xec4_proto_depIdxs = nil -} diff --git a/client/pb/oidb/oidb0xec4.proto b/client/pb/oidb/oidb0xec4.proto deleted file mode 100644 index 12a249d9..00000000 --- a/client/pb/oidb/oidb0xec4.proto +++ /dev/null @@ -1,56 +0,0 @@ -syntax = "proto2"; -option go_package = "./;oidb"; - -message Comment { - optional string id = 1; - optional string comment = 2; - optional uint64 time = 3; - optional uint64 fromUin = 4; - optional uint64 toUin = 5; - optional string replyId = 6; - optional string fromNick = 7; -} - -message Praise { - optional uint64 fromUin = 1; - optional uint64 toUin = 2; - optional uint64 time = 3; - optional string fromNick = 4; -} - -message Quest { - optional string id = 1; - optional string quest = 2; - optional uint64 questUin = 3; - optional uint64 time = 4; - optional string ans = 5; - optional uint64 ansTime = 6; - repeated Comment comment = 7; - repeated Praise praise = 8; - optional uint64 praiseNum = 9; - optional string likeKey = 10; - optional uint64 systemId = 11; - optional uint64 commentNum = 12; - optional uint64 showType = 13; - optional uint64 showTimes = 14; - optional uint64 beenPraised = 15; - optional bool questRead = 16; - optional uint64 ansShowType = 17; -} - -message DEC4ReqBody { - optional uint64 uin = 1; - optional uint64 questNum = 2; - optional uint64 commentNum = 3; - optional bytes cookie = 4; - optional uint32 fetchType = 5; -} - -message DEC4RspBody { - repeated Quest quest = 1; - optional bool isFetchOver = 2; - optional uint32 totalQuestNum = 3; - optional bytes cookie = 4; - optional uint32 ret = 5; - optional uint32 answeredQuestNum = 6; -} \ No newline at end of file diff --git a/client/richmsg.go b/client/richmsg.go index 1424d3f6..5c79b00e 100644 --- a/client/richmsg.go +++ b/client/richmsg.go @@ -1,12 +1,12 @@ package client import ( + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0xb77" "math/rand" "time" "github.com/Mrs4s/MiraiGo/internal/packets" - "github.com/Mrs4s/MiraiGo/client/pb/oidb" "github.com/Mrs4s/MiraiGo/message" "github.com/Mrs4s/MiraiGo/utils" "github.com/pkg/errors" @@ -95,34 +95,34 @@ func (c *QQClient) SendFriendMusicShare(target int64, msg *message.MusicShareEle func (c *QQClient) buildRichMsgSendingPacket(target int64, msg *message.MusicShareElement, sendType uint32) (uint16, []byte) { seq := c.nextSeq() tp := musicType[msg.MusicType] // MusicType - body := &oidb.DB77ReqBody{ - AppId: tp.appID, - AppType: tp.appType, - MsgStyle: func() uint32 { + body := &oidb0xb77.ReqBody{ + AppId: &tp.appID, + AppType: &tp.appType, + MsgStyle: proto.Uint32(func() uint32 { if msg.MusicUrl == "" { return 0 } return 4 - }(), - ClientInfo: &oidb.DB77ClientInfo{ - Platform: tp.platform, - SdkVersion: tp.sdkVersion, - AndroidPackageName: tp.packageName, - AndroidSignature: tp.signature, + }()), + ClientInfo: &oidb0xb77.ClientInfo{ + Platform: &tp.platform, + SdkVersion: &tp.sdkVersion, + AndroidPackageName: &tp.packageName, + AndroidSignature: &tp.signature, }, - ExtInfo: &oidb.DB77ExtInfo{MsgSeq: rand.Uint64()}, - SendType: sendType, - RecvUin: uint64(target), - RichMsgBody: &oidb.DB77RichMsgBody{ - Title: msg.Title, - Summary: msg.Summary, - Brief: msg.Brief, - Url: msg.Url, - PictureUrl: msg.PictureUrl, - MusicUrl: msg.MusicUrl, + ExtInfo: &oidb0xb77.ExtInfo{MsgSeq: proto.Uint64(rand.Uint64())}, + SendType: &sendType, + RecvUin: proto.Uint64(uint64(target)), + RichMsgBody: &oidb0xb77.RichMsgBody{ + Title: &msg.Title, + Summary: &msg.Summary, + Brief: &msg.Brief, + Url: &msg.Url, + PictureUrl: &msg.PictureUrl, + MusicUrl: &msg.MusicUrl, }, } - b, _ := proto.Marshal(body) + b, _ := body.Marshal() payload := c.packOIDBPackage(2935, 9, b) packet := packets.BuildUniPacket(c.Uin, seq, "OidbSvc.0xb77_9", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet diff --git a/client/security.go b/client/security.go index b3600f97..936c875c 100644 --- a/client/security.go +++ b/client/security.go @@ -1,9 +1,11 @@ package client import ( - "github.com/Mrs4s/MiraiGo/client/pb/oidb" "github.com/Mrs4s/MiraiGo/internal/packets" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0xbcb" "github.com/pkg/errors" + "go.dedis.ch/protobuf" "google.golang.org/protobuf/proto" ) @@ -30,8 +32,8 @@ func (c *QQClient) CheckUrlSafely(url string) UrlSecurityLevel { func (c *QQClient) buildUrlCheckRequest(url string) (uint16, []byte) { seq := c.nextSeq() - payload := c.packOIDBPackageProto(3019, 0, &oidb.DBCBReqBody{ - CheckUrlReq: &oidb.CheckUrlReq{ + payload := c.packOIDBPackageProto2(3019, 0, &oidb0xbcb.ReqBody{ + CheckUrlReq: &oidb0xbcb.CheckUrlReq{ Url: []string{url}, QqPfTo: proto.String("mqq.group"), Type: proto.Uint32(2), @@ -51,11 +53,11 @@ func (c *QQClient) buildUrlCheckRequest(url string) (uint16, []byte) { func decodeUrlCheckResponse(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := &oidb.OIDBSSOPkg{} - rsp := &oidb.DBCBRspBody{} - if err := proto.Unmarshal(payload, pkg); err != nil { + rsp := &oidb0xbcb.RspBody{} + if err := protobuf.Decode(payload, pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } - if err := proto.Unmarshal(pkg.Bodybuffer, rsp); err != nil { + if err := protobuf.Decode(pkg.Bodybuffer, rsp); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } if rsp.CheckUrlRsp == nil || len(rsp.CheckUrlRsp.Results) == 0 { diff --git a/client/sync.go b/client/sync.go index 40f438de..44ec8cbc 100644 --- a/client/sync.go +++ b/client/sync.go @@ -1,6 +1,8 @@ package client import ( + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x769" + "go.dedis.ch/protobuf" "math/rand" "sync" "sync/atomic" @@ -13,7 +15,6 @@ import ( "github.com/Mrs4s/MiraiGo/binary/jce" "github.com/Mrs4s/MiraiGo/client/pb/msf" "github.com/Mrs4s/MiraiGo/client/pb/msg" - "github.com/Mrs4s/MiraiGo/client/pb/oidb" "github.com/Mrs4s/MiraiGo/message" "github.com/pkg/errors" ) @@ -202,8 +203,8 @@ func (c *QQClient) buildGetOfflineMsgRequestPacket() (uint16, []byte) { // RegPrxySvc.PbSyncMsg func (c *QQClient) buildSyncMsgRequestPacket() (uint16, []byte) { seq := c.nextSeq() - oidbReq, _ := proto.Marshal(&oidb.D769RspBody{ - ConfigList: []*oidb.D769ConfigSeq{ + oidbReq, _ := protobuf.Encode(&oidb0x769.RspBody{ + ConfigList: []*oidb0x769.ConfigSeq{ { Type: proto.Uint32(46), Version: proto.Uint32(0), diff --git a/client/translate.go b/client/translate.go index b0df9380..7c807ba2 100644 --- a/client/translate.go +++ b/client/translate.go @@ -2,28 +2,23 @@ package client import ( "github.com/Mrs4s/MiraiGo/internal/packets" - "google.golang.org/protobuf/proto" - - "github.com/Mrs4s/MiraiGo/client/pb/oidb" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb" + "github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x990" + "github.com/Mrs4s/MiraiGo/utils" "github.com/pkg/errors" + "go.dedis.ch/protobuf" ) func (c *QQClient) buildTranslatePacket(src, dst, text string) (uint16, []byte) { seq := c.nextSeq() - body := &oidb.TranslateReqBody{ - BatchTranslateReq: &oidb.BatchTranslateReq{ - SrcLanguage: src, - DstLanguage: dst, - SrcTextList: []string{text}, + body := &oidb0x990.ReqBody{ + BatchTranslateReq: &oidb0x990.BatchTranslateReq{ + SrcLanguage: &src, + DstLanguage: &dst, + SrcBytesTextList: [][]byte{utils.S2B(text)}, }, } - b, _ := proto.Marshal(body) - req := &oidb.OIDBSSOPkg{ - Command: 2448, - ServiceType: 2, - Bodybuffer: b, - } - payload, _ := proto.Marshal(req) + payload := c.packOIDBPackageProto2(2448, 2, body) packet := packets.BuildUniPacket(c.Uin, seq, "OidbSvc.0x990", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload) return seq, packet } @@ -33,11 +28,11 @@ func (c *QQClient) Translate(src, dst, text string) (string, error) { if err != nil { return "", err } - if data, ok := rsp.(*oidb.BatchTranslateRsp); ok { - if data.ErrorCode != 0 { + if data, ok := rsp.(*oidb0x990.BatchTranslateRsp); ok { + if data.GetErrorCode() != 0 { return "", errors.New(string(data.ErrorMsg)) } - return data.DstTextList[0], nil + return string(data.DstBytesTextList[0]), nil } return "", errors.New("decode error") } @@ -45,11 +40,11 @@ func (c *QQClient) Translate(src, dst, text string) (string, error) { // OidbSvc.0x990 func decodeTranslateResponse(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) { pkg := oidb.OIDBSSOPkg{} - rsp := oidb.TranslateRspBody{} - if err := proto.Unmarshal(payload, &pkg); err != nil { + rsp := oidb0x990.RspBody{} + if err := protobuf.Decode(payload, &pkg); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } - if err := proto.Unmarshal(pkg.Bodybuffer, &rsp); err != nil { + if err := protobuf.Decode(pkg.Bodybuffer, &rsp); err != nil { return nil, errors.Wrap(err, "failed to unmarshal protobuf message") } return rsp.BatchTranslateRsp, nil diff --git a/internal/protobuf/data/oidb/oidb0x769/oidb0x769.go b/internal/protobuf/data/oidb/oidb0x769/oidb0x769.go new file mode 100644 index 00000000..1f0f3e84 --- /dev/null +++ b/internal/protobuf/data/oidb/oidb0x769/oidb0x769.go @@ -0,0 +1,492 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: oidb0x769.proto + +package oidb0x769 + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + CPU struct { + Model *string `protobuf:"1,opt"` + Cores *uint32 `protobuf:"2,opt"` + Frequency *uint32 `protobuf:"3,opt"` + } + + Camera struct { + Primary *uint64 `protobuf:"1,opt"` + Secondary *uint64 `protobuf:"2,opt"` + Flash *bool `protobuf:"3,opt"` + } + + ConfigSeq struct { + Type *uint32 `protobuf:"1,opt"` + Version *uint32 `protobuf:"2,opt"` + } + + Content struct { + TaskId *uint32 `protobuf:"1,opt"` + Compress *uint32 `protobuf:"2,opt"` + Content []byte `protobuf:"10,opt"` + } + + DeviceInfo struct { + Brand *string `protobuf:"1,opt"` + Model *string `protobuf:"2,opt"` + Os *OS `protobuf:"3,opt"` + Cpu *CPU `protobuf:"4,opt"` + Memory *Memory `protobuf:"5,opt"` + Storage *Storage `protobuf:"6,opt"` + Screen *Screen `protobuf:"7,opt"` + Camera *Camera `protobuf:"8,opt"` + } + + Memory struct { + Total *uint64 `protobuf:"1,opt"` + Process *uint64 `protobuf:"2,opt"` + } + + OS struct { + Type *uint32 `protobuf:"1,opt"` + Version *string `protobuf:"2,opt"` + Sdk *string `protobuf:"3,opt"` + Kernel *string `protobuf:"4,opt"` + Rom *string `protobuf:"5,opt"` + } + + QueryUinPackageUsageReq struct { + Type *uint32 `protobuf:"1,opt"` + UinFileSize *uint64 `protobuf:"2,opt"` + } + + QueryUinPackageUsageRsp struct { + Status *uint32 `protobuf:"1,opt"` + LeftUinNum *uint64 `protobuf:"2,opt"` + MaxUinNum *uint64 `protobuf:"3,opt"` + Proportion *uint32 `protobuf:"4,opt"` + UinPackageUsedList []*UinPackageUsedInfo `protobuf:"10"` + } + + ReqBody struct { + ConfigList []*ConfigSeq `protobuf:"1"` + DeviceInfo *DeviceInfo `protobuf:"2,opt"` + Info *string `protobuf:"3,opt"` + Province *string `protobuf:"4,opt"` + City *string `protobuf:"5,opt"` + ReqDebugMsg *int32 `protobuf:"6,opt"` + QueryUinPackageUsageReq *QueryUinPackageUsageReq `protobuf:"101,opt"` + } + + RspBody struct { + Result *uint32 `protobuf:"1,opt"` + ConfigList []*ConfigSeq `protobuf:"2"` + QueryUinPackageUsageRsp *QueryUinPackageUsageRsp `protobuf:"101,opt"` + } + + Screen struct { + Model *string `protobuf:"1,opt"` + Width *uint32 `protobuf:"2,opt"` + Height *uint32 `protobuf:"3,opt"` + Dpi *uint32 `protobuf:"4,opt"` + MultiTouch *bool `protobuf:"5,opt"` + } + + Storage struct { + Builtin *uint64 `protobuf:"1,opt"` + External *uint64 `protobuf:"2,opt"` + } + + UinPackageUsedInfo struct { + RuleId *uint32 `protobuf:"1,opt"` + Author *string `protobuf:"2,opt"` + Url *string `protobuf:"3,opt"` + UinNum *uint64 `protobuf:"4,opt"` + } +) + +func (x *CPU) GetModel() string { + if x != nil && x.Model != nil { + return *x.Model + } + return "" +} + +func (x *CPU) GetCores() uint32 { + if x != nil && x.Cores != nil { + return *x.Cores + } + return 0 +} + +func (x *CPU) GetFrequency() uint32 { + if x != nil && x.Frequency != nil { + return *x.Frequency + } + return 0 +} + +func (x *CPU) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *Camera) GetPrimary() uint64 { + if x != nil && x.Primary != nil { + return *x.Primary + } + return 0 +} + +func (x *Camera) GetSecondary() uint64 { + if x != nil && x.Secondary != nil { + return *x.Secondary + } + return 0 +} + +func (x *Camera) GetFlash() bool { + if x != nil && x.Flash != nil { + return *x.Flash + } + return false +} + +func (x *Camera) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *ConfigSeq) GetType() uint32 { + if x != nil && x.Type != nil { + return *x.Type + } + return 0 +} + +func (x *ConfigSeq) GetVersion() uint32 { + if x != nil && x.Version != nil { + return *x.Version + } + return 0 +} + +func (x *ConfigSeq) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *Content) GetTaskId() uint32 { + if x != nil && x.TaskId != nil { + return *x.TaskId + } + return 0 +} + +func (x *Content) GetCompress() uint32 { + if x != nil && x.Compress != nil { + return *x.Compress + } + return 0 +} + +func (x *Content) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *DeviceInfo) GetBrand() string { + if x != nil && x.Brand != nil { + return *x.Brand + } + return "" +} + +func (x *DeviceInfo) GetModel() string { + if x != nil && x.Model != nil { + return *x.Model + } + return "" +} + +func (x *DeviceInfo) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *Memory) GetTotal() uint64 { + if x != nil && x.Total != nil { + return *x.Total + } + return 0 +} + +func (x *Memory) GetProcess() uint64 { + if x != nil && x.Process != nil { + return *x.Process + } + return 0 +} + +func (x *Memory) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *OS) GetType() uint32 { + if x != nil && x.Type != nil { + return *x.Type + } + return 0 +} + +func (x *OS) GetVersion() string { + if x != nil && x.Version != nil { + return *x.Version + } + return "" +} + +func (x *OS) GetSdk() string { + if x != nil && x.Sdk != nil { + return *x.Sdk + } + return "" +} + +func (x *OS) GetKernel() string { + if x != nil && x.Kernel != nil { + return *x.Kernel + } + return "" +} + +func (x *OS) GetRom() string { + if x != nil && x.Rom != nil { + return *x.Rom + } + return "" +} + +func (x *OS) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *QueryUinPackageUsageReq) GetType() uint32 { + if x != nil && x.Type != nil { + return *x.Type + } + return 0 +} + +func (x *QueryUinPackageUsageReq) GetUinFileSize() uint64 { + if x != nil && x.UinFileSize != nil { + return *x.UinFileSize + } + return 0 +} + +func (x *QueryUinPackageUsageReq) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *QueryUinPackageUsageRsp) GetStatus() uint32 { + if x != nil && x.Status != nil { + return *x.Status + } + return 0 +} + +func (x *QueryUinPackageUsageRsp) GetLeftUinNum() uint64 { + if x != nil && x.LeftUinNum != nil { + return *x.LeftUinNum + } + return 0 +} + +func (x *QueryUinPackageUsageRsp) GetMaxUinNum() uint64 { + if x != nil && x.MaxUinNum != nil { + return *x.MaxUinNum + } + return 0 +} + +func (x *QueryUinPackageUsageRsp) GetProportion() uint32 { + if x != nil && x.Proportion != nil { + return *x.Proportion + } + return 0 +} + +func (x *QueryUinPackageUsageRsp) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *ReqBody) GetInfo() string { + if x != nil && x.Info != nil { + return *x.Info + } + return "" +} + +func (x *ReqBody) GetProvince() string { + if x != nil && x.Province != nil { + return *x.Province + } + return "" +} + +func (x *ReqBody) GetCity() string { + if x != nil && x.City != nil { + return *x.City + } + return "" +} + +func (x *ReqBody) GetReqDebugMsg() int32 { + if x != nil && x.ReqDebugMsg != nil { + return *x.ReqDebugMsg + } + return 0 +} + +func (x *ReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *RspBody) GetResult() uint32 { + if x != nil && x.Result != nil { + return *x.Result + } + return 0 +} + +func (x *RspBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *Screen) GetModel() string { + if x != nil && x.Model != nil { + return *x.Model + } + return "" +} + +func (x *Screen) GetWidth() uint32 { + if x != nil && x.Width != nil { + return *x.Width + } + return 0 +} + +func (x *Screen) GetHeight() uint32 { + if x != nil && x.Height != nil { + return *x.Height + } + return 0 +} + +func (x *Screen) GetDpi() uint32 { + if x != nil && x.Dpi != nil { + return *x.Dpi + } + return 0 +} + +func (x *Screen) GetMultiTouch() bool { + if x != nil && x.MultiTouch != nil { + return *x.MultiTouch + } + return false +} + +func (x *Screen) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *Storage) GetBuiltin() uint64 { + if x != nil && x.Builtin != nil { + return *x.Builtin + } + return 0 +} + +func (x *Storage) GetExternal() uint64 { + if x != nil && x.External != nil { + return *x.External + } + return 0 +} + +func (x *Storage) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *UinPackageUsedInfo) GetRuleId() uint32 { + if x != nil && x.RuleId != nil { + return *x.RuleId + } + return 0 +} + +func (x *UinPackageUsedInfo) GetAuthor() string { + if x != nil && x.Author != nil { + return *x.Author + } + return "" +} + +func (x *UinPackageUsedInfo) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url + } + return "" +} + +func (x *UinPackageUsedInfo) GetUinNum() uint64 { + if x != nil && x.UinNum != nil { + return *x.UinNum + } + return 0 +} + +func (x *UinPackageUsedInfo) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} diff --git a/internal/protobuf/data/oidb/oidb0x89a/oidb0x89a.go b/internal/protobuf/data/oidb/oidb0x89a/oidb0x89a.go new file mode 100644 index 00000000..ba089f6f --- /dev/null +++ b/internal/protobuf/data/oidb/oidb0x89a/oidb0x89a.go @@ -0,0 +1,343 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: oidb0x89a.proto + +package oidb0x89a + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + ReqBody struct { + GroupCode *int64 `protobuf:"1,opt"` + StGroupInfo *GroupInfo `protobuf:"2,opt"` + OriginalOperatorUin *int64 `protobuf:"3,opt"` + ReqGroupOpenAppid *int32 `protobuf:"4,opt"` + } + + GroupInfo struct { + GroupExtAdmNum *int32 `protobuf:"1,opt"` + Flag *int32 `protobuf:"2,opt"` + IngGroupName []byte `protobuf:"3,opt"` + IngGroupMemo []byte `protobuf:"4,opt"` + IngGroupFingerMemo []byte `protobuf:"5,opt"` + IngGroupAioSkinUrl []byte `protobuf:"6,opt"` + IngGroupBoardSkinUrl []byte `protobuf:"7,opt"` + IngGroupCoverSkinUrl []byte `protobuf:"8,opt"` + GroupGrade *int32 `protobuf:"9,opt"` + ActiveMemberNum *int32 `protobuf:"10,opt"` + CertificationType *int32 `protobuf:"11,opt"` + IngCertificationText []byte `protobuf:"12,opt"` + IngGroupRichFingerMemo []byte `protobuf:"13,opt"` + StGroupNewguidelines *GroupNewGuidelinesInfo `protobuf:"14,opt"` + GroupFace *int32 `protobuf:"15,opt"` + AddOption *int32 `protobuf:"16,opt"` + ShutupTime *int32 `protobuf:"17,opt"` + GroupTypeFlag *int32 `protobuf:"18,opt"` + StringGroupTag []byte `protobuf:"19,opt"` + MsgGroupGeoInfo *GroupGeoInfo `protobuf:"20,opt"` + GroupClassExt *int32 `protobuf:"21,opt"` + IngGroupClassText []byte `protobuf:"22,opt"` + AppPrivilegeFlag *int32 `protobuf:"23,opt"` + AppPrivilegeMask *int32 `protobuf:"24,opt"` + StGroupExInfo *GroupExInfoOnly `protobuf:"25,opt"` + GroupSecLevel *int32 `protobuf:"26,opt"` + GroupSecLevelInfo *int32 `protobuf:"27,opt"` + SubscriptionUin *int64 `protobuf:"28,opt"` + AllowMemberInvite *int32 `protobuf:"29,opt"` + IngGroupQuestion []byte `protobuf:"30,opt"` + IngGroupAnswer []byte `protobuf:"31,opt"` + GroupFlagext3 *int32 `protobuf:"32,opt"` + GroupFlagext3Mask *int32 `protobuf:"33,opt"` + GroupOpenAppid *int32 `protobuf:"34,opt"` + NoFingerOpenFlag *int32 `protobuf:"35,opt"` + NoCodeFingerOpenFlag *int32 `protobuf:"36,opt"` + RootId *int64 `protobuf:"37,opt"` + MsgLimitFrequency *int32 `protobuf:"38,opt"` + } + + GroupNewGuidelinesInfo struct { + BoolEnabled *bool `protobuf:"1,opt"` + IngContent []byte `protobuf:"2,opt"` + } + + GroupExInfoOnly struct { + TribeId *int32 `protobuf:"1,opt"` + MoneyForAddGroup *int32 `protobuf:"2,opt"` + } + + GroupGeoInfo struct { + CityId *int32 `protobuf:"1,opt"` + Longtitude *int64 `protobuf:"2,opt"` + Latitude *int64 `protobuf:"3,opt"` + IngGeoContent []byte `protobuf:"4,opt"` + PoiId *int64 `protobuf:"5,opt"` + } +) + +func (x *ReqBody) GetGroupCode() int64 { + if x != nil && x.GroupCode != nil { + return *x.GroupCode + } + return 0 +} + +func (x *ReqBody) GetOriginalOperatorUin() int64 { + if x != nil && x.OriginalOperatorUin != nil { + return *x.OriginalOperatorUin + } + return 0 +} + +func (x *ReqBody) GetReqGroupOpenAppid() int32 { + if x != nil && x.ReqGroupOpenAppid != nil { + return *x.ReqGroupOpenAppid + } + return 0 +} + +func (x *ReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *GroupInfo) GetGroupExtAdmNum() int32 { + if x != nil && x.GroupExtAdmNum != nil { + return *x.GroupExtAdmNum + } + return 0 +} + +func (x *GroupInfo) GetFlag() int32 { + if x != nil && x.Flag != nil { + return *x.Flag + } + return 0 +} + +func (x *GroupInfo) GetGroupGrade() int32 { + if x != nil && x.GroupGrade != nil { + return *x.GroupGrade + } + return 0 +} + +func (x *GroupInfo) GetActiveMemberNum() int32 { + if x != nil && x.ActiveMemberNum != nil { + return *x.ActiveMemberNum + } + return 0 +} + +func (x *GroupInfo) GetCertificationType() int32 { + if x != nil && x.CertificationType != nil { + return *x.CertificationType + } + return 0 +} + +func (x *GroupInfo) GetGroupFace() int32 { + if x != nil && x.GroupFace != nil { + return *x.GroupFace + } + return 0 +} + +func (x *GroupInfo) GetAddOption() int32 { + if x != nil && x.AddOption != nil { + return *x.AddOption + } + return 0 +} + +func (x *GroupInfo) GetShutupTime() int32 { + if x != nil && x.ShutupTime != nil { + return *x.ShutupTime + } + return 0 +} + +func (x *GroupInfo) GetGroupTypeFlag() int32 { + if x != nil && x.GroupTypeFlag != nil { + return *x.GroupTypeFlag + } + return 0 +} + +func (x *GroupInfo) GetGroupClassExt() int32 { + if x != nil && x.GroupClassExt != nil { + return *x.GroupClassExt + } + return 0 +} + +func (x *GroupInfo) GetAppPrivilegeFlag() int32 { + if x != nil && x.AppPrivilegeFlag != nil { + return *x.AppPrivilegeFlag + } + return 0 +} + +func (x *GroupInfo) GetAppPrivilegeMask() int32 { + if x != nil && x.AppPrivilegeMask != nil { + return *x.AppPrivilegeMask + } + return 0 +} + +func (x *GroupInfo) GetGroupSecLevel() int32 { + if x != nil && x.GroupSecLevel != nil { + return *x.GroupSecLevel + } + return 0 +} + +func (x *GroupInfo) GetGroupSecLevelInfo() int32 { + if x != nil && x.GroupSecLevelInfo != nil { + return *x.GroupSecLevelInfo + } + return 0 +} + +func (x *GroupInfo) GetSubscriptionUin() int64 { + if x != nil && x.SubscriptionUin != nil { + return *x.SubscriptionUin + } + return 0 +} + +func (x *GroupInfo) GetAllowMemberInvite() int32 { + if x != nil && x.AllowMemberInvite != nil { + return *x.AllowMemberInvite + } + return 0 +} + +func (x *GroupInfo) GetGroupFlagext3() int32 { + if x != nil && x.GroupFlagext3 != nil { + return *x.GroupFlagext3 + } + return 0 +} + +func (x *GroupInfo) GetGroupFlagext3Mask() int32 { + if x != nil && x.GroupFlagext3Mask != nil { + return *x.GroupFlagext3Mask + } + return 0 +} + +func (x *GroupInfo) GetGroupOpenAppid() int32 { + if x != nil && x.GroupOpenAppid != nil { + return *x.GroupOpenAppid + } + return 0 +} + +func (x *GroupInfo) GetNoFingerOpenFlag() int32 { + if x != nil && x.NoFingerOpenFlag != nil { + return *x.NoFingerOpenFlag + } + return 0 +} + +func (x *GroupInfo) GetNoCodeFingerOpenFlag() int32 { + if x != nil && x.NoCodeFingerOpenFlag != nil { + return *x.NoCodeFingerOpenFlag + } + return 0 +} + +func (x *GroupInfo) GetRootId() int64 { + if x != nil && x.RootId != nil { + return *x.RootId + } + return 0 +} + +func (x *GroupInfo) GetMsgLimitFrequency() int32 { + if x != nil && x.MsgLimitFrequency != nil { + return *x.MsgLimitFrequency + } + return 0 +} + +func (x *GroupInfo) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *GroupNewGuidelinesInfo) GetBoolEnabled() bool { + if x != nil && x.BoolEnabled != nil { + return *x.BoolEnabled + } + return false +} + +func (x *GroupNewGuidelinesInfo) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *GroupExInfoOnly) GetTribeId() int32 { + if x != nil && x.TribeId != nil { + return *x.TribeId + } + return 0 +} + +func (x *GroupExInfoOnly) GetMoneyForAddGroup() int32 { + if x != nil && x.MoneyForAddGroup != nil { + return *x.MoneyForAddGroup + } + return 0 +} + +func (x *GroupExInfoOnly) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *GroupGeoInfo) GetCityId() int32 { + if x != nil && x.CityId != nil { + return *x.CityId + } + return 0 +} + +func (x *GroupGeoInfo) GetLongtitude() int64 { + if x != nil && x.Longtitude != nil { + return *x.Longtitude + } + return 0 +} + +func (x *GroupGeoInfo) GetLatitude() int64 { + if x != nil && x.Latitude != nil { + return *x.Latitude + } + return 0 +} + +func (x *GroupGeoInfo) GetPoiId() int64 { + if x != nil && x.PoiId != nil { + return *x.PoiId + } + return 0 +} + +func (x *GroupGeoInfo) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} diff --git a/internal/protobuf/data/oidb/oidb0x8a0/oidb0x8a0.go b/internal/protobuf/data/oidb/oidb0x8a0/oidb0x8a0.go new file mode 100644 index 00000000..910947de --- /dev/null +++ b/internal/protobuf/data/oidb/oidb0x8a0/oidb0x8a0.go @@ -0,0 +1,120 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: oidb0x8a0.proto + +package oidb0x8a0 + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + RspBody struct { + OptUint64GroupCode *int64 `protobuf:"1,opt"` + MsgKickResult []*KickResult `protobuf:"2"` + } + + KickResult struct { + OptUint32Result *int32 `protobuf:"1,opt"` + OptUint64MemberUin *int64 `protobuf:"2,opt"` + } + + KickMemberInfo struct { + OptUint32Operate *int32 `protobuf:"1,opt"` + OptUint64MemberUin *int64 `protobuf:"2,opt"` + OptUint32Flag *int32 `protobuf:"3,opt"` + OptBytesMsg []byte `protobuf:"4,opt"` + } + + ReqBody struct { + OptUint64GroupCode *int64 `protobuf:"1,opt"` + MsgKickList []*KickMemberInfo `protobuf:"2"` + KickList []int64 `protobuf:"3"` + KickFlag *int32 `protobuf:"4,opt"` + KickMsg []byte `protobuf:"5,opt"` + } +) + +func (x *RspBody) GetOptUint64GroupCode() int64 { + if x != nil && x.OptUint64GroupCode != nil { + return *x.OptUint64GroupCode + } + return 0 +} + +func (x *RspBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *KickResult) GetOptUint32Result() int32 { + if x != nil && x.OptUint32Result != nil { + return *x.OptUint32Result + } + return 0 +} + +func (x *KickResult) GetOptUint64MemberUin() int64 { + if x != nil && x.OptUint64MemberUin != nil { + return *x.OptUint64MemberUin + } + return 0 +} + +func (x *KickResult) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *KickMemberInfo) GetOptUint32Operate() int32 { + if x != nil && x.OptUint32Operate != nil { + return *x.OptUint32Operate + } + return 0 +} + +func (x *KickMemberInfo) GetOptUint64MemberUin() int64 { + if x != nil && x.OptUint64MemberUin != nil { + return *x.OptUint64MemberUin + } + return 0 +} + +func (x *KickMemberInfo) GetOptUint32Flag() int32 { + if x != nil && x.OptUint32Flag != nil { + return *x.OptUint32Flag + } + return 0 +} + +func (x *KickMemberInfo) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *ReqBody) GetOptUint64GroupCode() int64 { + if x != nil && x.OptUint64GroupCode != nil { + return *x.OptUint64GroupCode + } + return 0 +} + +func (x *ReqBody) GetKickFlag() int32 { + if x != nil && x.KickFlag != nil { + return *x.KickFlag + } + return 0 +} + +func (x *ReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} diff --git a/internal/protobuf/data/oidb/oidb0x990/oidb0x990.go b/internal/protobuf/data/oidb/oidb0x990/oidb0x990.go new file mode 100644 index 00000000..a2c2cb15 --- /dev/null +++ b/internal/protobuf/data/oidb/oidb0x990/oidb0x990.go @@ -0,0 +1,169 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: oidb0x990.proto + +package oidb0x990 + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + BatchTranslateReq struct { + SrcLanguage *string `protobuf:"1,opt"` + DstLanguage *string `protobuf:"2,opt"` + SrcBytesTextList [][]byte `protobuf:"3"` + } + + BatchTranslateRsp struct { + ErrorCode *int32 `protobuf:"1,opt"` + ErrorMsg []byte `protobuf:"2,opt"` + SrcLanguage *string `protobuf:"3,opt"` + DstLanguage *string `protobuf:"4,opt"` + SrcBytesTextList [][]byte `protobuf:"5"` + DstBytesTextList [][]byte `protobuf:"6"` + } + + ReqBody struct { + TranslateReq *TranslateReq `protobuf:"1,opt"` + BatchTranslateReq *BatchTranslateReq `protobuf:"2,opt"` + } + + RspBody struct { + TranslateRsp *TranslateRsp `protobuf:"1,opt"` + BatchTranslateRsp *BatchTranslateRsp `protobuf:"2,opt"` + } + + TranslateReq struct { + Text []byte `protobuf:"1,opt"` + Type *int32 `protobuf:"2,opt"` + SrcLanguage *string `protobuf:"3,opt"` + DstLanguage *string `protobuf:"4,opt"` + } + + TranslateRsp struct { + RetCode *int32 `protobuf:"1,opt"` + Type *int32 `protobuf:"2,opt"` + TransResult []byte `protobuf:"3,opt"` + TextLen *int32 `protobuf:"4,opt"` + } +) + +func (x *BatchTranslateReq) GetSrcLanguage() string { + if x != nil && x.SrcLanguage != nil { + return *x.SrcLanguage + } + return "" +} + +func (x *BatchTranslateReq) GetDstLanguage() string { + if x != nil && x.DstLanguage != nil { + return *x.DstLanguage + } + return "" +} + +func (x *BatchTranslateReq) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *BatchTranslateRsp) GetErrorCode() int32 { + if x != nil && x.ErrorCode != nil { + return *x.ErrorCode + } + return 0 +} + +func (x *BatchTranslateRsp) GetSrcLanguage() string { + if x != nil && x.SrcLanguage != nil { + return *x.SrcLanguage + } + return "" +} + +func (x *BatchTranslateRsp) GetDstLanguage() string { + if x != nil && x.DstLanguage != nil { + return *x.DstLanguage + } + return "" +} + +func (x *BatchTranslateRsp) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *ReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *RspBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *TranslateReq) GetType() int32 { + if x != nil && x.Type != nil { + return *x.Type + } + return 0 +} + +func (x *TranslateReq) GetSrcLanguage() string { + if x != nil && x.SrcLanguage != nil { + return *x.SrcLanguage + } + return "" +} + +func (x *TranslateReq) GetDstLanguage() string { + if x != nil && x.DstLanguage != nil { + return *x.DstLanguage + } + return "" +} + +func (x *TranslateReq) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *TranslateRsp) GetRetCode() int32 { + if x != nil && x.RetCode != nil { + return *x.RetCode + } + return 0 +} + +func (x *TranslateRsp) GetType() int32 { + if x != nil && x.Type != nil { + return *x.Type + } + return 0 +} + +func (x *TranslateRsp) GetTextLen() int32 { + if x != nil && x.TextLen != nil { + return *x.TextLen + } + return 0 +} + +func (x *TranslateRsp) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} diff --git a/internal/protobuf/data/oidb/oidb0xb77/oidb0xb77.go b/internal/protobuf/data/oidb/oidb0xb77/oidb0xb77.go new file mode 100644 index 00000000..d6b6f8c0 --- /dev/null +++ b/internal/protobuf/data/oidb/oidb0xb77/oidb0xb77.go @@ -0,0 +1,247 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: oidb0xb77.proto + +package oidb0xb77 + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + ReqBody struct { + AppId *uint64 `protobuf:"1,opt"` + AppType *uint32 `protobuf:"2,opt"` + MsgStyle *uint32 `protobuf:"3,opt"` + SenderUin *uint64 `protobuf:"4,opt"` + ClientInfo *ClientInfo `protobuf:"5,opt"` + TextMsg *string `protobuf:"6,opt"` + ExtInfo *ExtInfo `protobuf:"7,opt"` + SendType *uint32 `protobuf:"10,opt"` + RecvUin *uint64 `protobuf:"11,opt"` + RichMsgBody *RichMsgBody `protobuf:"12,opt"` + } + + ClientInfo struct { + Platform *uint32 `protobuf:"1,opt"` + SdkVersion *string `protobuf:"2,opt"` + AndroidPackageName *string `protobuf:"3,opt"` + AndroidSignature *string `protobuf:"4,opt"` + IosBundleId *string `protobuf:"5,opt"` + PcSign *string `protobuf:"6,opt"` + } + + ExtInfo struct { + CustomFeatureId []uint32 `protobuf:"11"` + ApnsWording *string `protobuf:"12,opt"` + GroupSaveDbFlag *uint32 `protobuf:"13,opt"` + ReceiverAppId *uint32 `protobuf:"14,opt"` + MsgSeq *uint64 `protobuf:"15,opt"` + } + + RichMsgBody struct { + Title *string `protobuf:"10,opt"` + Summary *string `protobuf:"11,opt"` + Brief *string `protobuf:"12,opt"` + Url *string `protobuf:"13,opt"` + PictureUrl *string `protobuf:"14,opt"` + Action *string `protobuf:"15,opt"` + MusicUrl *string `protobuf:"16,opt"` + } +) + +func (x *ReqBody) GetAppId() uint64 { + if x != nil && x.AppId != nil { + return *x.AppId + } + return 0 +} + +func (x *ReqBody) GetAppType() uint32 { + if x != nil && x.AppType != nil { + return *x.AppType + } + return 0 +} + +func (x *ReqBody) GetMsgStyle() uint32 { + if x != nil && x.MsgStyle != nil { + return *x.MsgStyle + } + return 0 +} + +func (x *ReqBody) GetSenderUin() uint64 { + if x != nil && x.SenderUin != nil { + return *x.SenderUin + } + return 0 +} + +func (x *ReqBody) GetTextMsg() string { + if x != nil && x.TextMsg != nil { + return *x.TextMsg + } + return "" +} + +func (x *ReqBody) GetSendType() uint32 { + if x != nil && x.SendType != nil { + return *x.SendType + } + return 0 +} + +func (x *ReqBody) GetRecvUin() uint64 { + if x != nil && x.RecvUin != nil { + return *x.RecvUin + } + return 0 +} + +func (x *ReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *ClientInfo) GetPlatform() uint32 { + if x != nil && x.Platform != nil { + return *x.Platform + } + return 0 +} + +func (x *ClientInfo) GetSdkVersion() string { + if x != nil && x.SdkVersion != nil { + return *x.SdkVersion + } + return "" +} + +func (x *ClientInfo) GetAndroidPackageName() string { + if x != nil && x.AndroidPackageName != nil { + return *x.AndroidPackageName + } + return "" +} + +func (x *ClientInfo) GetAndroidSignature() string { + if x != nil && x.AndroidSignature != nil { + return *x.AndroidSignature + } + return "" +} + +func (x *ClientInfo) GetIosBundleId() string { + if x != nil && x.IosBundleId != nil { + return *x.IosBundleId + } + return "" +} + +func (x *ClientInfo) GetPcSign() string { + if x != nil && x.PcSign != nil { + return *x.PcSign + } + return "" +} + +func (x *ClientInfo) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *ExtInfo) GetApnsWording() string { + if x != nil && x.ApnsWording != nil { + return *x.ApnsWording + } + return "" +} + +func (x *ExtInfo) GetGroupSaveDbFlag() uint32 { + if x != nil && x.GroupSaveDbFlag != nil { + return *x.GroupSaveDbFlag + } + return 0 +} + +func (x *ExtInfo) GetReceiverAppId() uint32 { + if x != nil && x.ReceiverAppId != nil { + return *x.ReceiverAppId + } + return 0 +} + +func (x *ExtInfo) GetMsgSeq() uint64 { + if x != nil && x.MsgSeq != nil { + return *x.MsgSeq + } + return 0 +} + +func (x *ExtInfo) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *RichMsgBody) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title + } + return "" +} + +func (x *RichMsgBody) GetSummary() string { + if x != nil && x.Summary != nil { + return *x.Summary + } + return "" +} + +func (x *RichMsgBody) GetBrief() string { + if x != nil && x.Brief != nil { + return *x.Brief + } + return "" +} + +func (x *RichMsgBody) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url + } + return "" +} + +func (x *RichMsgBody) GetPictureUrl() string { + if x != nil && x.PictureUrl != nil { + return *x.PictureUrl + } + return "" +} + +func (x *RichMsgBody) GetAction() string { + if x != nil && x.Action != nil { + return *x.Action + } + return "" +} + +func (x *RichMsgBody) GetMusicUrl() string { + if x != nil && x.MusicUrl != nil { + return *x.MusicUrl + } + return "" +} + +func (x *RichMsgBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} diff --git a/internal/protobuf/data/oidb/oidb0xbcb/oidb0xbcb.go b/internal/protobuf/data/oidb/oidb0xbcb/oidb0xbcb.go new file mode 100644 index 00000000..bf4d0918 --- /dev/null +++ b/internal/protobuf/data/oidb/oidb0xbcb/oidb0xbcb.go @@ -0,0 +1,372 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: oidb0xbcb.proto + +package oidb0xbcb + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + CheckUrlReq struct { + Url []string `protobuf:"1"` + Refer *string `protobuf:"2,opt"` + Plateform *string `protobuf:"3,opt"` + QqPfTo *string `protobuf:"4,opt"` + Type *uint32 `protobuf:"5,opt"` + From *uint32 `protobuf:"6,opt"` + Chatid *uint64 `protobuf:"7,opt"` + ServiceType *uint64 `protobuf:"8,opt"` + SendUin *uint64 `protobuf:"9,opt"` + ReqType *string `protobuf:"10,opt"` + OriginalUrl *string `protobuf:"11,opt"` + IsArk *bool `protobuf:"12,opt"` + ArkName *string `protobuf:"13,opt"` + IsFinish *bool `protobuf:"14,opt"` + SrcUrls []string `protobuf:"15"` + SrcPlatform *uint32 `protobuf:"16,opt"` + Qua *string `protobuf:"17,opt"` + } + + CheckUrlReqItem struct { + Url *string `protobuf:"1,opt"` + Refer *string `protobuf:"2,opt"` + Plateform *string `protobuf:"3,opt"` + QqPfTo *string `protobuf:"4,opt"` + Type *uint32 `protobuf:"5,opt"` + From *uint32 `protobuf:"6,opt"` + Chatid *uint64 `protobuf:"7,opt"` + ServiceType *uint64 `protobuf:"8,opt"` + SendUin *uint64 `protobuf:"9,opt"` + ReqType *string `protobuf:"10,opt"` + } + + CheckUrlRsp struct { + Results []*UrlCheckResult `protobuf:"1"` + NextReqDuration *uint32 `protobuf:"2,opt"` + } + + ReqBody struct { + NotUseCache *int32 `protobuf:"9,opt"` + CheckUrlReq *CheckUrlReq `protobuf:"10,opt"` + } + + RspBody struct { + Wording *string `protobuf:"1,opt"` + CheckUrlRsp *CheckUrlRsp `protobuf:"10,opt"` + } + + UrlCheckResult struct { + Url *string `protobuf:"1,opt"` + Result *uint32 `protobuf:"2,opt"` + JumpResult *uint32 `protobuf:"3,opt"` + JumpUrl *string `protobuf:"4,opt"` + Level *uint32 `protobuf:"5,opt"` + SubLevel *uint32 `protobuf:"6,opt"` + Umrtype *uint32 `protobuf:"7,opt"` + RetFrom *uint32 `protobuf:"8,opt"` + OperationBit *uint64 `protobuf:"9,opt"` + } +) + +func (x *CheckUrlReq) GetRefer() string { + if x != nil && x.Refer != nil { + return *x.Refer + } + return "" +} + +func (x *CheckUrlReq) GetPlateform() string { + if x != nil && x.Plateform != nil { + return *x.Plateform + } + return "" +} + +func (x *CheckUrlReq) GetQqPfTo() string { + if x != nil && x.QqPfTo != nil { + return *x.QqPfTo + } + return "" +} + +func (x *CheckUrlReq) GetType() uint32 { + if x != nil && x.Type != nil { + return *x.Type + } + return 0 +} + +func (x *CheckUrlReq) GetFrom() uint32 { + if x != nil && x.From != nil { + return *x.From + } + return 0 +} + +func (x *CheckUrlReq) GetChatid() uint64 { + if x != nil && x.Chatid != nil { + return *x.Chatid + } + return 0 +} + +func (x *CheckUrlReq) GetServiceType() uint64 { + if x != nil && x.ServiceType != nil { + return *x.ServiceType + } + return 0 +} + +func (x *CheckUrlReq) GetSendUin() uint64 { + if x != nil && x.SendUin != nil { + return *x.SendUin + } + return 0 +} + +func (x *CheckUrlReq) GetReqType() string { + if x != nil && x.ReqType != nil { + return *x.ReqType + } + return "" +} + +func (x *CheckUrlReq) GetOriginalUrl() string { + if x != nil && x.OriginalUrl != nil { + return *x.OriginalUrl + } + return "" +} + +func (x *CheckUrlReq) GetIsArk() bool { + if x != nil && x.IsArk != nil { + return *x.IsArk + } + return false +} + +func (x *CheckUrlReq) GetArkName() string { + if x != nil && x.ArkName != nil { + return *x.ArkName + } + return "" +} + +func (x *CheckUrlReq) GetIsFinish() bool { + if x != nil && x.IsFinish != nil { + return *x.IsFinish + } + return false +} + +func (x *CheckUrlReq) GetSrcPlatform() uint32 { + if x != nil && x.SrcPlatform != nil { + return *x.SrcPlatform + } + return 0 +} + +func (x *CheckUrlReq) GetQua() string { + if x != nil && x.Qua != nil { + return *x.Qua + } + return "" +} + +func (x *CheckUrlReq) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *CheckUrlReqItem) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url + } + return "" +} + +func (x *CheckUrlReqItem) GetRefer() string { + if x != nil && x.Refer != nil { + return *x.Refer + } + return "" +} + +func (x *CheckUrlReqItem) GetPlateform() string { + if x != nil && x.Plateform != nil { + return *x.Plateform + } + return "" +} + +func (x *CheckUrlReqItem) GetQqPfTo() string { + if x != nil && x.QqPfTo != nil { + return *x.QqPfTo + } + return "" +} + +func (x *CheckUrlReqItem) GetType() uint32 { + if x != nil && x.Type != nil { + return *x.Type + } + return 0 +} + +func (x *CheckUrlReqItem) GetFrom() uint32 { + if x != nil && x.From != nil { + return *x.From + } + return 0 +} + +func (x *CheckUrlReqItem) GetChatid() uint64 { + if x != nil && x.Chatid != nil { + return *x.Chatid + } + return 0 +} + +func (x *CheckUrlReqItem) GetServiceType() uint64 { + if x != nil && x.ServiceType != nil { + return *x.ServiceType + } + return 0 +} + +func (x *CheckUrlReqItem) GetSendUin() uint64 { + if x != nil && x.SendUin != nil { + return *x.SendUin + } + return 0 +} + +func (x *CheckUrlReqItem) GetReqType() string { + if x != nil && x.ReqType != nil { + return *x.ReqType + } + return "" +} + +func (x *CheckUrlReqItem) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *CheckUrlRsp) GetNextReqDuration() uint32 { + if x != nil && x.NextReqDuration != nil { + return *x.NextReqDuration + } + return 0 +} + +func (x *CheckUrlRsp) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *ReqBody) GetNotUseCache() int32 { + if x != nil && x.NotUseCache != nil { + return *x.NotUseCache + } + return 0 +} + +func (x *ReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *RspBody) GetWording() string { + if x != nil && x.Wording != nil { + return *x.Wording + } + return "" +} + +func (x *RspBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *UrlCheckResult) GetUrl() string { + if x != nil && x.Url != nil { + return *x.Url + } + return "" +} + +func (x *UrlCheckResult) GetResult() uint32 { + if x != nil && x.Result != nil { + return *x.Result + } + return 0 +} + +func (x *UrlCheckResult) GetJumpResult() uint32 { + if x != nil && x.JumpResult != nil { + return *x.JumpResult + } + return 0 +} + +func (x *UrlCheckResult) GetJumpUrl() string { + if x != nil && x.JumpUrl != nil { + return *x.JumpUrl + } + return "" +} + +func (x *UrlCheckResult) GetLevel() uint32 { + if x != nil && x.Level != nil { + return *x.Level + } + return 0 +} + +func (x *UrlCheckResult) GetSubLevel() uint32 { + if x != nil && x.SubLevel != nil { + return *x.SubLevel + } + return 0 +} + +func (x *UrlCheckResult) GetUmrtype() uint32 { + if x != nil && x.Umrtype != nil { + return *x.Umrtype + } + return 0 +} + +func (x *UrlCheckResult) GetRetFrom() uint32 { + if x != nil && x.RetFrom != nil { + return *x.RetFrom + } + return 0 +} + +func (x *UrlCheckResult) GetOperationBit() uint64 { + if x != nil && x.OperationBit != nil { + return *x.OperationBit + } + return 0 +} + +func (x *UrlCheckResult) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} diff --git a/internal/protobuf/data/oidb/oidb0xd79/oidb0xd79.go b/internal/protobuf/data/oidb/oidb0xd79/oidb0xd79.go new file mode 100644 index 00000000..4a59e0ca --- /dev/null +++ b/internal/protobuf/data/oidb/oidb0xd79/oidb0xd79.go @@ -0,0 +1,110 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: oidb0xd79.proto + +package oidb0xd79 + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + ReqBody struct { + Seq *uint64 `protobuf:"1,opt"` + Uin *uint64 `protobuf:"2,opt"` + CompressFlag *uint32 `protobuf:"3,opt"` + Content []byte `protobuf:"4,opt"` + SenderUin *uint64 `protobuf:"5,opt"` + Qua []byte `protobuf:"6,opt"` + WordExt []byte `protobuf:"7,opt"` + } + + RspBody struct { + Ret *uint32 `protobuf:"1,opt"` + Seq *uint64 `protobuf:"2,opt"` + Uin *uint64 `protobuf:"3,opt"` + CompressFlag *uint32 `protobuf:"4,opt"` + Content *Content `protobuf:"5,opt"` + } + + Content struct { + SliceContent [][]byte `protobuf:"1"` + } +) + +func (x *ReqBody) GetSeq() uint64 { + if x != nil && x.Seq != nil { + return *x.Seq + } + return 0 +} + +func (x *ReqBody) GetUin() uint64 { + if x != nil && x.Uin != nil { + return *x.Uin + } + return 0 +} + +func (x *ReqBody) GetCompressFlag() uint32 { + if x != nil && x.CompressFlag != nil { + return *x.CompressFlag + } + return 0 +} + +func (x *ReqBody) GetSenderUin() uint64 { + if x != nil && x.SenderUin != nil { + return *x.SenderUin + } + return 0 +} + +func (x *ReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *RspBody) GetRet() uint32 { + if x != nil && x.Ret != nil { + return *x.Ret + } + return 0 +} + +func (x *RspBody) GetSeq() uint64 { + if x != nil && x.Seq != nil { + return *x.Seq + } + return 0 +} + +func (x *RspBody) GetUin() uint64 { + if x != nil && x.Uin != nil { + return *x.Uin + } + return 0 +} + +func (x *RspBody) GetCompressFlag() uint32 { + if x != nil && x.CompressFlag != nil { + return *x.CompressFlag + } + return 0 +} + +func (x *RspBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *Content) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} diff --git a/internal/protobuf/data/oidb/oidb0xdad/oidb0xdad.go b/internal/protobuf/data/oidb/oidb0xdad/oidb0xdad.go new file mode 100644 index 00000000..6bf3bb64 --- /dev/null +++ b/internal/protobuf/data/oidb/oidb0xdad/oidb0xdad.go @@ -0,0 +1,105 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: oidb0xdad.proto + +package oidb0xdad + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + ReqBody struct { + Client *int64 `protobuf:"1,opt"` + ProductId *uint64 `protobuf:"2,opt"` + Amount *int64 `protobuf:"3,opt"` + ToUin *uint64 `protobuf:"4,opt"` + Gc *uint64 `protobuf:"5,opt"` + Ip *string `protobuf:"6,opt"` + Version *string `protobuf:"7,opt"` + Sig *LoginSig `protobuf:"8,opt"` + } + + LoginSig struct { + Type *uint32 `protobuf:"1,opt"` + Sig []byte `protobuf:"2,opt"` + Appid *uint32 `protobuf:"3,opt"` + } +) + +func (x *ReqBody) GetClient() int64 { + if x != nil && x.Client != nil { + return *x.Client + } + return 0 +} + +func (x *ReqBody) GetProductId() uint64 { + if x != nil && x.ProductId != nil { + return *x.ProductId + } + return 0 +} + +func (x *ReqBody) GetAmount() int64 { + if x != nil && x.Amount != nil { + return *x.Amount + } + return 0 +} + +func (x *ReqBody) GetToUin() uint64 { + if x != nil && x.ToUin != nil { + return *x.ToUin + } + return 0 +} + +func (x *ReqBody) GetGc() uint64 { + if x != nil && x.Gc != nil { + return *x.Gc + } + return 0 +} + +func (x *ReqBody) GetIp() string { + if x != nil && x.Ip != nil { + return *x.Ip + } + return "" +} + +func (x *ReqBody) GetVersion() string { + if x != nil && x.Version != nil { + return *x.Version + } + return "" +} + +func (x *ReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *LoginSig) GetType() uint32 { + if x != nil && x.Type != nil { + return *x.Type + } + return 0 +} + +func (x *LoginSig) GetAppid() uint32 { + if x != nil && x.Appid != nil { + return *x.Appid + } + return 0 +} + +func (x *LoginSig) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} diff --git a/internal/protobuf/data/oidb/oidb0xe07/oidb0xe07.go b/internal/protobuf/data/oidb/oidb0xe07/oidb0xe07.go new file mode 100644 index 00000000..eb3d8a68 --- /dev/null +++ b/internal/protobuf/data/oidb/oidb0xe07/oidb0xe07.go @@ -0,0 +1,307 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: oidb0xe07.proto + +package oidb0xe07 + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + Coordinate struct { + X *int32 `protobuf:"1,opt"` + Y *int32 `protobuf:"2,opt"` + } + + Language struct { + Language *string `protobuf:"1,opt"` + LanguageDesc *string `protobuf:"2,opt"` + } + + OCRReqBody struct { + ImageUrl *string `protobuf:"1,opt"` + LanguageType *string `protobuf:"2,opt"` + Scene *string `protobuf:"3,opt"` + OriginMd5 *string `protobuf:"10,opt"` + AfterCompressMd5 *string `protobuf:"11,opt"` + AfterCompressFileSize *uint32 `protobuf:"12,opt"` + AfterCompressWeight *uint32 `protobuf:"13,opt"` + AfterCompressHeight *uint32 `protobuf:"14,opt"` + IsCut *bool `protobuf:"15,opt"` + } + + OCRRspBody struct { + TextDetections []*TextDetection `protobuf:"1"` + Language *string `protobuf:"2,opt"` + RequestId *string `protobuf:"3,opt"` + OcrLanguageList []string `protobuf:"101"` + DstTranslateLanguageList []string `protobuf:"102"` + LanguageList []*Language `protobuf:"103"` + AfterCompressWeight *uint32 `protobuf:"111,opt"` + AfterCompressHeight *uint32 `protobuf:"112,opt"` + } + + Polygon struct { + Coordinates []*Coordinate `protobuf:"1"` + } + + ReqBody struct { + Version *uint32 `protobuf:"1,opt"` + Client *uint32 `protobuf:"2,opt"` + Entrance *uint32 `protobuf:"3,opt"` + OcrReqBody *OCRReqBody `protobuf:"10,opt"` + } + + RspBody struct { + RetCode *int32 `protobuf:"1,opt"` + ErrMsg *string `protobuf:"2,opt"` + Wording *string `protobuf:"3,opt"` + OcrRspBody *OCRRspBody `protobuf:"10,opt"` + } + + TextDetection struct { + DetectedText *string `protobuf:"1,opt"` + Confidence *uint32 `protobuf:"2,opt"` + Polygon *Polygon `protobuf:"3,opt"` + AdvancedInfo *string `protobuf:"4,opt"` + } +) + +func (x *Coordinate) GetX() int32 { + if x != nil && x.X != nil { + return *x.X + } + return 0 +} + +func (x *Coordinate) GetY() int32 { + if x != nil && x.Y != nil { + return *x.Y + } + return 0 +} + +func (x *Coordinate) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *Language) GetLanguage() string { + if x != nil && x.Language != nil { + return *x.Language + } + return "" +} + +func (x *Language) GetLanguageDesc() string { + if x != nil && x.LanguageDesc != nil { + return *x.LanguageDesc + } + return "" +} + +func (x *Language) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *OCRReqBody) GetImageUrl() string { + if x != nil && x.ImageUrl != nil { + return *x.ImageUrl + } + return "" +} + +func (x *OCRReqBody) GetLanguageType() string { + if x != nil && x.LanguageType != nil { + return *x.LanguageType + } + return "" +} + +func (x *OCRReqBody) GetScene() string { + if x != nil && x.Scene != nil { + return *x.Scene + } + return "" +} + +func (x *OCRReqBody) GetOriginMd5() string { + if x != nil && x.OriginMd5 != nil { + return *x.OriginMd5 + } + return "" +} + +func (x *OCRReqBody) GetAfterCompressMd5() string { + if x != nil && x.AfterCompressMd5 != nil { + return *x.AfterCompressMd5 + } + return "" +} + +func (x *OCRReqBody) GetAfterCompressFileSize() uint32 { + if x != nil && x.AfterCompressFileSize != nil { + return *x.AfterCompressFileSize + } + return 0 +} + +func (x *OCRReqBody) GetAfterCompressWeight() uint32 { + if x != nil && x.AfterCompressWeight != nil { + return *x.AfterCompressWeight + } + return 0 +} + +func (x *OCRReqBody) GetAfterCompressHeight() uint32 { + if x != nil && x.AfterCompressHeight != nil { + return *x.AfterCompressHeight + } + return 0 +} + +func (x *OCRReqBody) GetIsCut() bool { + if x != nil && x.IsCut != nil { + return *x.IsCut + } + return false +} + +func (x *OCRReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *OCRRspBody) GetLanguage() string { + if x != nil && x.Language != nil { + return *x.Language + } + return "" +} + +func (x *OCRRspBody) GetRequestId() string { + if x != nil && x.RequestId != nil { + return *x.RequestId + } + return "" +} + +func (x *OCRRspBody) GetAfterCompressWeight() uint32 { + if x != nil && x.AfterCompressWeight != nil { + return *x.AfterCompressWeight + } + return 0 +} + +func (x *OCRRspBody) GetAfterCompressHeight() uint32 { + if x != nil && x.AfterCompressHeight != nil { + return *x.AfterCompressHeight + } + return 0 +} + +func (x *OCRRspBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *Polygon) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *ReqBody) GetVersion() uint32 { + if x != nil && x.Version != nil { + return *x.Version + } + return 0 +} + +func (x *ReqBody) GetClient() uint32 { + if x != nil && x.Client != nil { + return *x.Client + } + return 0 +} + +func (x *ReqBody) GetEntrance() uint32 { + if x != nil && x.Entrance != nil { + return *x.Entrance + } + return 0 +} + +func (x *ReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *RspBody) GetRetCode() int32 { + if x != nil && x.RetCode != nil { + return *x.RetCode + } + return 0 +} + +func (x *RspBody) GetErrMsg() string { + if x != nil && x.ErrMsg != nil { + return *x.ErrMsg + } + return "" +} + +func (x *RspBody) GetWording() string { + if x != nil && x.Wording != nil { + return *x.Wording + } + return "" +} + +func (x *RspBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *TextDetection) GetDetectedText() string { + if x != nil && x.DetectedText != nil { + return *x.DetectedText + } + return "" +} + +func (x *TextDetection) GetConfidence() uint32 { + if x != nil && x.Confidence != nil { + return *x.Confidence + } + return 0 +} + +func (x *TextDetection) GetAdvancedInfo() string { + if x != nil && x.AdvancedInfo != nil { + return *x.AdvancedInfo + } + return "" +} + +func (x *TextDetection) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} diff --git a/internal/protobuf/data/oidb/oidb0xeac/oidb0xeac.go b/internal/protobuf/data/oidb/oidb0xeac/oidb0xeac.go new file mode 100644 index 00000000..2970e27b --- /dev/null +++ b/internal/protobuf/data/oidb/oidb0xeac/oidb0xeac.go @@ -0,0 +1,87 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: oidb0xeac.proto + +package oidb0xeac + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + ReqBody struct { + GroupCode *uint64 `protobuf:"1,opt"` + Seq *uint32 `protobuf:"2,opt"` + Random *uint32 `protobuf:"3,opt"` + } + + RspBody struct { + Wording *string `protobuf:"1,opt"` + DigestUin *uint64 `protobuf:"2,opt"` + DigestTime *uint32 `protobuf:"3,opt"` + ErrorCode *uint32 `protobuf:"10,opt"` + } +) + +func (x *ReqBody) GetGroupCode() uint64 { + if x != nil && x.GroupCode != nil { + return *x.GroupCode + } + return 0 +} + +func (x *ReqBody) GetSeq() uint32 { + if x != nil && x.Seq != nil { + return *x.Seq + } + return 0 +} + +func (x *ReqBody) GetRandom() uint32 { + if x != nil && x.Random != nil { + return *x.Random + } + return 0 +} + +func (x *ReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} + +func (x *RspBody) GetWording() string { + if x != nil && x.Wording != nil { + return *x.Wording + } + return "" +} + +func (x *RspBody) GetDigestUin() uint64 { + if x != nil && x.DigestUin != nil { + return *x.DigestUin + } + return 0 +} + +func (x *RspBody) GetDigestTime() uint32 { + if x != nil && x.DigestTime != nil { + return *x.DigestTime + } + return 0 +} + +func (x *RspBody) GetErrorCode() uint32 { + if x != nil && x.ErrorCode != nil { + return *x.ErrorCode + } + return 0 +} + +func (x *RspBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} diff --git a/internal/protobuf/data/oidb/oidb0xed3/oidb0xed3.go b/internal/protobuf/data/oidb/oidb0xed3/oidb0xed3.go new file mode 100644 index 00000000..e0f0c0c3 --- /dev/null +++ b/internal/protobuf/data/oidb/oidb0xed3/oidb0xed3.go @@ -0,0 +1,61 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: oidb0xed3.proto + +package oidb0xed3 + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + ReqBody struct { + ToUin *int64 `protobuf:"1,opt"` + GroupCode *int64 `protobuf:"2,opt"` + MsgSeq *int32 `protobuf:"3,opt"` + MsgRand *int32 `protobuf:"4,opt"` + AioUin *int64 `protobuf:"5,opt"` + } +) + +func (x *ReqBody) GetToUin() int64 { + if x != nil && x.ToUin != nil { + return *x.ToUin + } + return 0 +} + +func (x *ReqBody) GetGroupCode() int64 { + if x != nil && x.GroupCode != nil { + return *x.GroupCode + } + return 0 +} + +func (x *ReqBody) GetMsgSeq() int32 { + if x != nil && x.MsgSeq != nil { + return *x.MsgSeq + } + return 0 +} + +func (x *ReqBody) GetMsgRand() int32 { + if x != nil && x.MsgRand != nil { + return *x.MsgRand + } + return 0 +} + +func (x *ReqBody) GetAioUin() int64 { + if x != nil && x.AioUin != nil { + return *x.AioUin + } + return 0 +} + +func (x *ReqBody) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +} diff --git a/internal/protobuf/data/oidb/sso.go b/internal/protobuf/data/oidb/sso.go new file mode 100644 index 00000000..26099f9b --- /dev/null +++ b/internal/protobuf/data/oidb/sso.go @@ -0,0 +1,62 @@ +// Code generated by Proto2Go.Net. Only used for MiraiGo. DO NOT EDIT. +// Source: sso.proto + +package oidb + +import ( + "github.com/pkg/errors" + "go.dedis.ch/protobuf" +) + +type ( + OIDBSSOPkg struct { + Command *uint32 `protobuf:"1,opt"` + ServiceType *uint32 `protobuf:"2,opt"` + Result *uint32 `protobuf:"3,opt"` + Bodybuffer []byte `protobuf:"4,opt"` + ErrorMsg *string `protobuf:"5,opt"` + ClientVersion *string `protobuf:"6,opt"` + } +) + +func (x *OIDBSSOPkg) GetCommand() uint32 { + if x != nil && x.Command != nil { + return *x.Command + } + return 0 +} + +func (x *OIDBSSOPkg) GetServiceType() uint32 { + if x != nil && x.ServiceType != nil { + return *x.ServiceType + } + return 0 +} + +func (x *OIDBSSOPkg) GetResult() uint32 { + if x != nil && x.Result != nil { + return *x.Result + } + return 0 +} + +func (x *OIDBSSOPkg) GetErrorMsg() string { + if x != nil && x.ErrorMsg != nil { + return *x.ErrorMsg + } + return "" +} + +func (x *OIDBSSOPkg) GetClientVersion() string { + if x != nil && x.ClientVersion != nil { + return *x.ClientVersion + } + return "" +} + +func (x *OIDBSSOPkg) Marshal() ([]byte, error) { + if x == nil { + return nil, errors.New("nil pointer error") + } + return protobuf.Encode(x) +}