mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
feat: move msg&channel proto to yaprotoc gen
This commit is contained in:
parent
0f149a925f
commit
a54f4d82f5
@ -1,6 +1,6 @@
|
|||||||
package client
|
package client
|
||||||
|
|
||||||
import "github.com/Mrs4s/MiraiGo/client/pb/msg"
|
import "github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
|
|
||||||
var privateMsgDecoders = map[int32]func(*QQClient, *msg.Message, *incomingPacketInfo){
|
var privateMsgDecoders = map[int32]func(*QQClient, *msg.Message, *incomingPacketInfo){
|
||||||
9: privateMessageDecoder, 10: privateMessageDecoder, 31: privateMessageDecoder,
|
9: privateMessageDecoder, 10: privateMessageDecoder, 31: privateMessageDecoder,
|
||||||
|
@ -7,18 +7,19 @@ import (
|
|||||||
"math/rand"
|
"math/rand"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/binary/jce"
|
"github.com/Mrs4s/MiraiGo/binary/jce"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb"
|
"github.com/Mrs4s/MiraiGo/client/pb"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x352"
|
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x352"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/profilecard"
|
"github.com/Mrs4s/MiraiGo/client/pb/profilecard"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/qweb"
|
"github.com/Mrs4s/MiraiGo/client/pb/qweb"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/structmsg"
|
"github.com/Mrs4s/MiraiGo/client/pb/structmsg"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/crypto"
|
"github.com/Mrs4s/MiraiGo/internal/crypto"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/packets"
|
"github.com/Mrs4s/MiraiGo/internal/packets"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x89a"
|
"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/oidb0x8a0"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x8fc"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x8fc"
|
||||||
@ -759,7 +760,7 @@ func (c *QQClient) buildGetMessageRequestPacket(flag msg.SyncFlag, msgTime int64
|
|||||||
seq := c.nextSeq()
|
seq := c.nextSeq()
|
||||||
cook := c.syncCookie
|
cook := c.syncCookie
|
||||||
if cook == nil {
|
if cook == nil {
|
||||||
cook, _ = proto.Marshal(&msg.SyncCookie{
|
cook, _ = protobuf.Marshal(&msg.SyncCookie{
|
||||||
Time: &msgTime,
|
Time: &msgTime,
|
||||||
Ran1: proto.Int64(758330138),
|
Ran1: proto.Int64(758330138),
|
||||||
Ran2: proto.Int64(2480149246),
|
Ran2: proto.Int64(2480149246),
|
||||||
@ -780,7 +781,7 @@ func (c *QQClient) buildGetMessageRequestPacket(flag msg.SyncFlag, msgTime int64
|
|||||||
MsgCtrlBuf: []byte{},
|
MsgCtrlBuf: []byte{},
|
||||||
ServerBuf: []byte{},
|
ServerBuf: []byte{},
|
||||||
}
|
}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbGetMsg", 1, c.OutGoingPacketSessionId, []byte{}, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbGetMsg", 1, c.OutGoingPacketSessionId, []byte{}, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
|
@ -7,12 +7,14 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb"
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"google.golang.org/protobuf/proto"
|
|
||||||
|
"github.com/Mrs4s/MiraiGo/client/pb"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
@ -71,7 +73,7 @@ func (c *QQClient) c2cMessageSyncProcessor(rsp *msg.GetMessageResponse, info *in
|
|||||||
_, _ = c.sendAndWait(c.buildDeleteMessageRequestPacket(delItems))
|
_, _ = c.sendAndWait(c.buildDeleteMessageRequestPacket(delItems))
|
||||||
}
|
}
|
||||||
if rsp.GetSyncFlag() != msg.SyncFlag_STOP {
|
if rsp.GetSyncFlag() != msg.SyncFlag_STOP {
|
||||||
c.Debug("continue sync with flag: %v", rsp.SyncFlag.String())
|
c.Debug("continue sync with flag: %v", *rsp.SyncFlag)
|
||||||
seq, pkt := c.buildGetMessageRequestPacket(rsp.GetSyncFlag(), time.Now().Unix())
|
seq, pkt := c.buildGetMessageRequestPacket(rsp.GetSyncFlag(), time.Now().Unix())
|
||||||
_, _ = c.sendAndWait(seq, pkt, info.Params)
|
_, _ = c.sendAndWait(seq, pkt, info.Params)
|
||||||
}
|
}
|
||||||
@ -159,7 +161,7 @@ func tempSessionDecoder(c *QQClient, pMsg *msg.Message, _ *incomingPacketInfo) {
|
|||||||
info := &TempSessionInfo{
|
info := &TempSessionInfo{
|
||||||
Source: 0,
|
Source: 0,
|
||||||
Sender: pMsg.Head.GetFromUin(),
|
Sender: pMsg.Head.GetFromUin(),
|
||||||
sig: pMsg.Head.C2CTmpMsgHead.GetSig(),
|
sig: pMsg.Head.C2CTmpMsgHead.Sig,
|
||||||
client: c,
|
client: c,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -235,10 +237,10 @@ func troopSystemMessageDecoder(c *QQClient, pMsg *msg.Message, info *incomingPac
|
|||||||
if !info.Params.bool("used_reg_proxy") && pMsg.Head.GetMsgType() != 85 && pMsg.Head.GetMsgType() != 36 {
|
if !info.Params.bool("used_reg_proxy") && pMsg.Head.GetMsgType() != 85 && pMsg.Head.GetMsgType() != 36 {
|
||||||
c.exceptAndDispatchGroupSysMsg()
|
c.exceptAndDispatchGroupSysMsg()
|
||||||
}
|
}
|
||||||
if len(pMsg.Body.GetMsgContent()) == 0 {
|
if len(pMsg.Body.MsgContent) == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
reader := binary.NewReader(pMsg.GetBody().GetMsgContent())
|
reader := binary.NewReader(pMsg.Body.MsgContent)
|
||||||
groupCode := uint32(reader.ReadInt32())
|
groupCode := uint32(reader.ReadInt32())
|
||||||
if info := c.FindGroup(int64(groupCode)); info != nil && pMsg.Head.GetGroupName() != "" && info.Name != pMsg.Head.GetGroupName() {
|
if info := c.FindGroup(int64(groupCode)); info != nil && pMsg.Head.GetGroupName() != "" && info.Name != pMsg.Head.GetGroupName() {
|
||||||
c.Debug("group %v name updated. %v -> %v", groupCode, info.Name, pMsg.Head.GetGroupName())
|
c.Debug("group %v name updated. %v -> %v", groupCode, info.Name, pMsg.Head.GetGroupName())
|
||||||
@ -251,7 +253,7 @@ func msgType0x211Decoder(c *QQClient, pMsg *msg.Message, info *incomingPacketInf
|
|||||||
tempSessionDecoder(c, pMsg, info)
|
tempSessionDecoder(c, pMsg, info)
|
||||||
}
|
}
|
||||||
sub4 := msg.SubMsgType0X4Body{}
|
sub4 := msg.SubMsgType0X4Body{}
|
||||||
if err := proto.Unmarshal(pMsg.Body.MsgContent, &sub4); err != nil {
|
if err := protobuf.Unmarshal(pMsg.Body.MsgContent, &sub4); err != nil {
|
||||||
err = errors.Wrap(err, "unmarshal sub msg 0x4 error")
|
err = errors.Wrap(err, "unmarshal sub msg 0x4 error")
|
||||||
c.Error("unmarshal sub msg 0x4 error: %v", err)
|
c.Error("unmarshal sub msg 0x4 error: %v", err)
|
||||||
return
|
return
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
package client
|
package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -18,7 +18,7 @@ import (
|
|||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/binary/jce"
|
"github.com/Mrs4s/MiraiGo/binary/jce"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/message"
|
"github.com/Mrs4s/MiraiGo/message"
|
||||||
"github.com/Mrs4s/MiraiGo/utils"
|
"github.com/Mrs4s/MiraiGo/utils"
|
||||||
)
|
)
|
||||||
@ -556,10 +556,10 @@ func (c *QQClient) GetForwardMessage(resID string) *message.ForwardMessage {
|
|||||||
item = iter
|
item = iter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if item == nil {
|
if item == nil || item.Buffer == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
for _, m := range item.GetBuffer().GetMsg() {
|
for _, m := range item.Buffer.Msg {
|
||||||
ret.Nodes = append(ret.Nodes, &message.ForwardNode{
|
ret.Nodes = append(ret.Nodes, &message.ForwardNode{
|
||||||
SenderId: m.Head.GetFromUin(),
|
SenderId: m.Head.GetFromUin(),
|
||||||
SenderName: func() string {
|
SenderName: func() string {
|
||||||
@ -581,11 +581,11 @@ func (c *QQClient) DownloadForwardMessage(resId string) *message.ForwardElement
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
multiMsg := i.(*msg.PbMultiMsgTransmit)
|
multiMsg := i.(*msg.PbMultiMsgTransmit)
|
||||||
if multiMsg.GetPbItemList() == nil {
|
if multiMsg.PbItemList == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
var pv string
|
var pv string
|
||||||
for i := 0; i < int(math.Min(4, float64(len(multiMsg.GetMsg())))); i++ {
|
for i := 0; i < int(math.Min(4, float64(len(multiMsg.Msg)))); i++ {
|
||||||
m := multiMsg.Msg[i]
|
m := multiMsg.Msg[i]
|
||||||
pv += fmt.Sprintf(`<title size="26" color="#777777">%s: %s</title>`,
|
pv += fmt.Sprintf(`<title size="26" color="#777777">%s: %s</title>`,
|
||||||
func() string {
|
func() string {
|
||||||
@ -595,15 +595,15 @@ func (c *QQClient) DownloadForwardMessage(resId string) *message.ForwardElement
|
|||||||
return m.Head.GetFromNick()
|
return m.Head.GetFromNick()
|
||||||
}(),
|
}(),
|
||||||
message.ToReadableString(
|
message.ToReadableString(
|
||||||
message.ParseMessageElems(multiMsg.Msg[i].GetBody().GetRichText().Elems),
|
message.ParseMessageElems(multiMsg.Msg[i].Body.RichText.Elems),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return genForwardTemplate(
|
return genForwardTemplate(
|
||||||
resId, pv, "群聊的聊天记录", "[聊天记录]", "聊天记录",
|
resId, pv, "群聊的聊天记录", "[聊天记录]", "聊天记录",
|
||||||
fmt.Sprintf("查看 %d 条转发消息", len(multiMsg.GetMsg())),
|
fmt.Sprintf("查看 %d 条转发消息", len(multiMsg.Msg)),
|
||||||
time.Now().UnixNano(),
|
time.Now().UnixNano(),
|
||||||
multiMsg.GetPbItemList(),
|
multiMsg.PbItemList,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,10 +19,10 @@ import (
|
|||||||
"github.com/Mrs4s/MiraiGo/client/pb"
|
"github.com/Mrs4s/MiraiGo/client/pb"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x352"
|
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x352"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x6ff"
|
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x6ff"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/profilecard"
|
"github.com/Mrs4s/MiraiGo/client/pb/profilecard"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/qweb"
|
"github.com/Mrs4s/MiraiGo/client/pb/qweb"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/structmsg"
|
"github.com/Mrs4s/MiraiGo/client/pb/structmsg"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0xd79"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0xd79"
|
||||||
"github.com/Mrs4s/MiraiGo/utils"
|
"github.com/Mrs4s/MiraiGo/utils"
|
||||||
@ -377,7 +377,7 @@ func decodePushReqPacket(c *QQClient, _ *incomingPacketInfo, payload []byte) (in
|
|||||||
// MessageSvc.PbGetMsg
|
// MessageSvc.PbGetMsg
|
||||||
func decodeMessageSvcPacket(c *QQClient, info *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeMessageSvcPacket(c *QQClient, info *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
rsp := msg.GetMessageResponse{}
|
rsp := msg.GetMessageResponse{}
|
||||||
err := proto.Unmarshal(payload, &rsp)
|
err := protobuf.Unmarshal(payload, &rsp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
@ -645,7 +645,7 @@ func decodeOffPicUpResponse(_ *QQClient, _ *incomingPacketInfo, payload []byte)
|
|||||||
// OnlinePush.PbPushTransMsg
|
// OnlinePush.PbPushTransMsg
|
||||||
func decodeOnlinePushTransPacket(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeOnlinePushTransPacket(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
info := msg.TransMsgInfo{}
|
info := msg.TransMsgInfo{}
|
||||||
err := proto.Unmarshal(payload, &info)
|
err := protobuf.Unmarshal(payload, &info)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ import (
|
|||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/binary/jce"
|
"github.com/Mrs4s/MiraiGo/binary/jce"
|
||||||
devinfo "github.com/Mrs4s/MiraiGo/client/pb"
|
devinfo "github.com/Mrs4s/MiraiGo/client/pb"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb"
|
||||||
proto2 "github.com/Mrs4s/MiraiGo/internal/protobuf/proto"
|
proto2 "github.com/Mrs4s/MiraiGo/internal/protobuf/proto"
|
||||||
"github.com/Mrs4s/MiraiGo/message"
|
"github.com/Mrs4s/MiraiGo/message"
|
||||||
@ -670,7 +670,7 @@ func (c *QQClient) packOIDBPackageProto2(cmd, serviceType uint32, msg proto2.Mes
|
|||||||
return c.packOIDBPackage(cmd, serviceType, b)
|
return c.packOIDBPackage(cmd, serviceType, b)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *QQClient) unpackOIDBPackage(buff []byte, payload proto.Message) error {
|
func (c *QQClient) unpackOIDBPackage(buff []byte, payload interface{}) error {
|
||||||
pkg := new(oidb.OIDBSSOPkg)
|
pkg := new(oidb.OIDBSSOPkg)
|
||||||
if err := protobuf.Unmarshal(buff, pkg); err != nil {
|
if err := protobuf.Unmarshal(buff, pkg); err != nil {
|
||||||
return errors.Wrap(err, "failed to unmarshal protobuf message")
|
return errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
@ -678,7 +678,7 @@ func (c *QQClient) unpackOIDBPackage(buff []byte, payload proto.Message) error {
|
|||||||
if pkg.GetResult() != 0 {
|
if pkg.GetResult() != 0 {
|
||||||
return errors.Errorf("oidb result unsuccessful: %v msg: %v", pkg.GetResult(), pkg.GetErrorMsg())
|
return errors.Errorf("oidb result unsuccessful: %v msg: %v", pkg.GetResult(), pkg.GetErrorMsg())
|
||||||
}
|
}
|
||||||
if err := proto.Unmarshal(pkg.Bodybuffer, payload); err != nil {
|
if err := protobuf.Unmarshal(pkg.Bodybuffer, payload); err != nil {
|
||||||
return errors.Wrap(err, "failed to unmarshal protobuf message")
|
return errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
@ -16,9 +16,9 @@ import (
|
|||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/longmsg"
|
"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/multimsg"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/packets"
|
"github.com/Mrs4s/MiraiGo/internal/packets"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb"
|
"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/oidb0x8a7"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x8fc"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x8fc"
|
||||||
@ -267,7 +267,7 @@ func (c *QQClient) buildGroupSendingPacket(groupCode int64, r, pkgNum, pkgIndex,
|
|||||||
return nil
|
return nil
|
||||||
}(),
|
}(),
|
||||||
}
|
}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbSendMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbSendMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
@ -280,7 +280,7 @@ func (c *QQClient) buildGetGroupMsgRequest(groupCode, beginSeq, endSeq int64) (u
|
|||||||
EndSeq: proto.Uint64(uint64(endSeq)),
|
EndSeq: proto.Uint64(uint64(endSeq)),
|
||||||
PublicGroup: proto.Bool(false),
|
PublicGroup: proto.Bool(false),
|
||||||
}
|
}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbGetGroupMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbGetGroupMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
@ -301,7 +301,7 @@ func (c *QQClient) buildAtAllRemainRequestPacket(groupCode int64) (uint16, []byt
|
|||||||
// OnlinePush.PbPushGroupMsg
|
// OnlinePush.PbPushGroupMsg
|
||||||
func decodeGroupMessagePacket(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeGroupMessagePacket(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
pkt := msg.PushMessagePacket{}
|
pkt := msg.PushMessagePacket{}
|
||||||
err := proto.Unmarshal(payload, &pkt)
|
err := protobuf.Unmarshal(payload, &pkt)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
@ -342,7 +342,7 @@ func decodeGroupMessagePacket(c *QQClient, _ *incomingPacketInfo, payload []byte
|
|||||||
|
|
||||||
func decodeMsgSendResponse(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeMsgSendResponse(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
rsp := msg.SendMessageResponse{}
|
rsp := msg.SendMessageResponse{}
|
||||||
if err := proto.Unmarshal(payload, &rsp); err != nil {
|
if err := protobuf.Unmarshal(payload, &rsp); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
switch rsp.GetResult() {
|
switch rsp.GetResult() {
|
||||||
@ -357,7 +357,7 @@ func decodeMsgSendResponse(c *QQClient, _ *incomingPacketInfo, payload []byte) (
|
|||||||
|
|
||||||
func decodeGetGroupMsgResponse(c *QQClient, info *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeGetGroupMsgResponse(c *QQClient, info *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
rsp := msg.GetGroupMsgResp{}
|
rsp := msg.GetGroupMsgResp{}
|
||||||
if err := proto.Unmarshal(payload, &rsp); err != nil {
|
if err := protobuf.Unmarshal(payload, &rsp); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
if rsp.GetResult() != 0 {
|
if rsp.GetResult() != 0 {
|
||||||
|
@ -3,12 +3,14 @@ package client
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/channel"
|
|
||||||
"github.com/Mrs4s/MiraiGo/internal/packets"
|
|
||||||
"github.com/Mrs4s/MiraiGo/utils"
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/packets"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/channel"
|
||||||
|
"github.com/Mrs4s/MiraiGo/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
@ -346,7 +348,7 @@ func (s *GuildService) fetchChannelListState(guildId uint64, channels []*Channel
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
pkg := new(oidb.OIDBSSOPkg)
|
pkg := new(oidb.OIDBSSOPkg)
|
||||||
if err = proto.Unmarshal(rsp, pkg); err != nil {
|
if err = protobuf.Unmarshal(rsp, pkg); err != nil {
|
||||||
return //nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return //nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -391,7 +393,7 @@ func (c *QQClient) syncChannelFirstView() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
firstViewRsp := new(channel.FirstViewRsp)
|
firstViewRsp := new(channel.FirstViewRsp)
|
||||||
if err = proto.Unmarshal(rsp, firstViewRsp); err != nil {
|
if err = protobuf.Unmarshal(rsp, firstViewRsp); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
c.GuildService.TinyId = firstViewRsp.GetSelfTinyid()
|
c.GuildService.TinyId = firstViewRsp.GetSelfTinyid()
|
||||||
@ -411,14 +413,14 @@ func (c *QQClient) buildSyncChannelFirstViewPacket() (uint16, []byte) {
|
|||||||
Seq: proto.Uint32(0),
|
Seq: proto.Uint32(0),
|
||||||
DirectMessageFlag: proto.Uint32(1),
|
DirectMessageFlag: proto.Uint32(1),
|
||||||
}
|
}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "trpc.group_pro.synclogic.SyncLogic.SyncFirstView", 1, c.OutGoingPacketSessionId, []byte{}, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "trpc.group_pro.synclogic.SyncLogic.SyncFirstView", 1, c.OutGoingPacketSessionId, []byte{}, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
|
|
||||||
func decodeGuildPushFirstView(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeGuildPushFirstView(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
firstViewMsg := new(channel.FirstViewMsg)
|
firstViewMsg := new(channel.FirstViewMsg)
|
||||||
if err := proto.Unmarshal(payload, firstViewMsg); err != nil {
|
if err := protobuf.Unmarshal(payload, firstViewMsg); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
if len(firstViewMsg.GuildNodes) > 0 {
|
if len(firstViewMsg.GuildNodes) > 0 {
|
||||||
@ -436,7 +438,7 @@ func decodeGuildPushFirstView(c *QQClient, _ *incomingPacketInfo, payload []byte
|
|||||||
c.Warning("waring: fetch guild %v channel error %v. will use sync node to fill channel list field", guild.GuildId, err)
|
c.Warning("waring: fetch guild %v channel error %v. will use sync node to fill channel list field", guild.GuildId, err)
|
||||||
for _, node := range guild.ChannelNodes {
|
for _, node := range guild.ChannelNodes {
|
||||||
meta := new(channel.ChannelMsgMeta)
|
meta := new(channel.ChannelMsgMeta)
|
||||||
_ = proto.Unmarshal(node.Meta, meta)
|
_ = protobuf.Unmarshal(node.Meta, meta)
|
||||||
info.Channels = append(info.Channels, &ChannelInfo{
|
info.Channels = append(info.Channels, &ChannelInfo{
|
||||||
ChannelId: node.GetChannelId(),
|
ChannelId: node.GetChannelId(),
|
||||||
ChannelName: utils.B2S(node.ChannelName),
|
ChannelName: utils.B2S(node.ChannelName),
|
||||||
|
@ -3,11 +3,13 @@ package client
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/channel"
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
|
||||||
"github.com/Mrs4s/MiraiGo/internal/packets"
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"google.golang.org/protobuf/proto"
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
|
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/packets"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/channel"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -16,7 +18,7 @@ func init() {
|
|||||||
|
|
||||||
func decodeGuildEventFlowPacket(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeGuildEventFlowPacket(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
push := new(channel.MsgOnlinePush)
|
push := new(channel.MsgOnlinePush)
|
||||||
if err := proto.Unmarshal(payload, push); err != nil {
|
if err := protobuf.Unmarshal(payload, push); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
for _, m := range push.Msgs {
|
for _, m := range push.Msgs {
|
||||||
@ -55,7 +57,7 @@ func decodeGuildEventFlowPacket(c *QQClient, _ *incomingPacketInfo, payload []by
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
eventBody := new(channel.EventBody)
|
eventBody := new(channel.EventBody)
|
||||||
if err := proto.Unmarshal(common.PbElem, eventBody); err != nil {
|
if err := protobuf.Unmarshal(common.PbElem, eventBody); err != nil {
|
||||||
c.Error("failed to unmarshal guild channel event body: %v", err)
|
c.Error("failed to unmarshal guild channel event body: %v", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -103,7 +105,7 @@ func decodeGuildEventFlowPacket(c *QQClient, _ *incomingPacketInfo, payload []by
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *GuildService) pullRoamMsgByEventFlow(guildId, channelId, beginSeq, endSeq, eventVersion uint64) ([]*channel.ChannelMsgContent, error) {
|
func (s *GuildService) pullRoamMsgByEventFlow(guildId, channelId, beginSeq, endSeq, eventVersion uint64) ([]*channel.ChannelMsgContent, error) {
|
||||||
payload, _ := proto.Marshal(&channel.ChannelMsgReq{
|
payload, _ := protobuf.Marshal(&channel.ChannelMsgReq{
|
||||||
ChannelParam: &channel.ChannelParam{
|
ChannelParam: &channel.ChannelParam{
|
||||||
GuildId: &guildId,
|
GuildId: &guildId,
|
||||||
ChannelId: &channelId,
|
ChannelId: &channelId,
|
||||||
@ -121,7 +123,7 @@ func (s *GuildService) pullRoamMsgByEventFlow(guildId, channelId, beginSeq, endS
|
|||||||
return nil, errors.Wrap(err, "send packet error")
|
return nil, errors.Wrap(err, "send packet error")
|
||||||
}
|
}
|
||||||
msgRsp := new(channel.ChannelMsgRsp)
|
msgRsp := new(channel.ChannelMsgRsp)
|
||||||
if err = proto.Unmarshal(rsp, msgRsp); err != nil {
|
if err = protobuf.Unmarshal(rsp, msgRsp); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
return msgRsp.ChannelMsg.Msgs, nil
|
return msgRsp.ChannelMsg.Msgs, nil
|
||||||
|
@ -5,15 +5,18 @@ import (
|
|||||||
"math/rand"
|
"math/rand"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x388"
|
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x388"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/packets"
|
"github.com/Mrs4s/MiraiGo/internal/packets"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/channel"
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
|
||||||
"github.com/Mrs4s/MiraiGo/message"
|
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/channel"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
|
"github.com/Mrs4s/MiraiGo/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s *GuildService) SendGuildChannelMessage(guildId, channelId uint64, m *message.SendingMessage) error {
|
func (s *GuildService) SendGuildChannelMessage(guildId, channelId uint64, m *message.SendingMessage) error {
|
||||||
@ -37,14 +40,14 @@ func (s *GuildService) SendGuildChannelMessage(guildId, channelId uint64, m *mes
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
seq := s.c.nextSeq()
|
seq := s.c.nextSeq()
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(s.c.Uin, seq, "MsgProxy.SendMsg", 1, s.c.OutGoingPacketSessionId, []byte{}, s.c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(s.c.Uin, seq, "MsgProxy.SendMsg", 1, s.c.OutGoingPacketSessionId, []byte{}, s.c.sigInfo.d2Key, payload)
|
||||||
rsp, err := s.c.sendAndWaitDynamic(seq, packet)
|
rsp, err := s.c.sendAndWaitDynamic(seq, packet)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "send packet error")
|
return errors.Wrap(err, "send packet error")
|
||||||
}
|
}
|
||||||
body := new(channel.DF62RspBody)
|
body := new(channel.DF62RspBody)
|
||||||
if err = proto.Unmarshal(rsp, body); err != nil {
|
if err = protobuf.Unmarshal(rsp, body); err != nil {
|
||||||
return errors.Wrap(err, "failed to unmarshal protobuf message")
|
return errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
if body.GetResult() != 0 {
|
if body.GetResult() != 0 {
|
||||||
@ -56,7 +59,7 @@ func (s *GuildService) SendGuildChannelMessage(guildId, channelId uint64, m *mes
|
|||||||
|
|
||||||
func (s *GuildService) QueryImage(guildId, channelId uint64, hash []byte, size uint64) (*message.GuildImageElement, error) {
|
func (s *GuildService) QueryImage(guildId, channelId uint64, hash []byte, size uint64) (*message.GuildImageElement, error) {
|
||||||
seq := s.c.nextSeq()
|
seq := s.c.nextSeq()
|
||||||
payload, _ := proto.Marshal(&cmd0x388.D388ReqBody{
|
payload, _ := protobuf.Marshal(&cmd0x388.D388ReqBody{
|
||||||
NetType: proto.Uint32(3),
|
NetType: proto.Uint32(3),
|
||||||
Subcmd: proto.Uint32(1),
|
Subcmd: proto.Uint32(1),
|
||||||
TryupImgReq: []*cmd0x388.TryUpImgReq{
|
TryupImgReq: []*cmd0x388.TryUpImgReq{
|
||||||
@ -86,7 +89,7 @@ func (s *GuildService) QueryImage(guildId, channelId uint64, hash []byte, size u
|
|||||||
return nil, errors.Wrap(err, "send packet error")
|
return nil, errors.Wrap(err, "send packet error")
|
||||||
}
|
}
|
||||||
body := new(cmd0x388.D388RspBody)
|
body := new(cmd0x388.D388RspBody)
|
||||||
if err = proto.Unmarshal(rsp, body); err != nil {
|
if err = protobuf.Unmarshal(rsp, body); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
if len(body.TryupImgRsp) == 0 {
|
if len(body.TryupImgRsp) == 0 {
|
||||||
@ -117,10 +120,10 @@ func decodeGuildMessageEmojiReactions(content *channel.ChannelMsgContent) (r []*
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
serv38 := new(msg.MsgElemInfoServtype38)
|
serv38 := new(msg.MsgElemInfoServtype38)
|
||||||
_ = proto.Unmarshal(common.PbElem, serv38)
|
_ = protobuf.Unmarshal(common.PbElem, serv38)
|
||||||
if len(serv38.ReactData) > 0 {
|
if len(serv38.ReactData) > 0 {
|
||||||
cnt := new(channel.MsgCnt)
|
cnt := new(channel.MsgCnt)
|
||||||
_ = proto.Unmarshal(serv38.ReactData, cnt)
|
_ = protobuf.Unmarshal(serv38.ReactData, cnt)
|
||||||
if len(cnt.EmojiReaction) == 0 {
|
if len(cnt.EmojiReaction) == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -154,7 +157,7 @@ func (c *QQClient) parseGuildChannelMessage(msg *channel.ChannelMsgContent) *mes
|
|||||||
Time: int64(msg.Head.ContentHead.GetTime()),
|
Time: int64(msg.Head.ContentHead.GetTime()),
|
||||||
Sender: &message.GuildSender{
|
Sender: &message.GuildSender{
|
||||||
TinyId: msg.Head.RoutingHead.GetFromTinyid(),
|
TinyId: msg.Head.RoutingHead.GetFromTinyid(),
|
||||||
Nickname: string(msg.ExtInfo.GetFromNick()),
|
Nickname: string(msg.ExtInfo.FromNick),
|
||||||
},
|
},
|
||||||
Elements: message.ParseMessageElems(msg.Body.RichText.Elems),
|
Elements: message.ParseMessageElems(msg.Body.RichText.Elems),
|
||||||
}
|
}
|
||||||
|
@ -3,15 +3,18 @@ package client
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/internal/packets"
|
"github.com/Mrs4s/MiraiGo/internal/packets"
|
||||||
|
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/longmsg"
|
"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/multimsg"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/utils"
|
"github.com/Mrs4s/MiraiGo/utils"
|
||||||
"github.com/pkg/errors"
|
|
||||||
"google.golang.org/protobuf/proto"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@ -126,7 +129,7 @@ func decodeMultiApplyDownResponse(_ *QQClient, _ *incomingPacketInfo, payload []
|
|||||||
}
|
}
|
||||||
uc := binary.GZipUncompress(msgContent)
|
uc := binary.GZipUncompress(msgContent)
|
||||||
mt := msg.PbMultiMsgTransmit{}
|
mt := msg.PbMultiMsgTransmit{}
|
||||||
if err = proto.Unmarshal(uc, &mt); err != nil {
|
if err = protobuf.Unmarshal(uc, &mt); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
return &mt, nil
|
return &mt, nil
|
||||||
|
@ -1,822 +0,0 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
||||||
// versions:
|
|
||||||
// protoc-gen-go v1.27.1
|
|
||||||
// protoc v3.14.0
|
|
||||||
// source: pb/channel/MsgResponsesSvr.proto
|
|
||||||
|
|
||||||
package channel
|
|
||||||
|
|
||||||
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 BatchGetMsgRspCountReq struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
GuildMsgList []*GuildMsg `protobuf:"bytes,1,rep,name=guildMsgList" json:"guildMsgList,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *BatchGetMsgRspCountReq) Reset() {
|
|
||||||
*x = BatchGetMsgRspCountReq{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_proto_msgTypes[0]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *BatchGetMsgRspCountReq) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*BatchGetMsgRspCountReq) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *BatchGetMsgRspCountReq) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_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 BatchGetMsgRspCountReq.ProtoReflect.Descriptor instead.
|
|
||||||
func (*BatchGetMsgRspCountReq) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_MsgResponsesSvr_proto_rawDescGZIP(), []int{0}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *BatchGetMsgRspCountReq) GetGuildMsgList() []*GuildMsg {
|
|
||||||
if x != nil {
|
|
||||||
return x.GuildMsgList
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type BatchGetMsgRspCountRsp struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
GuildMsgInfoList []*GuildMsgInfo `protobuf:"bytes,1,rep,name=guildMsgInfoList" json:"guildMsgInfoList,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *BatchGetMsgRspCountRsp) Reset() {
|
|
||||||
*x = BatchGetMsgRspCountRsp{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_proto_msgTypes[1]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *BatchGetMsgRspCountRsp) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*BatchGetMsgRspCountRsp) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *BatchGetMsgRspCountRsp) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_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 BatchGetMsgRspCountRsp.ProtoReflect.Descriptor instead.
|
|
||||||
func (*BatchGetMsgRspCountRsp) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_MsgResponsesSvr_proto_rawDescGZIP(), []int{1}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *BatchGetMsgRspCountRsp) GetGuildMsgInfoList() []*GuildMsgInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.GuildMsgInfoList
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type SvrChannelMsg struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
ChannelId *uint64 `protobuf:"varint,1,opt,name=channelId" json:"channelId,omitempty"`
|
|
||||||
Id []*MsgId `protobuf:"bytes,2,rep,name=id" json:"id,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SvrChannelMsg) Reset() {
|
|
||||||
*x = SvrChannelMsg{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_proto_msgTypes[2]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SvrChannelMsg) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*SvrChannelMsg) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *SvrChannelMsg) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_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 SvrChannelMsg.ProtoReflect.Descriptor instead.
|
|
||||||
func (*SvrChannelMsg) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_MsgResponsesSvr_proto_rawDescGZIP(), []int{2}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SvrChannelMsg) GetChannelId() uint64 {
|
|
||||||
if x != nil && x.ChannelId != nil {
|
|
||||||
return *x.ChannelId
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *SvrChannelMsg) GetId() []*MsgId {
|
|
||||||
if x != nil {
|
|
||||||
return x.Id
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type ChannelMsgInfo struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
ChannelId *uint64 `protobuf:"varint,1,opt,name=channelId" json:"channelId,omitempty"`
|
|
||||||
RespData []*MsgRespData `protobuf:"bytes,2,rep,name=respData" json:"respData,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ChannelMsgInfo) Reset() {
|
|
||||||
*x = ChannelMsgInfo{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_proto_msgTypes[3]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ChannelMsgInfo) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*ChannelMsgInfo) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *ChannelMsgInfo) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_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 ChannelMsgInfo.ProtoReflect.Descriptor instead.
|
|
||||||
func (*ChannelMsgInfo) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_MsgResponsesSvr_proto_rawDescGZIP(), []int{3}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ChannelMsgInfo) GetChannelId() uint64 {
|
|
||||||
if x != nil && x.ChannelId != nil {
|
|
||||||
return *x.ChannelId
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ChannelMsgInfo) GetRespData() []*MsgRespData {
|
|
||||||
if x != nil {
|
|
||||||
return x.RespData
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type EmojiReaction struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
EmojiId *string `protobuf:"bytes,1,opt,name=emojiId" json:"emojiId,omitempty"`
|
|
||||||
EmojiType *uint64 `protobuf:"varint,2,opt,name=emojiType" json:"emojiType,omitempty"`
|
|
||||||
Cnt *uint64 `protobuf:"varint,3,opt,name=cnt" json:"cnt,omitempty"`
|
|
||||||
IsClicked *bool `protobuf:"varint,4,opt,name=isClicked" json:"isClicked,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EmojiReaction) Reset() {
|
|
||||||
*x = EmojiReaction{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_proto_msgTypes[4]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EmojiReaction) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*EmojiReaction) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *EmojiReaction) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_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 EmojiReaction.ProtoReflect.Descriptor instead.
|
|
||||||
func (*EmojiReaction) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_MsgResponsesSvr_proto_rawDescGZIP(), []int{4}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EmojiReaction) GetEmojiId() string {
|
|
||||||
if x != nil && x.EmojiId != nil {
|
|
||||||
return *x.EmojiId
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EmojiReaction) GetEmojiType() uint64 {
|
|
||||||
if x != nil && x.EmojiType != nil {
|
|
||||||
return *x.EmojiType
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EmojiReaction) GetCnt() uint64 {
|
|
||||||
if x != nil && x.Cnt != nil {
|
|
||||||
return *x.Cnt
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *EmojiReaction) GetIsClicked() bool {
|
|
||||||
if x != nil && x.IsClicked != nil {
|
|
||||||
return *x.IsClicked
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
type GuildMsg struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
GuildId *uint64 `protobuf:"varint,1,opt,name=guildId" json:"guildId,omitempty"`
|
|
||||||
ChannelMsgList []*SvrChannelMsg `protobuf:"bytes,2,rep,name=channelMsgList" json:"channelMsgList,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GuildMsg) Reset() {
|
|
||||||
*x = GuildMsg{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_proto_msgTypes[5]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GuildMsg) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*GuildMsg) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *GuildMsg) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_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 GuildMsg.ProtoReflect.Descriptor instead.
|
|
||||||
func (*GuildMsg) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_MsgResponsesSvr_proto_rawDescGZIP(), []int{5}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GuildMsg) GetGuildId() uint64 {
|
|
||||||
if x != nil && x.GuildId != nil {
|
|
||||||
return *x.GuildId
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GuildMsg) GetChannelMsgList() []*SvrChannelMsg {
|
|
||||||
if x != nil {
|
|
||||||
return x.ChannelMsgList
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type GuildMsgInfo struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
GuildId *uint64 `protobuf:"varint,1,opt,name=guildId" json:"guildId,omitempty"`
|
|
||||||
ChannelMsgInfoList []*ChannelMsgInfo `protobuf:"bytes,2,rep,name=channelMsgInfoList" json:"channelMsgInfoList,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GuildMsgInfo) Reset() {
|
|
||||||
*x = GuildMsgInfo{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_proto_msgTypes[6]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GuildMsgInfo) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*GuildMsgInfo) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *GuildMsgInfo) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_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 GuildMsgInfo.ProtoReflect.Descriptor instead.
|
|
||||||
func (*GuildMsgInfo) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_MsgResponsesSvr_proto_rawDescGZIP(), []int{6}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GuildMsgInfo) GetGuildId() uint64 {
|
|
||||||
if x != nil && x.GuildId != nil {
|
|
||||||
return *x.GuildId
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *GuildMsgInfo) GetChannelMsgInfoList() []*ChannelMsgInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.ChannelMsgInfoList
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type MsgCnt struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Id *MsgId `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
|
||||||
EmojiReaction []*EmojiReaction `protobuf:"bytes,2,rep,name=emojiReaction" json:"emojiReaction,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgCnt) Reset() {
|
|
||||||
*x = MsgCnt{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_proto_msgTypes[7]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgCnt) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*MsgCnt) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *MsgCnt) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_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 MsgCnt.ProtoReflect.Descriptor instead.
|
|
||||||
func (*MsgCnt) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_MsgResponsesSvr_proto_rawDescGZIP(), []int{7}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgCnt) GetId() *MsgId {
|
|
||||||
if x != nil {
|
|
||||||
return x.Id
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgCnt) GetEmojiReaction() []*EmojiReaction {
|
|
||||||
if x != nil {
|
|
||||||
return x.EmojiReaction
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type MsgId struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Version *uint64 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
|
|
||||||
Seq *uint64 `protobuf:"varint,2,opt,name=seq" json:"seq,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgId) Reset() {
|
|
||||||
*x = MsgId{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_proto_msgTypes[8]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgId) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*MsgId) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *MsgId) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_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 MsgId.ProtoReflect.Descriptor instead.
|
|
||||||
func (*MsgId) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_MsgResponsesSvr_proto_rawDescGZIP(), []int{8}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgId) GetVersion() uint64 {
|
|
||||||
if x != nil && x.Version != nil {
|
|
||||||
return *x.Version
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgId) GetSeq() uint64 {
|
|
||||||
if x != nil && x.Seq != nil {
|
|
||||||
return *x.Seq
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type MsgRespData struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Id *MsgId `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
|
||||||
Cnt []byte `protobuf:"bytes,2,opt,name=cnt" json:"cnt,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgRespData) Reset() {
|
|
||||||
*x = MsgRespData{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_proto_msgTypes[9]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgRespData) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*MsgRespData) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *MsgRespData) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_MsgResponsesSvr_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 MsgRespData.ProtoReflect.Descriptor instead.
|
|
||||||
func (*MsgRespData) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_MsgResponsesSvr_proto_rawDescGZIP(), []int{9}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgRespData) GetId() *MsgId {
|
|
||||||
if x != nil {
|
|
||||||
return x.Id
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgRespData) GetCnt() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.Cnt
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
var File_pb_channel_MsgResponsesSvr_proto protoreflect.FileDescriptor
|
|
||||||
|
|
||||||
var file_pb_channel_MsgResponsesSvr_proto_rawDesc = []byte{
|
|
||||||
0x0a, 0x20, 0x70, 0x62, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x4d, 0x73, 0x67,
|
|
||||||
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x53, 0x76, 0x72, 0x2e, 0x70, 0x72, 0x6f,
|
|
||||||
0x74, 0x6f, 0x22, 0x47, 0x0a, 0x16, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x73,
|
|
||||||
0x67, 0x52, 0x73, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x2d, 0x0a, 0x0c,
|
|
||||||
0x67, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03,
|
|
||||||
0x28, 0x0b, 0x32, 0x09, 0x2e, 0x47, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x0c, 0x67,
|
|
||||||
0x75, 0x69, 0x6c, 0x64, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x53, 0x0a, 0x16, 0x42,
|
|
||||||
0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x52, 0x73, 0x70, 0x43, 0x6f, 0x75,
|
|
||||||
0x6e, 0x74, 0x52, 0x73, 0x70, 0x12, 0x39, 0x0a, 0x10, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x73,
|
|
||||||
0x67, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
||||||
0x0d, 0x2e, 0x47, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x10,
|
|
||||||
0x67, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74,
|
|
||||||
0x22, 0x45, 0x0a, 0x0d, 0x53, 0x76, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73,
|
|
||||||
0x67, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x18, 0x01,
|
|
||||||
0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12,
|
|
||||||
0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x06, 0x2e, 0x4d, 0x73,
|
|
||||||
0x67, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x22, 0x58, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e, 0x6e,
|
|
||||||
0x65, 0x6c, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61,
|
|
||||||
0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x68,
|
|
||||||
0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x44,
|
|
||||||
0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x4d, 0x73, 0x67, 0x52,
|
|
||||||
0x65, 0x73, 0x70, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x44, 0x61, 0x74,
|
|
||||||
0x61, 0x22, 0x77, 0x0a, 0x0d, 0x45, 0x6d, 0x6f, 0x6a, 0x69, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69,
|
|
||||||
0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x49, 0x64, 0x18, 0x01, 0x20,
|
|
||||||
0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09,
|
|
||||||
0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52,
|
|
||||||
0x09, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6e,
|
|
||||||
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x63, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09,
|
|
||||||
0x69, 0x73, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
|
|
||||||
0x09, 0x69, 0x73, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x65, 0x64, 0x22, 0x5c, 0x0a, 0x08, 0x47, 0x75,
|
|
||||||
0x69, 0x6c, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x49,
|
|
||||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64,
|
|
||||||
0x12, 0x36, 0x0a, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x4c, 0x69,
|
|
||||||
0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x53, 0x76, 0x72, 0x43, 0x68,
|
|
||||||
0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x52, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65,
|
|
||||||
0x6c, 0x4d, 0x73, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x69, 0x0a, 0x0c, 0x47, 0x75, 0x69, 0x6c,
|
|
||||||
0x64, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x6c,
|
|
||||||
0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64,
|
|
||||||
0x49, 0x64, 0x12, 0x3f, 0x0a, 0x12, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67,
|
|
||||||
0x49, 0x6e, 0x66, 0x6f, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f,
|
|
||||||
0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
|
||||||
0x12, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x49, 0x6e, 0x66, 0x6f, 0x4c,
|
|
||||||
0x69, 0x73, 0x74, 0x22, 0x56, 0x0a, 0x06, 0x4d, 0x73, 0x67, 0x43, 0x6e, 0x74, 0x12, 0x16, 0x0a,
|
|
||||||
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x06, 0x2e, 0x4d, 0x73, 0x67, 0x49,
|
|
||||||
0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x0d, 0x65, 0x6d, 0x6f, 0x6a, 0x69, 0x52, 0x65,
|
|
||||||
0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x45,
|
|
||||||
0x6d, 0x6f, 0x6a, 0x69, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0d, 0x65, 0x6d,
|
|
||||||
0x6f, 0x6a, 0x69, 0x52, 0x65, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x33, 0x0a, 0x05, 0x4d,
|
|
||||||
0x73, 0x67, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
|
|
||||||
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x10,
|
|
||||||
0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71,
|
|
||||||
0x22, 0x37, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x70, 0x44, 0x61, 0x74, 0x61, 0x12,
|
|
||||||
0x16, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x06, 0x2e, 0x4d, 0x73,
|
|
||||||
0x67, 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x6e, 0x74, 0x18, 0x02,
|
|
||||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x63, 0x6e, 0x74, 0x42, 0x14, 0x5a, 0x12, 0x70, 0x62, 0x2f,
|
|
||||||
0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x3b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_rawDescOnce sync.Once
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_rawDescData = file_pb_channel_MsgResponsesSvr_proto_rawDesc
|
|
||||||
)
|
|
||||||
|
|
||||||
func file_pb_channel_MsgResponsesSvr_proto_rawDescGZIP() []byte {
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_rawDescOnce.Do(func() {
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_channel_MsgResponsesSvr_proto_rawDescData)
|
|
||||||
})
|
|
||||||
return file_pb_channel_MsgResponsesSvr_proto_rawDescData
|
|
||||||
}
|
|
||||||
|
|
||||||
var file_pb_channel_MsgResponsesSvr_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
|
||||||
var file_pb_channel_MsgResponsesSvr_proto_goTypes = []interface{}{
|
|
||||||
(*BatchGetMsgRspCountReq)(nil), // 0: BatchGetMsgRspCountReq
|
|
||||||
(*BatchGetMsgRspCountRsp)(nil), // 1: BatchGetMsgRspCountRsp
|
|
||||||
(*SvrChannelMsg)(nil), // 2: SvrChannelMsg
|
|
||||||
(*ChannelMsgInfo)(nil), // 3: ChannelMsgInfo
|
|
||||||
(*EmojiReaction)(nil), // 4: EmojiReaction
|
|
||||||
(*GuildMsg)(nil), // 5: GuildMsg
|
|
||||||
(*GuildMsgInfo)(nil), // 6: GuildMsgInfo
|
|
||||||
(*MsgCnt)(nil), // 7: MsgCnt
|
|
||||||
(*MsgId)(nil), // 8: MsgId
|
|
||||||
(*MsgRespData)(nil), // 9: MsgRespData
|
|
||||||
}
|
|
||||||
var file_pb_channel_MsgResponsesSvr_proto_depIdxs = []int32{
|
|
||||||
5, // 0: BatchGetMsgRspCountReq.guildMsgList:type_name -> GuildMsg
|
|
||||||
6, // 1: BatchGetMsgRspCountRsp.guildMsgInfoList:type_name -> GuildMsgInfo
|
|
||||||
8, // 2: SvrChannelMsg.id:type_name -> MsgId
|
|
||||||
9, // 3: ChannelMsgInfo.respData:type_name -> MsgRespData
|
|
||||||
2, // 4: GuildMsg.channelMsgList:type_name -> SvrChannelMsg
|
|
||||||
3, // 5: GuildMsgInfo.channelMsgInfoList:type_name -> ChannelMsgInfo
|
|
||||||
8, // 6: MsgCnt.id:type_name -> MsgId
|
|
||||||
4, // 7: MsgCnt.emojiReaction:type_name -> EmojiReaction
|
|
||||||
8, // 8: MsgRespData.id:type_name -> MsgId
|
|
||||||
9, // [9:9] is the sub-list for method output_type
|
|
||||||
9, // [9:9] is the sub-list for method input_type
|
|
||||||
9, // [9:9] is the sub-list for extension type_name
|
|
||||||
9, // [9:9] is the sub-list for extension extendee
|
|
||||||
0, // [0:9] is the sub-list for field type_name
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() { file_pb_channel_MsgResponsesSvr_proto_init() }
|
|
||||||
func file_pb_channel_MsgResponsesSvr_proto_init() {
|
|
||||||
if File_pb_channel_MsgResponsesSvr_proto != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if !protoimpl.UnsafeEnabled {
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*BatchGetMsgRspCountReq); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*BatchGetMsgRspCountRsp); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*SvrChannelMsg); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*ChannelMsgInfo); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*EmojiReaction); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*GuildMsg); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*GuildMsgInfo); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*MsgCnt); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*MsgId); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*MsgRespData); 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_pb_channel_MsgResponsesSvr_proto_rawDesc,
|
|
||||||
NumEnums: 0,
|
|
||||||
NumMessages: 10,
|
|
||||||
NumExtensions: 0,
|
|
||||||
NumServices: 0,
|
|
||||||
},
|
|
||||||
GoTypes: file_pb_channel_MsgResponsesSvr_proto_goTypes,
|
|
||||||
DependencyIndexes: file_pb_channel_MsgResponsesSvr_proto_depIdxs,
|
|
||||||
MessageInfos: file_pb_channel_MsgResponsesSvr_proto_msgTypes,
|
|
||||||
}.Build()
|
|
||||||
File_pb_channel_MsgResponsesSvr_proto = out.File
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_rawDesc = nil
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_goTypes = nil
|
|
||||||
file_pb_channel_MsgResponsesSvr_proto_depIdxs = nil
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,494 +0,0 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
||||||
// versions:
|
|
||||||
// protoc-gen-go v1.27.1
|
|
||||||
// protoc v3.14.0
|
|
||||||
// source: pb/channel/msgpush.proto
|
|
||||||
|
|
||||||
package channel
|
|
||||||
|
|
||||||
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 FocusInfo struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
ChannelIdList []uint64 `protobuf:"varint,1,rep,name=channelIdList" json:"channelIdList,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *FocusInfo) Reset() {
|
|
||||||
*x = FocusInfo{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_msgpush_proto_msgTypes[0]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *FocusInfo) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*FocusInfo) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *FocusInfo) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_msgpush_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 FocusInfo.ProtoReflect.Descriptor instead.
|
|
||||||
func (*FocusInfo) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_msgpush_proto_rawDescGZIP(), []int{0}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *FocusInfo) GetChannelIdList() []uint64 {
|
|
||||||
if x != nil {
|
|
||||||
return x.ChannelIdList
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type MsgOnlinePush struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Msgs []*ChannelMsgContent `protobuf:"bytes,1,rep,name=msgs" json:"msgs,omitempty"`
|
|
||||||
GeneralFlag *uint32 `protobuf:"varint,2,opt,name=generalFlag" json:"generalFlag,omitempty"`
|
|
||||||
NeedResp *uint32 `protobuf:"varint,3,opt,name=needResp" json:"needResp,omitempty"`
|
|
||||||
ServerBuf []byte `protobuf:"bytes,4,opt,name=serverBuf" json:"serverBuf,omitempty"`
|
|
||||||
CompressFlag *uint32 `protobuf:"varint,5,opt,name=compressFlag" json:"compressFlag,omitempty"`
|
|
||||||
CompressMsg []byte `protobuf:"bytes,6,opt,name=compressMsg" json:"compressMsg,omitempty"`
|
|
||||||
FocusInfo *FocusInfo `protobuf:"bytes,7,opt,name=focusInfo" json:"focusInfo,omitempty"`
|
|
||||||
HugeFlag *uint32 `protobuf:"varint,8,opt,name=hugeFlag" json:"hugeFlag,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgOnlinePush) Reset() {
|
|
||||||
*x = MsgOnlinePush{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_msgpush_proto_msgTypes[1]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgOnlinePush) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*MsgOnlinePush) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *MsgOnlinePush) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_msgpush_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 MsgOnlinePush.ProtoReflect.Descriptor instead.
|
|
||||||
func (*MsgOnlinePush) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_msgpush_proto_rawDescGZIP(), []int{1}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgOnlinePush) GetMsgs() []*ChannelMsgContent {
|
|
||||||
if x != nil {
|
|
||||||
return x.Msgs
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgOnlinePush) GetGeneralFlag() uint32 {
|
|
||||||
if x != nil && x.GeneralFlag != nil {
|
|
||||||
return *x.GeneralFlag
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgOnlinePush) GetNeedResp() uint32 {
|
|
||||||
if x != nil && x.NeedResp != nil {
|
|
||||||
return *x.NeedResp
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgOnlinePush) GetServerBuf() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.ServerBuf
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgOnlinePush) GetCompressFlag() uint32 {
|
|
||||||
if x != nil && x.CompressFlag != nil {
|
|
||||||
return *x.CompressFlag
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgOnlinePush) GetCompressMsg() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.CompressMsg
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgOnlinePush) GetFocusInfo() *FocusInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.FocusInfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgOnlinePush) GetHugeFlag() uint32 {
|
|
||||||
if x != nil && x.HugeFlag != nil {
|
|
||||||
return *x.HugeFlag
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type MsgPushResp struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
ServerBuf []byte `protobuf:"bytes,1,opt,name=serverBuf" json:"serverBuf,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgPushResp) Reset() {
|
|
||||||
*x = MsgPushResp{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_msgpush_proto_msgTypes[2]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgPushResp) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*MsgPushResp) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *MsgPushResp) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_msgpush_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 MsgPushResp.ProtoReflect.Descriptor instead.
|
|
||||||
func (*MsgPushResp) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_msgpush_proto_rawDescGZIP(), []int{2}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgPushResp) GetServerBuf() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.ServerBuf
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type PressMsg struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Msgs []*ChannelMsgContent `protobuf:"bytes,1,rep,name=msgs" json:"msgs,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PressMsg) Reset() {
|
|
||||||
*x = PressMsg{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_msgpush_proto_msgTypes[3]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PressMsg) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PressMsg) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PressMsg) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_msgpush_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 PressMsg.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PressMsg) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_msgpush_proto_rawDescGZIP(), []int{3}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PressMsg) GetMsgs() []*ChannelMsgContent {
|
|
||||||
if x != nil {
|
|
||||||
return x.Msgs
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type ServerBuf struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
SvrIp *uint32 `protobuf:"varint,1,opt,name=svrIp" json:"svrIp,omitempty"`
|
|
||||||
SvrPort *uint32 `protobuf:"varint,2,opt,name=svrPort" json:"svrPort,omitempty"`
|
|
||||||
EchoKey []byte `protobuf:"bytes,3,opt,name=echoKey" json:"echoKey,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ServerBuf) Reset() {
|
|
||||||
*x = ServerBuf{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_msgpush_proto_msgTypes[4]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ServerBuf) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*ServerBuf) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *ServerBuf) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_msgpush_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 ServerBuf.ProtoReflect.Descriptor instead.
|
|
||||||
func (*ServerBuf) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_msgpush_proto_rawDescGZIP(), []int{4}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ServerBuf) GetSvrIp() uint32 {
|
|
||||||
if x != nil && x.SvrIp != nil {
|
|
||||||
return *x.SvrIp
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ServerBuf) GetSvrPort() uint32 {
|
|
||||||
if x != nil && x.SvrPort != nil {
|
|
||||||
return *x.SvrPort
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ServerBuf) GetEchoKey() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.EchoKey
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
var File_pb_channel_msgpush_proto protoreflect.FileDescriptor
|
|
||||||
|
|
||||||
var file_pb_channel_msgpush_proto_rawDesc = []byte{
|
|
||||||
0x0a, 0x18, 0x70, 0x62, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x6d, 0x73, 0x67,
|
|
||||||
0x70, 0x75, 0x73, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x63, 0x68, 0x61, 0x6e,
|
|
||||||
0x6e, 0x65, 0x6c, 0x1a, 0x17, 0x70, 0x62, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2f,
|
|
||||||
0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x31, 0x0a, 0x09,
|
|
||||||
0x46, 0x6f, 0x63, 0x75, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x68, 0x61,
|
|
||||||
0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04,
|
|
||||||
0x52, 0x0d, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x22,
|
|
||||||
0xaf, 0x02, 0x0a, 0x0d, 0x4d, 0x73, 0x67, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x75, 0x73,
|
|
||||||
0x68, 0x12, 0x2e, 0x0a, 0x04, 0x6d, 0x73, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
||||||
0x1a, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65,
|
|
||||||
0x6c, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6d, 0x73, 0x67,
|
|
||||||
0x73, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x46, 0x6c, 0x61, 0x67,
|
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c, 0x46,
|
|
||||||
0x6c, 0x61, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x65, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x18,
|
|
||||||
0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6e, 0x65, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
||||||
0x1c, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x75, 0x66, 0x18, 0x04, 0x20, 0x01,
|
|
||||||
0x28, 0x0c, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x75, 0x66, 0x12, 0x22, 0x0a,
|
|
||||||
0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6c, 0x61, 0x67, 0x18, 0x05, 0x20,
|
|
||||||
0x01, 0x28, 0x0d, 0x52, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x46, 0x6c, 0x61,
|
|
||||||
0x67, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x73, 0x67,
|
|
||||||
0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x73, 0x73,
|
|
||||||
0x4d, 0x73, 0x67, 0x12, 0x30, 0x0a, 0x09, 0x66, 0x6f, 0x63, 0x75, 0x73, 0x49, 0x6e, 0x66, 0x6f,
|
|
||||||
0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
|
|
||||||
0x2e, 0x46, 0x6f, 0x63, 0x75, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x66, 0x6f, 0x63, 0x75,
|
|
||||||
0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x75, 0x67, 0x65, 0x46, 0x6c, 0x61,
|
|
||||||
0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x68, 0x75, 0x67, 0x65, 0x46, 0x6c, 0x61,
|
|
||||||
0x67, 0x22, 0x2b, 0x0a, 0x0b, 0x4d, 0x73, 0x67, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70,
|
|
||||||
0x12, 0x1c, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x75, 0x66, 0x18, 0x01, 0x20,
|
|
||||||
0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x75, 0x66, 0x22, 0x3a,
|
|
||||||
0x0a, 0x08, 0x50, 0x72, 0x65, 0x73, 0x73, 0x4d, 0x73, 0x67, 0x12, 0x2e, 0x0a, 0x04, 0x6d, 0x73,
|
|
||||||
0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e,
|
|
||||||
0x65, 0x6c, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x6e,
|
|
||||||
0x74, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6d, 0x73, 0x67, 0x73, 0x22, 0x55, 0x0a, 0x09, 0x53, 0x65,
|
|
||||||
0x72, 0x76, 0x65, 0x72, 0x42, 0x75, 0x66, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x76, 0x72, 0x49, 0x70,
|
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x73, 0x76, 0x72, 0x49, 0x70, 0x12, 0x18, 0x0a,
|
|
||||||
0x07, 0x73, 0x76, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07,
|
|
||||||
0x73, 0x76, 0x72, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x63, 0x68, 0x6f, 0x4b,
|
|
||||||
0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x65, 0x63, 0x68, 0x6f, 0x4b, 0x65,
|
|
||||||
0x79, 0x42, 0x14, 0x5a, 0x12, 0x70, 0x62, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x3b,
|
|
||||||
0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
file_pb_channel_msgpush_proto_rawDescOnce sync.Once
|
|
||||||
file_pb_channel_msgpush_proto_rawDescData = file_pb_channel_msgpush_proto_rawDesc
|
|
||||||
)
|
|
||||||
|
|
||||||
func file_pb_channel_msgpush_proto_rawDescGZIP() []byte {
|
|
||||||
file_pb_channel_msgpush_proto_rawDescOnce.Do(func() {
|
|
||||||
file_pb_channel_msgpush_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_channel_msgpush_proto_rawDescData)
|
|
||||||
})
|
|
||||||
return file_pb_channel_msgpush_proto_rawDescData
|
|
||||||
}
|
|
||||||
|
|
||||||
var file_pb_channel_msgpush_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
||||||
var file_pb_channel_msgpush_proto_goTypes = []interface{}{
|
|
||||||
(*FocusInfo)(nil), // 0: channel.FocusInfo
|
|
||||||
(*MsgOnlinePush)(nil), // 1: channel.MsgOnlinePush
|
|
||||||
(*MsgPushResp)(nil), // 2: channel.MsgPushResp
|
|
||||||
(*PressMsg)(nil), // 3: channel.PressMsg
|
|
||||||
(*ServerBuf)(nil), // 4: channel.ServerBuf
|
|
||||||
(*ChannelMsgContent)(nil), // 5: channel.ChannelMsgContent
|
|
||||||
}
|
|
||||||
var file_pb_channel_msgpush_proto_depIdxs = []int32{
|
|
||||||
5, // 0: channel.MsgOnlinePush.msgs:type_name -> channel.ChannelMsgContent
|
|
||||||
0, // 1: channel.MsgOnlinePush.focusInfo:type_name -> channel.FocusInfo
|
|
||||||
5, // 2: channel.PressMsg.msgs:type_name -> channel.ChannelMsgContent
|
|
||||||
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_pb_channel_msgpush_proto_init() }
|
|
||||||
func file_pb_channel_msgpush_proto_init() {
|
|
||||||
if File_pb_channel_msgpush_proto != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
file_pb_channel_common_proto_init()
|
|
||||||
if !protoimpl.UnsafeEnabled {
|
|
||||||
file_pb_channel_msgpush_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*FocusInfo); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_msgpush_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*MsgOnlinePush); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_msgpush_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*MsgPushResp); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_msgpush_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PressMsg); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_msgpush_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*ServerBuf); 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_pb_channel_msgpush_proto_rawDesc,
|
|
||||||
NumEnums: 0,
|
|
||||||
NumMessages: 5,
|
|
||||||
NumExtensions: 0,
|
|
||||||
NumServices: 0,
|
|
||||||
},
|
|
||||||
GoTypes: file_pb_channel_msgpush_proto_goTypes,
|
|
||||||
DependencyIndexes: file_pb_channel_msgpush_proto_depIdxs,
|
|
||||||
MessageInfos: file_pb_channel_msgpush_proto_msgTypes,
|
|
||||||
}.Build()
|
|
||||||
File_pb_channel_msgpush_proto = out.File
|
|
||||||
file_pb_channel_msgpush_proto_rawDesc = nil
|
|
||||||
file_pb_channel_msgpush_proto_goTypes = nil
|
|
||||||
file_pb_channel_msgpush_proto_depIdxs = nil
|
|
||||||
}
|
|
@ -1,372 +0,0 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
||||||
// versions:
|
|
||||||
// protoc-gen-go v1.27.1
|
|
||||||
// protoc v3.14.0
|
|
||||||
// source: pb/channel/oidb0xf62.proto
|
|
||||||
|
|
||||||
package channel
|
|
||||||
|
|
||||||
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 DF62ReqBody struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Msg *ChannelMsgContent `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62ReqBody) Reset() {
|
|
||||||
*x = DF62ReqBody{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_oidb0xf62_proto_msgTypes[0]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62ReqBody) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*DF62ReqBody) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *DF62ReqBody) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_oidb0xf62_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 DF62ReqBody.ProtoReflect.Descriptor instead.
|
|
||||||
func (*DF62ReqBody) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_oidb0xf62_proto_rawDescGZIP(), []int{0}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62ReqBody) GetMsg() *ChannelMsgContent {
|
|
||||||
if x != nil {
|
|
||||||
return x.Msg
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type DF62RspBody struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Result *uint32 `protobuf:"varint,1,opt,name=result" json:"result,omitempty"`
|
|
||||||
Errmsg []byte `protobuf:"bytes,2,opt,name=errmsg" json:"errmsg,omitempty"`
|
|
||||||
SendTime *uint32 `protobuf:"varint,3,opt,name=sendTime" json:"sendTime,omitempty"`
|
|
||||||
Head *ChannelMsgHead `protobuf:"bytes,4,opt,name=head" json:"head,omitempty"`
|
|
||||||
ErrType *uint32 `protobuf:"varint,5,opt,name=errType" json:"errType,omitempty"`
|
|
||||||
TransSvrInfo *TransSvrInfo `protobuf:"bytes,6,opt,name=transSvrInfo" json:"transSvrInfo,omitempty"`
|
|
||||||
FreqLimitInfo *ChannelFreqLimitInfo `protobuf:"bytes,7,opt,name=freqLimitInfo" json:"freqLimitInfo,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62RspBody) Reset() {
|
|
||||||
*x = DF62RspBody{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_oidb0xf62_proto_msgTypes[1]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62RspBody) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*DF62RspBody) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *DF62RspBody) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_oidb0xf62_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 DF62RspBody.ProtoReflect.Descriptor instead.
|
|
||||||
func (*DF62RspBody) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_oidb0xf62_proto_rawDescGZIP(), []int{1}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62RspBody) GetResult() uint32 {
|
|
||||||
if x != nil && x.Result != nil {
|
|
||||||
return *x.Result
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62RspBody) GetErrmsg() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.Errmsg
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62RspBody) GetSendTime() uint32 {
|
|
||||||
if x != nil && x.SendTime != nil {
|
|
||||||
return *x.SendTime
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62RspBody) GetHead() *ChannelMsgHead {
|
|
||||||
if x != nil {
|
|
||||||
return x.Head
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62RspBody) GetErrType() uint32 {
|
|
||||||
if x != nil && x.ErrType != nil {
|
|
||||||
return *x.ErrType
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62RspBody) GetTransSvrInfo() *TransSvrInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.TransSvrInfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *DF62RspBody) GetFreqLimitInfo() *ChannelFreqLimitInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.FreqLimitInfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type TransSvrInfo struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
SubType *uint32 `protobuf:"varint,1,opt,name=subType" json:"subType,omitempty"`
|
|
||||||
RetCode *int32 `protobuf:"varint,2,opt,name=retCode" json:"retCode,omitempty"`
|
|
||||||
ErrMsg []byte `protobuf:"bytes,3,opt,name=errMsg" json:"errMsg,omitempty"`
|
|
||||||
TransInfo []byte `protobuf:"bytes,4,opt,name=transInfo" json:"transInfo,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *TransSvrInfo) Reset() {
|
|
||||||
*x = TransSvrInfo{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_pb_channel_oidb0xf62_proto_msgTypes[2]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *TransSvrInfo) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*TransSvrInfo) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *TransSvrInfo) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_channel_oidb0xf62_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 TransSvrInfo.ProtoReflect.Descriptor instead.
|
|
||||||
func (*TransSvrInfo) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_channel_oidb0xf62_proto_rawDescGZIP(), []int{2}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *TransSvrInfo) GetSubType() uint32 {
|
|
||||||
if x != nil && x.SubType != nil {
|
|
||||||
return *x.SubType
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *TransSvrInfo) GetRetCode() int32 {
|
|
||||||
if x != nil && x.RetCode != nil {
|
|
||||||
return *x.RetCode
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *TransSvrInfo) GetErrMsg() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.ErrMsg
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *TransSvrInfo) GetTransInfo() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.TransInfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
var File_pb_channel_oidb0xf62_proto protoreflect.FileDescriptor
|
|
||||||
|
|
||||||
var file_pb_channel_oidb0xf62_proto_rawDesc = []byte{
|
|
||||||
0x0a, 0x1a, 0x70, 0x62, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2f, 0x6f, 0x69, 0x64,
|
|
||||||
0x62, 0x30, 0x78, 0x66, 0x36, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x63, 0x68,
|
|
||||||
0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x1a, 0x17, 0x70, 0x62, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65,
|
|
||||||
0x6c, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3b,
|
|
||||||
0x0a, 0x0b, 0x44, 0x46, 0x36, 0x32, 0x52, 0x65, 0x71, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x2c, 0x0a,
|
|
||||||
0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x68, 0x61,
|
|
||||||
0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x43,
|
|
||||||
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0xa0, 0x02, 0x0a, 0x0b,
|
|
||||||
0x44, 0x46, 0x36, 0x32, 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, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20,
|
|
||||||
0x01, 0x28, 0x0c, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x12, 0x1a, 0x0a, 0x08, 0x73,
|
|
||||||
0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x73,
|
|
||||||
0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x68, 0x65, 0x61, 0x64, 0x18,
|
|
||||||
0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e,
|
|
||||||
0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4d, 0x73, 0x67, 0x48, 0x65, 0x61, 0x64, 0x52, 0x04,
|
|
||||||
0x68, 0x65, 0x61, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x54, 0x79, 0x70, 0x65, 0x18,
|
|
||||||
0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x65, 0x72, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39,
|
|
||||||
0x0a, 0x0c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x53, 0x76, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x06,
|
|
||||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x54,
|
|
||||||
0x72, 0x61, 0x6e, 0x73, 0x53, 0x76, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0c, 0x74, 0x72, 0x61,
|
|
||||||
0x6e, 0x73, 0x53, 0x76, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x43, 0x0a, 0x0d, 0x66, 0x72, 0x65,
|
|
||||||
0x71, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
|
|
||||||
0x32, 0x1d, 0x2e, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x6e,
|
|
||||||
0x65, 0x6c, 0x46, 0x72, 0x65, 0x71, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52,
|
|
||||||
0x0d, 0x66, 0x72, 0x65, 0x71, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x78,
|
|
||||||
0x0a, 0x0c, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x53, 0x76, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18,
|
|
||||||
0x0a, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
|
||||||
0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x43,
|
|
||||||
0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x72, 0x65, 0x74, 0x43, 0x6f,
|
|
||||||
0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01,
|
|
||||||
0x28, 0x0c, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x72,
|
|
||||||
0x61, 0x6e, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74,
|
|
||||||
0x72, 0x61, 0x6e, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x14, 0x5a, 0x12, 0x70, 0x62, 0x2f, 0x63,
|
|
||||||
0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x3b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
file_pb_channel_oidb0xf62_proto_rawDescOnce sync.Once
|
|
||||||
file_pb_channel_oidb0xf62_proto_rawDescData = file_pb_channel_oidb0xf62_proto_rawDesc
|
|
||||||
)
|
|
||||||
|
|
||||||
func file_pb_channel_oidb0xf62_proto_rawDescGZIP() []byte {
|
|
||||||
file_pb_channel_oidb0xf62_proto_rawDescOnce.Do(func() {
|
|
||||||
file_pb_channel_oidb0xf62_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb_channel_oidb0xf62_proto_rawDescData)
|
|
||||||
})
|
|
||||||
return file_pb_channel_oidb0xf62_proto_rawDescData
|
|
||||||
}
|
|
||||||
|
|
||||||
var file_pb_channel_oidb0xf62_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
||||||
var file_pb_channel_oidb0xf62_proto_goTypes = []interface{}{
|
|
||||||
(*DF62ReqBody)(nil), // 0: channel.DF62ReqBody
|
|
||||||
(*DF62RspBody)(nil), // 1: channel.DF62RspBody
|
|
||||||
(*TransSvrInfo)(nil), // 2: channel.TransSvrInfo
|
|
||||||
(*ChannelMsgContent)(nil), // 3: channel.ChannelMsgContent
|
|
||||||
(*ChannelMsgHead)(nil), // 4: channel.ChannelMsgHead
|
|
||||||
(*ChannelFreqLimitInfo)(nil), // 5: channel.ChannelFreqLimitInfo
|
|
||||||
}
|
|
||||||
var file_pb_channel_oidb0xf62_proto_depIdxs = []int32{
|
|
||||||
3, // 0: channel.DF62ReqBody.msg:type_name -> channel.ChannelMsgContent
|
|
||||||
4, // 1: channel.DF62RspBody.head:type_name -> channel.ChannelMsgHead
|
|
||||||
2, // 2: channel.DF62RspBody.transSvrInfo:type_name -> channel.TransSvrInfo
|
|
||||||
5, // 3: channel.DF62RspBody.freqLimitInfo:type_name -> channel.ChannelFreqLimitInfo
|
|
||||||
4, // [4:4] is the sub-list for method output_type
|
|
||||||
4, // [4:4] is the sub-list for method input_type
|
|
||||||
4, // [4:4] is the sub-list for extension type_name
|
|
||||||
4, // [4:4] is the sub-list for extension extendee
|
|
||||||
0, // [0:4] is the sub-list for field type_name
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() { file_pb_channel_oidb0xf62_proto_init() }
|
|
||||||
func file_pb_channel_oidb0xf62_proto_init() {
|
|
||||||
if File_pb_channel_oidb0xf62_proto != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
file_pb_channel_common_proto_init()
|
|
||||||
if !protoimpl.UnsafeEnabled {
|
|
||||||
file_pb_channel_oidb0xf62_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*DF62ReqBody); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_oidb0xf62_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*DF62RspBody); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_pb_channel_oidb0xf62_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*TransSvrInfo); 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_pb_channel_oidb0xf62_proto_rawDesc,
|
|
||||||
NumEnums: 0,
|
|
||||||
NumMessages: 3,
|
|
||||||
NumExtensions: 0,
|
|
||||||
NumServices: 0,
|
|
||||||
},
|
|
||||||
GoTypes: file_pb_channel_oidb0xf62_proto_goTypes,
|
|
||||||
DependencyIndexes: file_pb_channel_oidb0xf62_proto_depIdxs,
|
|
||||||
MessageInfos: file_pb_channel_oidb0xf62_proto_msgTypes,
|
|
||||||
}.Build()
|
|
||||||
File_pb_channel_oidb0xf62_proto = out.File
|
|
||||||
file_pb_channel_oidb0xf62_proto_rawDesc = nil
|
|
||||||
file_pb_channel_oidb0xf62_proto_goTypes = nil
|
|
||||||
file_pb_channel_oidb0xf62_proto_depIdxs = nil
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,484 +0,0 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
||||||
// versions:
|
|
||||||
// protoc-gen-go v1.26.0
|
|
||||||
// protoc v3.17.1
|
|
||||||
// source: objmsg.proto
|
|
||||||
|
|
||||||
package msg
|
|
||||||
|
|
||||||
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 MsgPic struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
SmallPicUrl []byte `protobuf:"bytes,1,opt,name=smallPicUrl,proto3" json:"smallPicUrl,omitempty"`
|
|
||||||
OriginalPicUrl []byte `protobuf:"bytes,2,opt,name=originalPicUrl,proto3" json:"originalPicUrl,omitempty"`
|
|
||||||
LocalPicId int32 `protobuf:"varint,3,opt,name=localPicId,proto3" json:"localPicId,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgPic) Reset() {
|
|
||||||
*x = MsgPic{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_objmsg_proto_msgTypes[0]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgPic) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*MsgPic) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *MsgPic) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_objmsg_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 MsgPic.ProtoReflect.Descriptor instead.
|
|
||||||
func (*MsgPic) Descriptor() ([]byte, []int) {
|
|
||||||
return file_objmsg_proto_rawDescGZIP(), []int{0}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgPic) GetSmallPicUrl() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.SmallPicUrl
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgPic) GetOriginalPicUrl() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.OriginalPicUrl
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgPic) GetLocalPicId() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.LocalPicId
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type ObjMsg struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
MsgType int32 `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"`
|
|
||||||
Title []byte `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
|
||||||
BytesAbstact []byte `protobuf:"bytes,3,opt,name=bytesAbstact,proto3" json:"bytesAbstact,omitempty"`
|
|
||||||
TitleExt []byte `protobuf:"bytes,5,opt,name=titleExt,proto3" json:"titleExt,omitempty"`
|
|
||||||
MsgPic []*MsgPic `protobuf:"bytes,6,rep,name=msgPic,proto3" json:"msgPic,omitempty"`
|
|
||||||
MsgContentInfo []*MsgContentInfo `protobuf:"bytes,7,rep,name=msgContentInfo,proto3" json:"msgContentInfo,omitempty"`
|
|
||||||
ReportIdShow int32 `protobuf:"varint,8,opt,name=reportIdShow,proto3" json:"reportIdShow,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ObjMsg) Reset() {
|
|
||||||
*x = ObjMsg{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_objmsg_proto_msgTypes[1]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ObjMsg) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*ObjMsg) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *ObjMsg) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_objmsg_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 ObjMsg.ProtoReflect.Descriptor instead.
|
|
||||||
func (*ObjMsg) Descriptor() ([]byte, []int) {
|
|
||||||
return file_objmsg_proto_rawDescGZIP(), []int{1}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ObjMsg) GetMsgType() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.MsgType
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ObjMsg) GetTitle() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.Title
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ObjMsg) GetBytesAbstact() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.BytesAbstact
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ObjMsg) GetTitleExt() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.TitleExt
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ObjMsg) GetMsgPic() []*MsgPic {
|
|
||||||
if x != nil {
|
|
||||||
return x.MsgPic
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ObjMsg) GetMsgContentInfo() []*MsgContentInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.MsgContentInfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *ObjMsg) GetReportIdShow() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.ReportIdShow
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type MsgContentInfo struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
ContentInfoId []byte `protobuf:"bytes,1,opt,name=contentInfoId,proto3" json:"contentInfoId,omitempty"`
|
|
||||||
MsgFile *MsgFile `protobuf:"bytes,2,opt,name=msgFile,proto3" json:"msgFile,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgContentInfo) Reset() {
|
|
||||||
*x = MsgContentInfo{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_objmsg_proto_msgTypes[2]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgContentInfo) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*MsgContentInfo) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *MsgContentInfo) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_objmsg_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 MsgContentInfo.ProtoReflect.Descriptor instead.
|
|
||||||
func (*MsgContentInfo) Descriptor() ([]byte, []int) {
|
|
||||||
return file_objmsg_proto_rawDescGZIP(), []int{2}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgContentInfo) GetContentInfoId() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.ContentInfoId
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgContentInfo) GetMsgFile() *MsgFile {
|
|
||||||
if x != nil {
|
|
||||||
return x.MsgFile
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type MsgFile struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
BusId int32 `protobuf:"varint,1,opt,name=busId,proto3" json:"busId,omitempty"`
|
|
||||||
FilePath []byte `protobuf:"bytes,2,opt,name=filePath,proto3" json:"filePath,omitempty"`
|
|
||||||
FileSize int64 `protobuf:"varint,3,opt,name=fileSize,proto3" json:"fileSize,omitempty"`
|
|
||||||
FileName string `protobuf:"bytes,4,opt,name=fileName,proto3" json:"fileName,omitempty"`
|
|
||||||
Int64DeadTime int64 `protobuf:"varint,5,opt,name=int64DeadTime,proto3" json:"int64DeadTime,omitempty"`
|
|
||||||
FileSha1 []byte `protobuf:"bytes,6,opt,name=fileSha1,proto3" json:"fileSha1,omitempty"`
|
|
||||||
Ext []byte `protobuf:"bytes,7,opt,name=ext,proto3" json:"ext,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgFile) Reset() {
|
|
||||||
*x = MsgFile{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_objmsg_proto_msgTypes[3]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgFile) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*MsgFile) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *MsgFile) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_objmsg_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 MsgFile.ProtoReflect.Descriptor instead.
|
|
||||||
func (*MsgFile) Descriptor() ([]byte, []int) {
|
|
||||||
return file_objmsg_proto_rawDescGZIP(), []int{3}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgFile) GetBusId() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.BusId
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgFile) GetFilePath() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.FilePath
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgFile) GetFileSize() int64 {
|
|
||||||
if x != nil {
|
|
||||||
return x.FileSize
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgFile) GetFileName() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.FileName
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgFile) GetInt64DeadTime() int64 {
|
|
||||||
if x != nil {
|
|
||||||
return x.Int64DeadTime
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgFile) GetFileSha1() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.FileSha1
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *MsgFile) GetExt() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.Ext
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
var File_objmsg_proto protoreflect.FileDescriptor
|
|
||||||
|
|
||||||
var file_objmsg_proto_rawDesc = []byte{
|
|
||||||
0x0a, 0x0c, 0x6f, 0x62, 0x6a, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x72,
|
|
||||||
0x0a, 0x06, 0x4d, 0x73, 0x67, 0x50, 0x69, 0x63, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x6d, 0x61, 0x6c,
|
|
||||||
0x6c, 0x50, 0x69, 0x63, 0x55, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x73,
|
|
||||||
0x6d, 0x61, 0x6c, 0x6c, 0x50, 0x69, 0x63, 0x55, 0x72, 0x6c, 0x12, 0x26, 0x0a, 0x0e, 0x6f, 0x72,
|
|
||||||
0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x50, 0x69, 0x63, 0x55, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01,
|
|
||||||
0x28, 0x0c, 0x52, 0x0e, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x50, 0x69, 0x63, 0x55,
|
|
||||||
0x72, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x69, 0x63, 0x49, 0x64,
|
|
||||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x69, 0x63,
|
|
||||||
0x49, 0x64, 0x22, 0xf6, 0x01, 0x0a, 0x06, 0x4f, 0x62, 0x6a, 0x4d, 0x73, 0x67, 0x12, 0x18, 0x0a,
|
|
||||||
0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07,
|
|
||||||
0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
|
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x22, 0x0a,
|
|
||||||
0x0c, 0x62, 0x79, 0x74, 0x65, 0x73, 0x41, 0x62, 0x73, 0x74, 0x61, 0x63, 0x74, 0x18, 0x03, 0x20,
|
|
||||||
0x01, 0x28, 0x0c, 0x52, 0x0c, 0x62, 0x79, 0x74, 0x65, 0x73, 0x41, 0x62, 0x73, 0x74, 0x61, 0x63,
|
|
||||||
0x74, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x18, 0x05, 0x20,
|
|
||||||
0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x12, 0x1f, 0x0a,
|
|
||||||
0x06, 0x6d, 0x73, 0x67, 0x50, 0x69, 0x63, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e,
|
|
||||||
0x4d, 0x73, 0x67, 0x50, 0x69, 0x63, 0x52, 0x06, 0x6d, 0x73, 0x67, 0x50, 0x69, 0x63, 0x12, 0x37,
|
|
||||||
0x0a, 0x0e, 0x6d, 0x73, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f,
|
|
||||||
0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x4d, 0x73, 0x67, 0x43, 0x6f, 0x6e, 0x74,
|
|
||||||
0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, 0x6d, 0x73, 0x67, 0x43, 0x6f, 0x6e, 0x74,
|
|
||||||
0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x72,
|
|
||||||
0x74, 0x49, 0x64, 0x53, 0x68, 0x6f, 0x77, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x72,
|
|
||||||
0x65, 0x70, 0x6f, 0x72, 0x74, 0x49, 0x64, 0x53, 0x68, 0x6f, 0x77, 0x22, 0x5a, 0x0a, 0x0e, 0x4d,
|
|
||||||
0x73, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x24, 0x0a,
|
|
||||||
0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x18, 0x01,
|
|
||||||
0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x66,
|
|
||||||
0x6f, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x02,
|
|
||||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x4d, 0x73, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x07,
|
|
||||||
0x6d, 0x73, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x22, 0xc7, 0x01, 0x0a, 0x07, 0x4d, 0x73, 0x67, 0x46,
|
|
||||||
0x69, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x75, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
|
||||||
0x28, 0x05, 0x52, 0x05, 0x62, 0x75, 0x73, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c,
|
|
||||||
0x65, 0x50, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x66, 0x69, 0x6c,
|
|
||||||
0x65, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a,
|
|
||||||
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a,
|
|
||||||
0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20,
|
|
||||||
0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a,
|
|
||||||
0x0d, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x44, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05,
|
|
||||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x44, 0x65, 0x61, 0x64, 0x54,
|
|
||||||
0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x61, 0x31, 0x18,
|
|
||||||
0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x68, 0x61, 0x31, 0x12,
|
|
||||||
0x10, 0x0a, 0x03, 0x65, 0x78, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x65, 0x78,
|
|
||||||
0x74, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x2f, 0x3b, 0x6d, 0x73, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
|
||||||
0x74, 0x6f, 0x33,
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
file_objmsg_proto_rawDescOnce sync.Once
|
|
||||||
file_objmsg_proto_rawDescData = file_objmsg_proto_rawDesc
|
|
||||||
)
|
|
||||||
|
|
||||||
func file_objmsg_proto_rawDescGZIP() []byte {
|
|
||||||
file_objmsg_proto_rawDescOnce.Do(func() {
|
|
||||||
file_objmsg_proto_rawDescData = protoimpl.X.CompressGZIP(file_objmsg_proto_rawDescData)
|
|
||||||
})
|
|
||||||
return file_objmsg_proto_rawDescData
|
|
||||||
}
|
|
||||||
|
|
||||||
var file_objmsg_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
||||||
var file_objmsg_proto_goTypes = []interface{}{
|
|
||||||
(*MsgPic)(nil), // 0: MsgPic
|
|
||||||
(*ObjMsg)(nil), // 1: ObjMsg
|
|
||||||
(*MsgContentInfo)(nil), // 2: MsgContentInfo
|
|
||||||
(*MsgFile)(nil), // 3: MsgFile
|
|
||||||
}
|
|
||||||
var file_objmsg_proto_depIdxs = []int32{
|
|
||||||
0, // 0: ObjMsg.msgPic:type_name -> MsgPic
|
|
||||||
2, // 1: ObjMsg.msgContentInfo:type_name -> MsgContentInfo
|
|
||||||
3, // 2: MsgContentInfo.msgFile:type_name -> MsgFile
|
|
||||||
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_objmsg_proto_init() }
|
|
||||||
func file_objmsg_proto_init() {
|
|
||||||
if File_objmsg_proto != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if !protoimpl.UnsafeEnabled {
|
|
||||||
file_objmsg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*MsgPic); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_objmsg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*ObjMsg); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_objmsg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*MsgContentInfo); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_objmsg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*MsgFile); 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_objmsg_proto_rawDesc,
|
|
||||||
NumEnums: 0,
|
|
||||||
NumMessages: 4,
|
|
||||||
NumExtensions: 0,
|
|
||||||
NumServices: 0,
|
|
||||||
},
|
|
||||||
GoTypes: file_objmsg_proto_goTypes,
|
|
||||||
DependencyIndexes: file_objmsg_proto_depIdxs,
|
|
||||||
MessageInfos: file_objmsg_proto_msgTypes,
|
|
||||||
}.Build()
|
|
||||||
File_objmsg_proto = out.File
|
|
||||||
file_objmsg_proto_rawDesc = nil
|
|
||||||
file_objmsg_proto_goTypes = nil
|
|
||||||
file_objmsg_proto_depIdxs = nil
|
|
||||||
}
|
|
@ -1,904 +0,0 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
||||||
// versions:
|
|
||||||
// protoc-gen-go v1.26.0
|
|
||||||
// protoc v3.17.1
|
|
||||||
// source: report.proto
|
|
||||||
|
|
||||||
package msg
|
|
||||||
|
|
||||||
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 PbMsgReadedReportReq struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
GrpReadReport []*PbGroupReadedReportReq `protobuf:"bytes,1,rep,name=grpReadReport" json:"grpReadReport,omitempty"`
|
|
||||||
DisReadReport []*PbDiscussReadedReportReq `protobuf:"bytes,2,rep,name=disReadReport" json:"disReadReport,omitempty"`
|
|
||||||
C2CReadReport *PbC2CReadedReportReq `protobuf:"bytes,3,opt,name=c2CReadReport" json:"c2CReadReport,omitempty"` //optional PbBindUinMsgReadedConfirmReq bindUinReadReport = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportReq) Reset() {
|
|
||||||
*x = PbMsgReadedReportReq{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_report_proto_msgTypes[0]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportReq) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PbMsgReadedReportReq) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportReq) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_report_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 PbMsgReadedReportReq.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PbMsgReadedReportReq) Descriptor() ([]byte, []int) {
|
|
||||||
return file_report_proto_rawDescGZIP(), []int{0}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportReq) GetGrpReadReport() []*PbGroupReadedReportReq {
|
|
||||||
if x != nil {
|
|
||||||
return x.GrpReadReport
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportReq) GetDisReadReport() []*PbDiscussReadedReportReq {
|
|
||||||
if x != nil {
|
|
||||||
return x.DisReadReport
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportReq) GetC2CReadReport() *PbC2CReadedReportReq {
|
|
||||||
if x != nil {
|
|
||||||
return x.C2CReadReport
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type PbMsgReadedReportResp struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
GrpReadReport []*PbGroupReadedReportResp `protobuf:"bytes,1,rep,name=grpReadReport" json:"grpReadReport,omitempty"`
|
|
||||||
DisReadReport []*PbDiscussReadedReportResp `protobuf:"bytes,2,rep,name=disReadReport" json:"disReadReport,omitempty"`
|
|
||||||
C2CReadReport *PbC2CReadedReportResp `protobuf:"bytes,3,opt,name=c2CReadReport" json:"c2CReadReport,omitempty"` //optional PbBindUinMsgReadedConfirmResp bindUinReadReport = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportResp) Reset() {
|
|
||||||
*x = PbMsgReadedReportResp{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_report_proto_msgTypes[1]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportResp) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PbMsgReadedReportResp) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportResp) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_report_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 PbMsgReadedReportResp.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PbMsgReadedReportResp) Descriptor() ([]byte, []int) {
|
|
||||||
return file_report_proto_rawDescGZIP(), []int{1}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportResp) GetGrpReadReport() []*PbGroupReadedReportResp {
|
|
||||||
if x != nil {
|
|
||||||
return x.GrpReadReport
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportResp) GetDisReadReport() []*PbDiscussReadedReportResp {
|
|
||||||
if x != nil {
|
|
||||||
return x.DisReadReport
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbMsgReadedReportResp) GetC2CReadReport() *PbC2CReadedReportResp {
|
|
||||||
if x != nil {
|
|
||||||
return x.C2CReadReport
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type PbGroupReadedReportReq struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
GroupCode *uint64 `protobuf:"varint,1,opt,name=groupCode" json:"groupCode,omitempty"`
|
|
||||||
LastReadSeq *uint64 `protobuf:"varint,2,opt,name=lastReadSeq" json:"lastReadSeq,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportReq) Reset() {
|
|
||||||
*x = PbGroupReadedReportReq{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_report_proto_msgTypes[2]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportReq) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PbGroupReadedReportReq) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportReq) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_report_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 PbGroupReadedReportReq.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PbGroupReadedReportReq) Descriptor() ([]byte, []int) {
|
|
||||||
return file_report_proto_rawDescGZIP(), []int{2}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportReq) GetGroupCode() uint64 {
|
|
||||||
if x != nil && x.GroupCode != nil {
|
|
||||||
return *x.GroupCode
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportReq) GetLastReadSeq() uint64 {
|
|
||||||
if x != nil && x.LastReadSeq != nil {
|
|
||||||
return *x.LastReadSeq
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type PbDiscussReadedReportReq struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
ConfUin *uint64 `protobuf:"varint,1,opt,name=confUin" json:"confUin,omitempty"`
|
|
||||||
LastReadSeq *uint64 `protobuf:"varint,2,opt,name=lastReadSeq" json:"lastReadSeq,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportReq) Reset() {
|
|
||||||
*x = PbDiscussReadedReportReq{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_report_proto_msgTypes[3]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportReq) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PbDiscussReadedReportReq) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportReq) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_report_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 PbDiscussReadedReportReq.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PbDiscussReadedReportReq) Descriptor() ([]byte, []int) {
|
|
||||||
return file_report_proto_rawDescGZIP(), []int{3}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportReq) GetConfUin() uint64 {
|
|
||||||
if x != nil && x.ConfUin != nil {
|
|
||||||
return *x.ConfUin
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportReq) GetLastReadSeq() uint64 {
|
|
||||||
if x != nil && x.LastReadSeq != nil {
|
|
||||||
return *x.LastReadSeq
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type PbC2CReadedReportReq struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
SyncCookie []byte `protobuf:"bytes,1,opt,name=syncCookie" json:"syncCookie,omitempty"`
|
|
||||||
PairInfo []*UinPairReadInfo `protobuf:"bytes,2,rep,name=pairInfo" json:"pairInfo,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbC2CReadedReportReq) Reset() {
|
|
||||||
*x = PbC2CReadedReportReq{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_report_proto_msgTypes[4]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbC2CReadedReportReq) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PbC2CReadedReportReq) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PbC2CReadedReportReq) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_report_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 PbC2CReadedReportReq.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PbC2CReadedReportReq) Descriptor() ([]byte, []int) {
|
|
||||||
return file_report_proto_rawDescGZIP(), []int{4}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbC2CReadedReportReq) GetSyncCookie() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.SyncCookie
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbC2CReadedReportReq) GetPairInfo() []*UinPairReadInfo {
|
|
||||||
if x != nil {
|
|
||||||
return x.PairInfo
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type UinPairReadInfo struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
PeerUin *uint64 `protobuf:"varint,1,opt,name=peerUin" json:"peerUin,omitempty"`
|
|
||||||
LastReadTime *uint32 `protobuf:"varint,2,opt,name=lastReadTime" json:"lastReadTime,omitempty"`
|
|
||||||
CrmSig []byte `protobuf:"bytes,3,opt,name=crmSig" json:"crmSig,omitempty"`
|
|
||||||
PeerType *uint32 `protobuf:"varint,4,opt,name=peerType" json:"peerType,omitempty"`
|
|
||||||
ChatType *uint32 `protobuf:"varint,5,opt,name=chatType" json:"chatType,omitempty"`
|
|
||||||
Cpid *uint64 `protobuf:"varint,6,opt,name=cpid" json:"cpid,omitempty"`
|
|
||||||
AioType *uint32 `protobuf:"varint,7,opt,name=aioType" json:"aioType,omitempty"`
|
|
||||||
ToTinyId *uint64 `protobuf:"varint,9,opt,name=toTinyId" json:"toTinyId,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *UinPairReadInfo) Reset() {
|
|
||||||
*x = UinPairReadInfo{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_report_proto_msgTypes[5]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *UinPairReadInfo) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*UinPairReadInfo) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *UinPairReadInfo) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_report_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 UinPairReadInfo.ProtoReflect.Descriptor instead.
|
|
||||||
func (*UinPairReadInfo) Descriptor() ([]byte, []int) {
|
|
||||||
return file_report_proto_rawDescGZIP(), []int{5}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *UinPairReadInfo) GetPeerUin() uint64 {
|
|
||||||
if x != nil && x.PeerUin != nil {
|
|
||||||
return *x.PeerUin
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *UinPairReadInfo) GetLastReadTime() uint32 {
|
|
||||||
if x != nil && x.LastReadTime != nil {
|
|
||||||
return *x.LastReadTime
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *UinPairReadInfo) GetCrmSig() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.CrmSig
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *UinPairReadInfo) GetPeerType() uint32 {
|
|
||||||
if x != nil && x.PeerType != nil {
|
|
||||||
return *x.PeerType
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *UinPairReadInfo) GetChatType() uint32 {
|
|
||||||
if x != nil && x.ChatType != nil {
|
|
||||||
return *x.ChatType
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *UinPairReadInfo) GetCpid() uint64 {
|
|
||||||
if x != nil && x.Cpid != nil {
|
|
||||||
return *x.Cpid
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *UinPairReadInfo) GetAioType() uint32 {
|
|
||||||
if x != nil && x.AioType != nil {
|
|
||||||
return *x.AioType
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *UinPairReadInfo) GetToTinyId() uint64 {
|
|
||||||
if x != nil && x.ToTinyId != nil {
|
|
||||||
return *x.ToTinyId
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type PbGroupReadedReportResp struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Result *uint32 `protobuf:"varint,1,opt,name=result" json:"result,omitempty"`
|
|
||||||
Errmsg *string `protobuf:"bytes,2,opt,name=errmsg" json:"errmsg,omitempty"`
|
|
||||||
GroupCode *uint64 `protobuf:"varint,3,opt,name=groupCode" json:"groupCode,omitempty"`
|
|
||||||
MemberSeq *uint64 `protobuf:"varint,4,opt,name=memberSeq" json:"memberSeq,omitempty"`
|
|
||||||
GroupMsgSeq *uint64 `protobuf:"varint,5,opt,name=groupMsgSeq" json:"groupMsgSeq,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportResp) Reset() {
|
|
||||||
*x = PbGroupReadedReportResp{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_report_proto_msgTypes[6]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportResp) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PbGroupReadedReportResp) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportResp) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_report_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 PbGroupReadedReportResp.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PbGroupReadedReportResp) Descriptor() ([]byte, []int) {
|
|
||||||
return file_report_proto_rawDescGZIP(), []int{6}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportResp) GetResult() uint32 {
|
|
||||||
if x != nil && x.Result != nil {
|
|
||||||
return *x.Result
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportResp) GetErrmsg() string {
|
|
||||||
if x != nil && x.Errmsg != nil {
|
|
||||||
return *x.Errmsg
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportResp) GetGroupCode() uint64 {
|
|
||||||
if x != nil && x.GroupCode != nil {
|
|
||||||
return *x.GroupCode
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportResp) GetMemberSeq() uint64 {
|
|
||||||
if x != nil && x.MemberSeq != nil {
|
|
||||||
return *x.MemberSeq
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbGroupReadedReportResp) GetGroupMsgSeq() uint64 {
|
|
||||||
if x != nil && x.GroupMsgSeq != nil {
|
|
||||||
return *x.GroupMsgSeq
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type PbDiscussReadedReportResp struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Result *uint32 `protobuf:"varint,1,opt,name=result" json:"result,omitempty"`
|
|
||||||
Errmsg *string `protobuf:"bytes,2,opt,name=errmsg" json:"errmsg,omitempty"`
|
|
||||||
ConfUin *uint64 `protobuf:"varint,3,opt,name=confUin" json:"confUin,omitempty"`
|
|
||||||
MemberSeq *uint64 `protobuf:"varint,4,opt,name=memberSeq" json:"memberSeq,omitempty"`
|
|
||||||
ConfSeq *uint64 `protobuf:"varint,5,opt,name=confSeq" json:"confSeq,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportResp) Reset() {
|
|
||||||
*x = PbDiscussReadedReportResp{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_report_proto_msgTypes[7]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportResp) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PbDiscussReadedReportResp) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportResp) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_report_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 PbDiscussReadedReportResp.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PbDiscussReadedReportResp) Descriptor() ([]byte, []int) {
|
|
||||||
return file_report_proto_rawDescGZIP(), []int{7}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportResp) GetResult() uint32 {
|
|
||||||
if x != nil && x.Result != nil {
|
|
||||||
return *x.Result
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportResp) GetErrmsg() string {
|
|
||||||
if x != nil && x.Errmsg != nil {
|
|
||||||
return *x.Errmsg
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportResp) GetConfUin() uint64 {
|
|
||||||
if x != nil && x.ConfUin != nil {
|
|
||||||
return *x.ConfUin
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportResp) GetMemberSeq() uint64 {
|
|
||||||
if x != nil && x.MemberSeq != nil {
|
|
||||||
return *x.MemberSeq
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbDiscussReadedReportResp) GetConfSeq() uint64 {
|
|
||||||
if x != nil && x.ConfSeq != nil {
|
|
||||||
return *x.ConfSeq
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
type PbC2CReadedReportResp struct {
|
|
||||||
state protoimpl.MessageState
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
|
|
||||||
Result *uint32 `protobuf:"varint,1,opt,name=result" json:"result,omitempty"`
|
|
||||||
Errmsg *string `protobuf:"bytes,2,opt,name=errmsg" json:"errmsg,omitempty"`
|
|
||||||
SyncCookie []byte `protobuf:"bytes,3,opt,name=syncCookie" json:"syncCookie,omitempty"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbC2CReadedReportResp) Reset() {
|
|
||||||
*x = PbC2CReadedReportResp{}
|
|
||||||
if protoimpl.UnsafeEnabled {
|
|
||||||
mi := &file_report_proto_msgTypes[8]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbC2CReadedReportResp) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PbC2CReadedReportResp) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PbC2CReadedReportResp) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_report_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 PbC2CReadedReportResp.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PbC2CReadedReportResp) Descriptor() ([]byte, []int) {
|
|
||||||
return file_report_proto_rawDescGZIP(), []int{8}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbC2CReadedReportResp) GetResult() uint32 {
|
|
||||||
if x != nil && x.Result != nil {
|
|
||||||
return *x.Result
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbC2CReadedReportResp) GetErrmsg() string {
|
|
||||||
if x != nil && x.Errmsg != nil {
|
|
||||||
return *x.Errmsg
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PbC2CReadedReportResp) GetSyncCookie() []byte {
|
|
||||||
if x != nil {
|
|
||||||
return x.SyncCookie
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
var File_report_proto protoreflect.FileDescriptor
|
|
||||||
|
|
||||||
var file_report_proto_rawDesc = []byte{
|
|
||||||
0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd3,
|
|
||||||
0x01, 0x0a, 0x14, 0x50, 0x62, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x61, 0x64, 0x65, 0x64, 0x52, 0x65,
|
|
||||||
0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x12, 0x3d, 0x0a, 0x0d, 0x67, 0x72, 0x70, 0x52, 0x65,
|
|
||||||
0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17,
|
|
||||||
0x2e, 0x50, 0x62, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x61, 0x64, 0x65, 0x64, 0x52, 0x65,
|
|
||||||
0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x52, 0x0d, 0x67, 0x72, 0x70, 0x52, 0x65, 0x61, 0x64,
|
|
||||||
0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3f, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x52, 0x65, 0x61,
|
|
||||||
0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e,
|
|
||||||
0x50, 0x62, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x64, 0x52,
|
|
||||||
0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x52, 0x0d, 0x64, 0x69, 0x73, 0x52, 0x65, 0x61,
|
|
||||||
0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x3b, 0x0a, 0x0d, 0x63, 0x32, 0x43, 0x52, 0x65,
|
|
||||||
0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15,
|
|
||||||
0x2e, 0x50, 0x62, 0x43, 0x32, 0x43, 0x52, 0x65, 0x61, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f,
|
|
||||||
0x72, 0x74, 0x52, 0x65, 0x71, 0x52, 0x0d, 0x63, 0x32, 0x43, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65,
|
|
||||||
0x70, 0x6f, 0x72, 0x74, 0x22, 0xd7, 0x01, 0x0a, 0x15, 0x50, 0x62, 0x4d, 0x73, 0x67, 0x52, 0x65,
|
|
||||||
0x61, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3e,
|
|
||||||
0x0a, 0x0d, 0x67, 0x72, 0x70, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18,
|
|
||||||
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x50, 0x62, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
|
|
||||||
0x65, 0x61, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x52,
|
|
||||||
0x0d, 0x67, 0x72, 0x70, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x40,
|
|
||||||
0x0a, 0x0d, 0x64, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18,
|
|
||||||
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x50, 0x62, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73,
|
|
||||||
0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73,
|
|
||||||
0x70, 0x52, 0x0d, 0x64, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74,
|
|
||||||
0x12, 0x3c, 0x0a, 0x0d, 0x63, 0x32, 0x43, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72,
|
|
||||||
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x50, 0x62, 0x43, 0x32, 0x43, 0x52,
|
|
||||||
0x65, 0x61, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x52,
|
|
||||||
0x0d, 0x63, 0x32, 0x43, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x58,
|
|
||||||
0x0a, 0x16, 0x50, 0x62, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x61, 0x64, 0x65, 0x64, 0x52,
|
|
||||||
0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 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, 0x20, 0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65,
|
|
||||||
0x61, 0x64, 0x53, 0x65, 0x71, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6c, 0x61, 0x73,
|
|
||||||
0x74, 0x52, 0x65, 0x61, 0x64, 0x53, 0x65, 0x71, 0x22, 0x56, 0x0a, 0x18, 0x50, 0x62, 0x44, 0x69,
|
|
||||||
0x73, 0x63, 0x75, 0x73, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72,
|
|
||||||
0x74, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x55, 0x69, 0x6e, 0x18,
|
|
||||||
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x55, 0x69, 0x6e, 0x12, 0x20,
|
|
||||||
0x0a, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x61, 0x64, 0x53, 0x65, 0x71, 0x18, 0x02, 0x20,
|
|
||||||
0x01, 0x28, 0x04, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x61, 0x64, 0x53, 0x65, 0x71,
|
|
||||||
0x22, 0x64, 0x0a, 0x14, 0x50, 0x62, 0x43, 0x32, 0x43, 0x52, 0x65, 0x61, 0x64, 0x65, 0x64, 0x52,
|
|
||||||
0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x79, 0x6e, 0x63,
|
|
||||||
0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x79,
|
|
||||||
0x6e, 0x63, 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x70, 0x61, 0x69, 0x72,
|
|
||||||
0x49, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x55, 0x69, 0x6e,
|
|
||||||
0x50, 0x61, 0x69, 0x72, 0x52, 0x65, 0x61, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x70, 0x61,
|
|
||||||
0x69, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0xe9, 0x01, 0x0a, 0x0f, 0x55, 0x69, 0x6e, 0x50, 0x61,
|
|
||||||
0x69, 0x72, 0x52, 0x65, 0x61, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x65,
|
|
||||||
0x65, 0x72, 0x55, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x70, 0x65, 0x65,
|
|
||||||
0x72, 0x55, 0x69, 0x6e, 0x12, 0x22, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x61, 0x64,
|
|
||||||
0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x6c, 0x61, 0x73, 0x74,
|
|
||||||
0x52, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x72, 0x6d, 0x53,
|
|
||||||
0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x63, 0x72, 0x6d, 0x53, 0x69, 0x67,
|
|
||||||
0x12, 0x1a, 0x0a, 0x08, 0x70, 0x65, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01,
|
|
||||||
0x28, 0x0d, 0x52, 0x08, 0x70, 0x65, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08,
|
|
||||||
0x63, 0x68, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08,
|
|
||||||
0x63, 0x68, 0x61, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x70, 0x69, 0x64,
|
|
||||||
0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x63, 0x70, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07,
|
|
||||||
0x61, 0x69, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61,
|
|
||||||
0x69, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x6f, 0x54, 0x69, 0x6e, 0x79,
|
|
||||||
0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x74, 0x6f, 0x54, 0x69, 0x6e, 0x79,
|
|
||||||
0x49, 0x64, 0x22, 0xa7, 0x01, 0x0a, 0x17, 0x50, 0x62, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65,
|
|
||||||
0x61, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 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, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67,
|
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x12, 0x1c,
|
|
||||||
0x0a, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
|
|
||||||
0x04, 0x52, 0x09, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x09,
|
|
||||||
0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x71, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52,
|
|
||||||
0x09, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65, 0x71, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x72,
|
|
||||||
0x6f, 0x75, 0x70, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x71, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52,
|
|
||||||
0x0b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x73, 0x67, 0x53, 0x65, 0x71, 0x22, 0x9d, 0x01, 0x0a,
|
|
||||||
0x19, 0x50, 0x62, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x64,
|
|
||||||
0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 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, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01,
|
|
||||||
0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
|
|
||||||
0x6e, 0x66, 0x55, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x6f, 0x6e,
|
|
||||||
0x66, 0x55, 0x69, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x65,
|
|
||||||
0x71, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53,
|
|
||||||
0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x53, 0x65, 0x71, 0x18, 0x05, 0x20,
|
|
||||||
0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x66, 0x53, 0x65, 0x71, 0x22, 0x67, 0x0a, 0x15,
|
|
||||||
0x50, 0x62, 0x43, 0x32, 0x43, 0x52, 0x65, 0x61, 0x64, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x72,
|
|
||||||
0x74, 0x52, 0x65, 0x73, 0x70, 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, 0x16, 0x0a,
|
|
||||||
0x06, 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65,
|
|
||||||
0x72, 0x72, 0x6d, 0x73, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x79, 0x6e, 0x63, 0x43, 0x6f, 0x6f,
|
|
||||||
0x6b, 0x69, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x79, 0x6e, 0x63, 0x43,
|
|
||||||
0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x2f, 0x3b, 0x6d, 0x73, 0x67,
|
|
||||||
}
|
|
||||||
|
|
||||||
var (
|
|
||||||
file_report_proto_rawDescOnce sync.Once
|
|
||||||
file_report_proto_rawDescData = file_report_proto_rawDesc
|
|
||||||
)
|
|
||||||
|
|
||||||
func file_report_proto_rawDescGZIP() []byte {
|
|
||||||
file_report_proto_rawDescOnce.Do(func() {
|
|
||||||
file_report_proto_rawDescData = protoimpl.X.CompressGZIP(file_report_proto_rawDescData)
|
|
||||||
})
|
|
||||||
return file_report_proto_rawDescData
|
|
||||||
}
|
|
||||||
|
|
||||||
var file_report_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
||||||
var file_report_proto_goTypes = []interface{}{
|
|
||||||
(*PbMsgReadedReportReq)(nil), // 0: PbMsgReadedReportReq
|
|
||||||
(*PbMsgReadedReportResp)(nil), // 1: PbMsgReadedReportResp
|
|
||||||
(*PbGroupReadedReportReq)(nil), // 2: PbGroupReadedReportReq
|
|
||||||
(*PbDiscussReadedReportReq)(nil), // 3: PbDiscussReadedReportReq
|
|
||||||
(*PbC2CReadedReportReq)(nil), // 4: PbC2CReadedReportReq
|
|
||||||
(*UinPairReadInfo)(nil), // 5: UinPairReadInfo
|
|
||||||
(*PbGroupReadedReportResp)(nil), // 6: PbGroupReadedReportResp
|
|
||||||
(*PbDiscussReadedReportResp)(nil), // 7: PbDiscussReadedReportResp
|
|
||||||
(*PbC2CReadedReportResp)(nil), // 8: PbC2CReadedReportResp
|
|
||||||
}
|
|
||||||
var file_report_proto_depIdxs = []int32{
|
|
||||||
2, // 0: PbMsgReadedReportReq.grpReadReport:type_name -> PbGroupReadedReportReq
|
|
||||||
3, // 1: PbMsgReadedReportReq.disReadReport:type_name -> PbDiscussReadedReportReq
|
|
||||||
4, // 2: PbMsgReadedReportReq.c2CReadReport:type_name -> PbC2CReadedReportReq
|
|
||||||
6, // 3: PbMsgReadedReportResp.grpReadReport:type_name -> PbGroupReadedReportResp
|
|
||||||
7, // 4: PbMsgReadedReportResp.disReadReport:type_name -> PbDiscussReadedReportResp
|
|
||||||
8, // 5: PbMsgReadedReportResp.c2CReadReport:type_name -> PbC2CReadedReportResp
|
|
||||||
5, // 6: PbC2CReadedReportReq.pairInfo:type_name -> UinPairReadInfo
|
|
||||||
7, // [7:7] is the sub-list for method output_type
|
|
||||||
7, // [7:7] is the sub-list for method input_type
|
|
||||||
7, // [7:7] is the sub-list for extension type_name
|
|
||||||
7, // [7:7] is the sub-list for extension extendee
|
|
||||||
0, // [0:7] is the sub-list for field type_name
|
|
||||||
}
|
|
||||||
|
|
||||||
func init() { file_report_proto_init() }
|
|
||||||
func file_report_proto_init() {
|
|
||||||
if File_report_proto != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if !protoimpl.UnsafeEnabled {
|
|
||||||
file_report_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PbMsgReadedReportReq); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_report_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PbMsgReadedReportResp); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_report_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PbGroupReadedReportReq); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_report_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PbDiscussReadedReportReq); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_report_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PbC2CReadedReportReq); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_report_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*UinPairReadInfo); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_report_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PbGroupReadedReportResp); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_report_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PbDiscussReadedReportResp); i {
|
|
||||||
case 0:
|
|
||||||
return &v.state
|
|
||||||
case 1:
|
|
||||||
return &v.sizeCache
|
|
||||||
case 2:
|
|
||||||
return &v.unknownFields
|
|
||||||
default:
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file_report_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
||||||
switch v := v.(*PbC2CReadedReportResp); 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_report_proto_rawDesc,
|
|
||||||
NumEnums: 0,
|
|
||||||
NumMessages: 9,
|
|
||||||
NumExtensions: 0,
|
|
||||||
NumServices: 0,
|
|
||||||
},
|
|
||||||
GoTypes: file_report_proto_goTypes,
|
|
||||||
DependencyIndexes: file_report_proto_depIdxs,
|
|
||||||
MessageInfos: file_report_proto_msgTypes,
|
|
||||||
}.Build()
|
|
||||||
File_report_proto = out.File
|
|
||||||
file_report_proto_rawDesc = nil
|
|
||||||
file_report_proto_goTypes = nil
|
|
||||||
file_report_proto_depIdxs = nil
|
|
||||||
}
|
|
@ -5,12 +5,12 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/internal/packets"
|
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/packets"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/message"
|
"github.com/Mrs4s/MiraiGo/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ func (c *QQClient) buildGetOneDayRoamMsgRequest(target, lastMsgTime, random int6
|
|||||||
Random: proto.Uint64(uint64(random)),
|
Random: proto.Uint64(uint64(random)),
|
||||||
ReadCnt: &count,
|
ReadCnt: &count,
|
||||||
}
|
}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbGetOneDayRoamMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbGetOneDayRoamMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
@ -175,11 +175,11 @@ func (c *QQClient) buildFriendSendingPacket(target int64, msgSeq, r, pkgNum, pkg
|
|||||||
Const2: &syncConst2,
|
Const2: &syncConst2,
|
||||||
Const3: proto.Int64(0x1d),
|
Const3: proto.Int64(0x1d),
|
||||||
}
|
}
|
||||||
b, _ := proto.Marshal(cookie)
|
b, _ := protobuf.Marshal(cookie)
|
||||||
return b
|
return b
|
||||||
}(),
|
}(),
|
||||||
}
|
}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbSendMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbSendMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
@ -209,11 +209,11 @@ func (c *QQClient) buildGroupTempSendingPacket(groupUin, target int64, msgSeq, r
|
|||||||
Const2: &syncConst2,
|
Const2: &syncConst2,
|
||||||
Const3: proto.Int64(0x1d),
|
Const3: proto.Int64(0x1d),
|
||||||
}
|
}
|
||||||
b, _ := proto.Marshal(cookie)
|
b, _ := protobuf.Marshal(cookie)
|
||||||
return b
|
return b
|
||||||
}(),
|
}(),
|
||||||
}
|
}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbSendMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbSendMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
@ -242,11 +242,11 @@ func (c *QQClient) buildWPATempSendingPacket(uin int64, sig []byte, msgSeq, r in
|
|||||||
Const2: &syncConst2,
|
Const2: &syncConst2,
|
||||||
Const3: proto.Int64(0x1d),
|
Const3: proto.Int64(0x1d),
|
||||||
}
|
}
|
||||||
b, _ := proto.Marshal(cookie)
|
b, _ := protobuf.Marshal(cookie)
|
||||||
return b
|
return b
|
||||||
}(),
|
}(),
|
||||||
}
|
}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbSendMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "MessageSvc.PbSendMsg", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
|
@ -15,8 +15,8 @@ import (
|
|||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x346"
|
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x346"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/pttcenter"
|
"github.com/Mrs4s/MiraiGo/client/pb/pttcenter"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/message"
|
"github.com/Mrs4s/MiraiGo/message"
|
||||||
"github.com/Mrs4s/MiraiGo/utils"
|
"github.com/Mrs4s/MiraiGo/utils"
|
||||||
)
|
)
|
||||||
|
@ -7,6 +7,8 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/internal/packets"
|
"github.com/Mrs4s/MiraiGo/internal/packets"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
@ -15,7 +17,7 @@ import (
|
|||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x3f6"
|
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x3f6"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x6ff"
|
"github.com/Mrs4s/MiraiGo/client/pb/cmd0x6ff"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/utils"
|
"github.com/Mrs4s/MiraiGo/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -43,7 +45,7 @@ func (c *QQClient) getQiDianAddressDetailList() ([]*FriendInfo, error) {
|
|||||||
return nil, errors.Wrap(err, "request error")
|
return nil, errors.Wrap(err, "request error")
|
||||||
}
|
}
|
||||||
rsp := &cmd0x6ff.C519RspBody{}
|
rsp := &cmd0x6ff.C519RspBody{}
|
||||||
if err = proto.Unmarshal(rspData, rsp); err != nil {
|
if err = protobuf.Unmarshal(rspData, rsp); err != nil {
|
||||||
return nil, errors.Wrap(err, "unmarshal error")
|
return nil, errors.Wrap(err, "unmarshal error")
|
||||||
}
|
}
|
||||||
if rsp.GetAddressDetailListRspBody == nil {
|
if rsp.GetAddressDetailListRspBody == nil {
|
||||||
@ -86,7 +88,7 @@ func (c *QQClient) buildLoginExtraPacket() (uint16, []byte) {
|
|||||||
SubAppId: &c.version.AppId,
|
SubAppId: &c.version.AppId,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "qidianservice.69", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "qidianservice.69", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
@ -103,7 +105,7 @@ func (c *QQClient) buildConnKeyRequestPacket() (uint16, []byte) {
|
|||||||
ServiceTypes: []uint32{1},
|
ServiceTypes: []uint32{1},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "HttpConn.0x6ff_501", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "HttpConn.0x6ff_501", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
@ -112,8 +114,8 @@ func (c *QQClient) bigDataRequest(subCmd uint32, req proto.Message) ([]byte, err
|
|||||||
if c.QiDian.bigDataReqSession == nil {
|
if c.QiDian.bigDataReqSession == nil {
|
||||||
return nil, errors.New("please call conn key request method before")
|
return nil, errors.New("please call conn key request method before")
|
||||||
}
|
}
|
||||||
data, _ := proto.Marshal(req)
|
data, _ := protobuf.Marshal(req)
|
||||||
head, _ := proto.Marshal(&msg.IMHead{
|
head, _ := protobuf.Marshal(&msg.IMHead{
|
||||||
HeadType: proto.Uint32(4),
|
HeadType: proto.Uint32(4),
|
||||||
HttpconnHead: &msg.HttpConnHead{
|
HttpconnHead: &msg.HttpConnHead{
|
||||||
Uin: proto.Uint64(uint64(c.Uin)),
|
Uin: proto.Uint64(uint64(c.Uin)),
|
||||||
@ -158,7 +160,7 @@ func (c *QQClient) bigDataRequest(subCmd uint32, req proto.Message) ([]byte, err
|
|||||||
|
|
||||||
func decodeLoginExtraResponse(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeLoginExtraResponse(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
rsp := cmd0x3f6.C3F6RspBody{}
|
rsp := cmd0x3f6.C3F6RspBody{}
|
||||||
if err := proto.Unmarshal(payload, &rsp); err != nil {
|
if err := protobuf.Unmarshal(payload, &rsp); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
if rsp.SubcmdLoginProcessCompleteRspBody == nil {
|
if rsp.SubcmdLoginProcessCompleteRspBody == nil {
|
||||||
@ -174,7 +176,7 @@ func decodeLoginExtraResponse(c *QQClient, _ *incomingPacketInfo, payload []byte
|
|||||||
|
|
||||||
func decodeConnKeyResponse(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeConnKeyResponse(c *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
rsp := cmd0x6ff.C501RspBody{}
|
rsp := cmd0x6ff.C501RspBody{}
|
||||||
if err := proto.Unmarshal(payload, &rsp); err != nil {
|
if err := protobuf.Unmarshal(payload, &rsp); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
if c.QiDian == nil {
|
if c.QiDian == nil {
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
package client
|
package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/Mrs4s/MiraiGo/internal/packets"
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/packets"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/message"
|
"github.com/Mrs4s/MiraiGo/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -62,7 +63,7 @@ func (c *QQClient) buildGroupRecallPacket(groupCode int64, msgSeq, msgRan int32)
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "PbMessageSvc.PbMsgWithDraw", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "PbMessageSvc.PbMsgWithDraw", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
@ -91,14 +92,14 @@ func (c *QQClient) buildPrivateRecallPacket(uin, ts int64, msgSeq, random int32)
|
|||||||
SubCmd: proto.Int32(1),
|
SubCmd: proto.Int32(1),
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
payload, _ := proto.Marshal(req)
|
payload, _ := protobuf.Marshal(req)
|
||||||
packet := packets.BuildUniPacket(c.Uin, seq, "PbMessageSvc.PbMsgWithDraw", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
packet := packets.BuildUniPacket(c.Uin, seq, "PbMessageSvc.PbMsgWithDraw", 1, c.OutGoingPacketSessionId, EmptyBytes, c.sigInfo.d2Key, payload)
|
||||||
return seq, packet
|
return seq, packet
|
||||||
}
|
}
|
||||||
|
|
||||||
func decodeMsgWithDrawResponse(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeMsgWithDrawResponse(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
rsp := msg.MsgWithDrawResp{}
|
rsp := msg.MsgWithDrawResp{}
|
||||||
if err := proto.Unmarshal(payload, &rsp); err != nil {
|
if err := protobuf.Unmarshal(payload, &rsp); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
if len(rsp.C2CWithDraw) > 0 {
|
if len(rsp.C2CWithDraw) > 0 {
|
||||||
|
@ -12,8 +12,8 @@ import (
|
|||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary/jce"
|
"github.com/Mrs4s/MiraiGo/binary/jce"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msf"
|
"github.com/Mrs4s/MiraiGo/client/pb/msf"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
|
||||||
"github.com/Mrs4s/MiraiGo/internal/packets"
|
"github.com/Mrs4s/MiraiGo/internal/packets"
|
||||||
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x769"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/oidb/oidb0x769"
|
||||||
"github.com/Mrs4s/MiraiGo/message"
|
"github.com/Mrs4s/MiraiGo/message"
|
||||||
)
|
)
|
||||||
@ -175,7 +175,7 @@ func (c *QQClient) buildGetOfflineMsgRequestPacket() (uint16, []byte) {
|
|||||||
EndSeq: time.Now().Unix(),
|
EndSeq: time.Now().Unix(),
|
||||||
}
|
}
|
||||||
flag := msg.SyncFlag_START
|
flag := msg.SyncFlag_START
|
||||||
msgReq, _ := proto.Marshal(&msg.GetMessageRequest{
|
msgReq, _ := protobuf.Marshal(&msg.GetMessageRequest{
|
||||||
SyncFlag: &flag,
|
SyncFlag: &flag,
|
||||||
SyncCookie: c.syncCookie,
|
SyncCookie: c.syncCookie,
|
||||||
RambleFlag: proto.Int32(0),
|
RambleFlag: proto.Int32(0),
|
||||||
@ -252,11 +252,11 @@ func (c *QQClient) buildSyncMsgRequestPacket() (uint16, []byte) {
|
|||||||
OtherRambleNumber: proto.Int32(3),
|
OtherRambleNumber: proto.Int32(3),
|
||||||
MsgReqType: proto.Int32(1),
|
MsgReqType: proto.Int32(1),
|
||||||
}
|
}
|
||||||
offMsg, _ := proto.Marshal(msgReq)
|
offMsg, _ := protobuf.Marshal(msgReq)
|
||||||
msgReq.MsgReqType = proto.Int32(2)
|
msgReq.MsgReqType = proto.Int32(2)
|
||||||
msgReq.SyncCookie = nil
|
msgReq.SyncCookie = nil
|
||||||
msgReq.PubaccountCookie = c.pubAccountCookie
|
msgReq.PubaccountCookie = c.pubAccountCookie
|
||||||
pubMsg, _ := proto.Marshal(msgReq)
|
pubMsg, _ := protobuf.Marshal(msgReq)
|
||||||
buf := &jce.RequestDataVersion3{Map: map[string][]byte{
|
buf := &jce.RequestDataVersion3{Map: map[string][]byte{
|
||||||
"req_PbOffMsg": jce.NewJceWriter().WriteBytes(append([]byte{0, 0, 0, 0}, offMsg...), 0).Bytes(),
|
"req_PbOffMsg": jce.NewJceWriter().WriteBytes(append([]byte{0, 0, 0, 0}, offMsg...), 0).Bytes(),
|
||||||
"req_PbPubMsg": jce.NewJceWriter().WriteBytes(append([]byte{0, 0, 0, 0}, pubMsg...), 0).Bytes(),
|
"req_PbPubMsg": jce.NewJceWriter().WriteBytes(append([]byte{0, 0, 0, 0}, pubMsg...), 0).Bytes(),
|
||||||
@ -276,7 +276,7 @@ func (c *QQClient) buildSyncMsgRequestPacket() (uint16, []byte) {
|
|||||||
// PbMessageSvc.PbMsgReadedReport
|
// PbMessageSvc.PbMsgReadedReport
|
||||||
func (c *QQClient) buildGroupMsgReadedPacket(groupCode, msgSeq int64) (uint16, []byte) {
|
func (c *QQClient) buildGroupMsgReadedPacket(groupCode, msgSeq int64) (uint16, []byte) {
|
||||||
seq := c.nextSeq()
|
seq := c.nextSeq()
|
||||||
req, _ := proto.Marshal(&msg.PbMsgReadedReportReq{GrpReadReport: []*msg.PbGroupReadedReportReq{{
|
req, _ := protobuf.Marshal(&msg.PbMsgReadedReportReq{GrpReadReport: []*msg.PbGroupReadedReportReq{{
|
||||||
GroupCode: proto.Uint64(uint64(groupCode)),
|
GroupCode: proto.Uint64(uint64(groupCode)),
|
||||||
LastReadSeq: proto.Uint64(uint64(msgSeq)),
|
LastReadSeq: proto.Uint64(uint64(msgSeq)),
|
||||||
}}})
|
}}})
|
||||||
@ -286,7 +286,7 @@ func (c *QQClient) buildGroupMsgReadedPacket(groupCode, msgSeq int64) (uint16, [
|
|||||||
|
|
||||||
func (c *QQClient) buildPrivateMsgReadedPacket(uin, time int64) (uint16, []byte) {
|
func (c *QQClient) buildPrivateMsgReadedPacket(uin, time int64) (uint16, []byte) {
|
||||||
seq := c.nextSeq()
|
seq := c.nextSeq()
|
||||||
req, _ := proto.Marshal(&msg.PbMsgReadedReportReq{C2CReadReport: &msg.PbC2CReadedReportReq{PairInfo: []*msg.UinPairReadInfo{
|
req, _ := protobuf.Marshal(&msg.PbMsgReadedReportReq{C2CReadReport: &msg.PbC2CReadedReportReq{PairInfo: []*msg.UinPairReadInfo{
|
||||||
{
|
{
|
||||||
PeerUin: proto.Uint64(uint64(uin)),
|
PeerUin: proto.Uint64(uint64(uin)),
|
||||||
LastReadTime: proto.Uint32(uint32(time)),
|
LastReadTime: proto.Uint32(uint32(time)),
|
||||||
@ -367,7 +367,7 @@ func decodePushParamPacket(c *QQClient, _ *incomingPacketInfo, payload []byte) (
|
|||||||
// RegPrxySvc.PbSyncMsg
|
// RegPrxySvc.PbSyncMsg
|
||||||
func decodeMsgSyncResponse(c *QQClient, info *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeMsgSyncResponse(c *QQClient, info *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
rsp := &msf.SvcRegisterProxyMsgResp{}
|
rsp := &msf.SvcRegisterProxyMsgResp{}
|
||||||
if err := proto.Unmarshal(payload, rsp); err != nil {
|
if err := protobuf.Unmarshal(payload, rsp); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
ret := &sessionSyncEvent{
|
ret := &sessionSyncEvent{
|
||||||
@ -380,7 +380,7 @@ func decodeMsgSyncResponse(c *QQClient, info *incomingPacketInfo, payload []byte
|
|||||||
if len(rsp.GroupMsg) > 0 {
|
if len(rsp.GroupMsg) > 0 {
|
||||||
for _, gm := range rsp.GroupMsg {
|
for _, gm := range rsp.GroupMsg {
|
||||||
gmRsp := &msg.GetGroupMsgResp{}
|
gmRsp := &msg.GetGroupMsgResp{}
|
||||||
if err := proto.Unmarshal(gm.Content[4:], gmRsp); err != nil {
|
if err := protobuf.Unmarshal(gm.Content[4:], gmRsp); err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
var latest []*message.GroupMessage
|
var latest []*message.GroupMessage
|
||||||
@ -401,7 +401,7 @@ func decodeMsgSyncResponse(c *QQClient, info *incomingPacketInfo, payload []byte
|
|||||||
}
|
}
|
||||||
if len(rsp.C2CMsg) > 4 {
|
if len(rsp.C2CMsg) > 4 {
|
||||||
c2cRsp := &msg.GetMessageResponse{}
|
c2cRsp := &msg.GetMessageResponse{}
|
||||||
if proto.Unmarshal(rsp.C2CMsg[4:], c2cRsp) == nil {
|
if protobuf.Unmarshal(rsp.C2CMsg[4:], c2cRsp) == nil {
|
||||||
c.c2cMessageSyncProcessor(c2cRsp, info)
|
c.c2cMessageSyncProcessor(c2cRsp, info)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -411,17 +411,17 @@ func decodeMsgSyncResponse(c *QQClient, info *incomingPacketInfo, payload []byte
|
|||||||
// OnlinePush.PbC2CMsgSync
|
// OnlinePush.PbC2CMsgSync
|
||||||
func decodeC2CSyncPacket(c *QQClient, info *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeC2CSyncPacket(c *QQClient, info *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
m := msg.PbPushMsg{}
|
m := msg.PbPushMsg{}
|
||||||
if err := proto.Unmarshal(payload, &m); err != nil {
|
if err := protobuf.Unmarshal(payload, &m); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
_ = c.sendPacket(c.buildDeleteOnlinePushPacket(c.Uin, m.GetSvrip(), m.GetPushToken(), info.SequenceId, nil))
|
_ = c.sendPacket(c.buildDeleteOnlinePushPacket(c.Uin, m.GetSvrip(), m.PushToken, info.SequenceId, nil))
|
||||||
c.commMsgProcessor(m.Msg, info)
|
c.commMsgProcessor(m.Msg, info)
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func decodeMsgReadedResponse(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
func decodeMsgReadedResponse(_ *QQClient, _ *incomingPacketInfo, payload []byte) (interface{}, error) {
|
||||||
rsp := msg.PbMsgReadedReportResp{}
|
rsp := msg.PbMsgReadedReportResp{}
|
||||||
if err := proto.Unmarshal(payload, &rsp); err != nil {
|
if err := protobuf.Unmarshal(payload, &rsp); err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
return nil, errors.Wrap(err, "failed to unmarshal protobuf message")
|
||||||
}
|
}
|
||||||
if len(rsp.GrpReadReport) > 0 {
|
if len(rsp.GrpReadReport) > 0 {
|
||||||
|
2
go.mod
2
go.mod
@ -5,7 +5,7 @@ go 1.16
|
|||||||
require (
|
require (
|
||||||
github.com/klauspost/compress v1.13.6
|
github.com/klauspost/compress v1.13.6
|
||||||
github.com/pkg/errors v0.9.1
|
github.com/pkg/errors v0.9.1
|
||||||
github.com/segmentio/encoding v0.2.23
|
github.com/segmentio/encoding v0.3.0
|
||||||
github.com/stretchr/testify v1.3.0
|
github.com/stretchr/testify v1.3.0
|
||||||
github.com/tidwall/gjson v1.11.0
|
github.com/tidwall/gjson v1.11.0
|
||||||
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f
|
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f
|
||||||
|
4
go.sum
4
go.sum
@ -13,8 +13,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
|
|||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
github.com/segmentio/asm v1.1.0 h1:fkVr8k5J4sKoFjTGVD6r1yKvDKqmvrEh3K7iyVxgBs8=
|
github.com/segmentio/asm v1.1.0 h1:fkVr8k5J4sKoFjTGVD6r1yKvDKqmvrEh3K7iyVxgBs8=
|
||||||
github.com/segmentio/asm v1.1.0/go.mod h1:4EUJGaKsB8ImLUwOGORVsNd9vTRDeh44JGsY4aKp5I4=
|
github.com/segmentio/asm v1.1.0/go.mod h1:4EUJGaKsB8ImLUwOGORVsNd9vTRDeh44JGsY4aKp5I4=
|
||||||
github.com/segmentio/encoding v0.2.23 h1:5C68yOwOsmUc04L+Od9VeNvqxaVsTcUPbnOUzXDs48A=
|
github.com/segmentio/encoding v0.3.0 h1:kv9Y9vWgmG/3N/ENT4FxLKmmG5kaAcV2auRjhEus494=
|
||||||
github.com/segmentio/encoding v0.2.23/go.mod h1:waft2p6XI4z2pk07M0YzZV4wEiqaRvsBSyWNHxVx4gU=
|
github.com/segmentio/encoding v0.3.0/go.mod h1:waft2p6XI4z2pk07M0YzZV4wEiqaRvsBSyWNHxVx4gU=
|
||||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||||
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
|
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
|
||||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||||
|
199
internal/protobuf/data/channel/MsgResponsesSvr.pb.go
Normal file
199
internal/protobuf/data/channel/MsgResponsesSvr.pb.go
Normal file
@ -0,0 +1,199 @@
|
|||||||
|
// Code generated by yaprotoc. DO NOT EDIT.
|
||||||
|
// source: channel/MsgResponsesSvr.proto
|
||||||
|
|
||||||
|
package channel
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
"github.com/segmentio/encoding/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
type BatchGetMsgRspCountReq struct {
|
||||||
|
GuildMsgList []*GuildMsg `protobuf:"bytes,1,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BatchGetMsgRspCountReq) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type BatchGetMsgRspCountRsp struct {
|
||||||
|
GuildMsgInfoList []*GuildMsgInfo `protobuf:"bytes,1,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *BatchGetMsgRspCountRsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelMsgInfo struct {
|
||||||
|
ChannelId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
RespData []*MsgRespData `protobuf:"bytes,2,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgInfo) GetChannelId() uint64 {
|
||||||
|
if x != nil && x.ChannelId != nil {
|
||||||
|
return *x.ChannelId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type EmojiReaction struct {
|
||||||
|
EmojiId *string `protobuf:"bytes,1,opt"`
|
||||||
|
EmojiType *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
Cnt *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
IsClicked *bool `protobuf:"varint,4,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *EmojiReaction) GetEmojiId() string {
|
||||||
|
if x != nil && x.EmojiId != nil {
|
||||||
|
return *x.EmojiId
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *EmojiReaction) GetEmojiType() uint64 {
|
||||||
|
if x != nil && x.EmojiType != nil {
|
||||||
|
return *x.EmojiType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *EmojiReaction) GetCnt() uint64 {
|
||||||
|
if x != nil && x.Cnt != nil {
|
||||||
|
return *x.Cnt
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *EmojiReaction) GetIsClicked() bool {
|
||||||
|
if x != nil && x.IsClicked != nil {
|
||||||
|
return *x.IsClicked
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *EmojiReaction) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GuildMsg struct {
|
||||||
|
GuildId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
ChannelMsgList []*SvrChannelMsg `protobuf:"bytes,2,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMsg) GetGuildId() uint64 {
|
||||||
|
if x != nil && x.GuildId != nil {
|
||||||
|
return *x.GuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMsg) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GuildMsgInfo struct {
|
||||||
|
GuildId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
ChannelMsgInfoList []*ChannelMsgInfo `protobuf:"bytes,2,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMsgInfo) GetGuildId() uint64 {
|
||||||
|
if x != nil && x.GuildId != nil {
|
||||||
|
return *x.GuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMsgInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MsgCnt struct {
|
||||||
|
Id *MsgId `protobuf:"bytes,1,opt"`
|
||||||
|
EmojiReaction []*EmojiReaction `protobuf:"bytes,2,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgCnt) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MsgId struct {
|
||||||
|
Version *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Seq *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgId) GetVersion() uint64 {
|
||||||
|
if x != nil && x.Version != nil {
|
||||||
|
return *x.Version
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgId) GetSeq() uint64 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgId) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MsgRespData struct {
|
||||||
|
Id *MsgId `protobuf:"bytes,1,opt"`
|
||||||
|
Cnt []byte `protobuf:"bytes,2,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgRespData) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type SvrChannelMsg struct {
|
||||||
|
ChannelId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Id []*MsgId `protobuf:"bytes,2,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SvrChannelMsg) GetChannelId() uint64 {
|
||||||
|
if x != nil && x.ChannelId != nil {
|
||||||
|
return *x.ChannelId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *SvrChannelMsg) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
614
internal/protobuf/data/channel/common.pb.go
Normal file
614
internal/protobuf/data/channel/common.pb.go
Normal file
@ -0,0 +1,614 @@
|
|||||||
|
// Code generated by yaprotoc. DO NOT EDIT.
|
||||||
|
// source: channel/common.proto
|
||||||
|
|
||||||
|
package channel
|
||||||
|
|
||||||
|
import (
|
||||||
|
msg "github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
"github.com/segmentio/encoding/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ChannelContentHead struct {
|
||||||
|
Type *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
SubType *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
Random *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
Seq *uint64 `protobuf:"varint,4,opt"`
|
||||||
|
CntSeq *uint64 `protobuf:"varint,5,opt"`
|
||||||
|
Time *uint64 `protobuf:"varint,6,opt"`
|
||||||
|
Meta []byte `protobuf:"bytes,7,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelContentHead) GetType() uint64 {
|
||||||
|
if x != nil && x.Type != nil {
|
||||||
|
return *x.Type
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelContentHead) GetSubType() uint64 {
|
||||||
|
if x != nil && x.SubType != nil {
|
||||||
|
return *x.SubType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelContentHead) GetRandom() uint64 {
|
||||||
|
if x != nil && x.Random != nil {
|
||||||
|
return *x.Random
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelContentHead) GetSeq() uint64 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelContentHead) GetCntSeq() uint64 {
|
||||||
|
if x != nil && x.CntSeq != nil {
|
||||||
|
return *x.CntSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelContentHead) GetTime() uint64 {
|
||||||
|
if x != nil && x.Time != nil {
|
||||||
|
return *x.Time
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelContentHead) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelEvent struct {
|
||||||
|
Type *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Version *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
OpInfo *ChannelMsgOpInfo `protobuf:"bytes,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelEvent) GetType() uint64 {
|
||||||
|
if x != nil && x.Type != nil {
|
||||||
|
return *x.Type
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelEvent) GetVersion() uint64 {
|
||||||
|
if x != nil && x.Version != nil {
|
||||||
|
return *x.Version
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelEvent) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelExtInfo struct {
|
||||||
|
FromNick []byte `protobuf:"bytes,1,opt"`
|
||||||
|
GuildName []byte `protobuf:"bytes,2,opt"`
|
||||||
|
ChannelName []byte `protobuf:"bytes,3,opt"`
|
||||||
|
Visibility *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
NotifyType *uint32 `protobuf:"varint,5,opt"`
|
||||||
|
OfflineFlag *uint32 `protobuf:"varint,6,opt"`
|
||||||
|
NameType *uint32 `protobuf:"varint,7,opt"`
|
||||||
|
MemberName []byte `protobuf:"bytes,8,opt"`
|
||||||
|
Timestamp *uint32 `protobuf:"varint,9,opt"`
|
||||||
|
EventVersion *uint64 `protobuf:"varint,10,opt"`
|
||||||
|
Events []*ChannelEvent `protobuf:"bytes,11,rep"`
|
||||||
|
FromRoleInfo *ChannelRole `protobuf:"bytes,12,opt"`
|
||||||
|
FreqLimitInfo *ChannelFreqLimitInfo `protobuf:"bytes,13,opt"`
|
||||||
|
DirectMessageMember []*DirectMessageMember `protobuf:"bytes,14,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelExtInfo) GetVisibility() uint32 {
|
||||||
|
if x != nil && x.Visibility != nil {
|
||||||
|
return *x.Visibility
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelExtInfo) GetNotifyType() uint32 {
|
||||||
|
if x != nil && x.NotifyType != nil {
|
||||||
|
return *x.NotifyType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelExtInfo) GetOfflineFlag() uint32 {
|
||||||
|
if x != nil && x.OfflineFlag != nil {
|
||||||
|
return *x.OfflineFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelExtInfo) GetNameType() uint32 {
|
||||||
|
if x != nil && x.NameType != nil {
|
||||||
|
return *x.NameType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelExtInfo) GetTimestamp() uint32 {
|
||||||
|
if x != nil && x.Timestamp != nil {
|
||||||
|
return *x.Timestamp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelExtInfo) GetEventVersion() uint64 {
|
||||||
|
if x != nil && x.EventVersion != nil {
|
||||||
|
return *x.EventVersion
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelExtInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelFreqLimitInfo struct {
|
||||||
|
IsLimited *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
LeftCount *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
LimitTimestamp *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelFreqLimitInfo) GetIsLimited() uint32 {
|
||||||
|
if x != nil && x.IsLimited != nil {
|
||||||
|
return *x.IsLimited
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelFreqLimitInfo) GetLeftCount() uint32 {
|
||||||
|
if x != nil && x.LeftCount != nil {
|
||||||
|
return *x.LeftCount
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelFreqLimitInfo) GetLimitTimestamp() uint64 {
|
||||||
|
if x != nil && x.LimitTimestamp != nil {
|
||||||
|
return *x.LimitTimestamp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelFreqLimitInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelInfo struct {
|
||||||
|
Id *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Name []byte `protobuf:"bytes,2,opt"`
|
||||||
|
Color *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
Hoist *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelInfo) GetId() uint64 {
|
||||||
|
if x != nil && x.Id != nil {
|
||||||
|
return *x.Id
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelInfo) GetColor() uint32 {
|
||||||
|
if x != nil && x.Color != nil {
|
||||||
|
return *x.Color
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelInfo) GetHoist() uint32 {
|
||||||
|
if x != nil && x.Hoist != nil {
|
||||||
|
return *x.Hoist
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelLoginSig struct {
|
||||||
|
Type *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
Sig []byte `protobuf:"bytes,2,opt"`
|
||||||
|
Appid *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelLoginSig) GetType() uint32 {
|
||||||
|
if x != nil && x.Type != nil {
|
||||||
|
return *x.Type
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelLoginSig) GetAppid() uint32 {
|
||||||
|
if x != nil && x.Appid != nil {
|
||||||
|
return *x.Appid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelLoginSig) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelMeta struct {
|
||||||
|
FromUin *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
LoginSig *ChannelLoginSig `protobuf:"bytes,2,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMeta) GetFromUin() uint64 {
|
||||||
|
if x != nil && x.FromUin != nil {
|
||||||
|
return *x.FromUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMeta) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelMsgContent struct {
|
||||||
|
Head *ChannelMsgHead `protobuf:"bytes,1,opt"`
|
||||||
|
CtrlHead *ChannelMsgCtrlHead `protobuf:"bytes,2,opt"`
|
||||||
|
Body *msg.MessageBody `protobuf:"bytes,3,opt"`
|
||||||
|
ExtInfo *ChannelExtInfo `protobuf:"bytes,4,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgContent) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelMsgCtrlHead struct {
|
||||||
|
IncludeUin []uint64 `protobuf:"varint,1,rep"`
|
||||||
|
ExcludeUin []uint64 `protobuf:"varint,2,rep"`
|
||||||
|
Featureid []uint64 `protobuf:"varint,3,rep"`
|
||||||
|
OfflineFlag *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
Visibility *uint32 `protobuf:"varint,5,opt"`
|
||||||
|
CtrlFlag *uint64 `protobuf:"varint,6,opt"`
|
||||||
|
Events []*ChannelEvent `protobuf:"bytes,7,rep"`
|
||||||
|
Level *uint64 `protobuf:"varint,8,opt"`
|
||||||
|
PersonalLevels []*PersonalLevel `protobuf:"bytes,9,rep"`
|
||||||
|
GuildSyncSeq *uint64 `protobuf:"varint,10,opt"`
|
||||||
|
MemberNum *uint32 `protobuf:"varint,11,opt"`
|
||||||
|
ChannelType *uint32 `protobuf:"varint,12,opt"`
|
||||||
|
PrivateType *uint32 `protobuf:"varint,13,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgCtrlHead) GetOfflineFlag() uint32 {
|
||||||
|
if x != nil && x.OfflineFlag != nil {
|
||||||
|
return *x.OfflineFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgCtrlHead) GetVisibility() uint32 {
|
||||||
|
if x != nil && x.Visibility != nil {
|
||||||
|
return *x.Visibility
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgCtrlHead) GetCtrlFlag() uint64 {
|
||||||
|
if x != nil && x.CtrlFlag != nil {
|
||||||
|
return *x.CtrlFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgCtrlHead) GetLevel() uint64 {
|
||||||
|
if x != nil && x.Level != nil {
|
||||||
|
return *x.Level
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgCtrlHead) GetGuildSyncSeq() uint64 {
|
||||||
|
if x != nil && x.GuildSyncSeq != nil {
|
||||||
|
return *x.GuildSyncSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgCtrlHead) GetMemberNum() uint32 {
|
||||||
|
if x != nil && x.MemberNum != nil {
|
||||||
|
return *x.MemberNum
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgCtrlHead) GetChannelType() uint32 {
|
||||||
|
if x != nil && x.ChannelType != nil {
|
||||||
|
return *x.ChannelType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgCtrlHead) GetPrivateType() uint32 {
|
||||||
|
if x != nil && x.PrivateType != nil {
|
||||||
|
return *x.PrivateType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgCtrlHead) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelMsgHead struct {
|
||||||
|
RoutingHead *ChannelRoutingHead `protobuf:"bytes,1,opt"`
|
||||||
|
ContentHead *ChannelContentHead `protobuf:"bytes,2,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgHead) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelMsgMeta struct {
|
||||||
|
AtAllSeq *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgMeta) GetAtAllSeq() uint64 {
|
||||||
|
if x != nil && x.AtAllSeq != nil {
|
||||||
|
return *x.AtAllSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgMeta) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelMsgOpInfo struct {
|
||||||
|
OperatorTinyid *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
OperatorRole *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
Reason *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
Timestamp *uint64 `protobuf:"varint,4,opt"`
|
||||||
|
AtType *uint64 `protobuf:"varint,5,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgOpInfo) GetOperatorTinyid() uint64 {
|
||||||
|
if x != nil && x.OperatorTinyid != nil {
|
||||||
|
return *x.OperatorTinyid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgOpInfo) GetOperatorRole() uint64 {
|
||||||
|
if x != nil && x.OperatorRole != nil {
|
||||||
|
return *x.OperatorRole
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgOpInfo) GetReason() uint64 {
|
||||||
|
if x != nil && x.Reason != nil {
|
||||||
|
return *x.Reason
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgOpInfo) GetTimestamp() uint64 {
|
||||||
|
if x != nil && x.Timestamp != nil {
|
||||||
|
return *x.Timestamp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgOpInfo) GetAtType() uint64 {
|
||||||
|
if x != nil && x.AtType != nil {
|
||||||
|
return *x.AtType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgOpInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelRole struct {
|
||||||
|
Id *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Info []byte `protobuf:"bytes,2,opt"`
|
||||||
|
Flag *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelRole) GetId() uint64 {
|
||||||
|
if x != nil && x.Id != nil {
|
||||||
|
return *x.Id
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelRole) GetFlag() uint32 {
|
||||||
|
if x != nil && x.Flag != nil {
|
||||||
|
return *x.Flag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelRole) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelRoutingHead struct {
|
||||||
|
GuildId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
ChannelId *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
FromUin *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
FromTinyid *uint64 `protobuf:"varint,4,opt"`
|
||||||
|
GuildCode *uint64 `protobuf:"varint,5,opt"`
|
||||||
|
FromAppid *uint64 `protobuf:"varint,6,opt"`
|
||||||
|
DirectMessageFlag *uint32 `protobuf:"varint,7,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelRoutingHead) GetGuildId() uint64 {
|
||||||
|
if x != nil && x.GuildId != nil {
|
||||||
|
return *x.GuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelRoutingHead) GetChannelId() uint64 {
|
||||||
|
if x != nil && x.ChannelId != nil {
|
||||||
|
return *x.ChannelId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelRoutingHead) GetFromUin() uint64 {
|
||||||
|
if x != nil && x.FromUin != nil {
|
||||||
|
return *x.FromUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelRoutingHead) GetFromTinyid() uint64 {
|
||||||
|
if x != nil && x.FromTinyid != nil {
|
||||||
|
return *x.FromTinyid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelRoutingHead) GetGuildCode() uint64 {
|
||||||
|
if x != nil && x.GuildCode != nil {
|
||||||
|
return *x.GuildCode
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelRoutingHead) GetFromAppid() uint64 {
|
||||||
|
if x != nil && x.FromAppid != nil {
|
||||||
|
return *x.FromAppid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelRoutingHead) GetDirectMessageFlag() uint32 {
|
||||||
|
if x != nil && x.DirectMessageFlag != nil {
|
||||||
|
return *x.DirectMessageFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelRoutingHead) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type DirectMessageMember struct {
|
||||||
|
Uin *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Tinyid *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
SourceGuildId *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
SourceGuildName []byte `protobuf:"bytes,4,opt"`
|
||||||
|
NickName []byte `protobuf:"bytes,5,opt"`
|
||||||
|
MemberName []byte `protobuf:"bytes,6,opt"`
|
||||||
|
NotifyType *uint32 `protobuf:"varint,7,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DirectMessageMember) GetUin() uint64 {
|
||||||
|
if x != nil && x.Uin != nil {
|
||||||
|
return *x.Uin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DirectMessageMember) GetTinyid() uint64 {
|
||||||
|
if x != nil && x.Tinyid != nil {
|
||||||
|
return *x.Tinyid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DirectMessageMember) GetSourceGuildId() uint64 {
|
||||||
|
if x != nil && x.SourceGuildId != nil {
|
||||||
|
return *x.SourceGuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DirectMessageMember) GetNotifyType() uint32 {
|
||||||
|
if x != nil && x.NotifyType != nil {
|
||||||
|
return *x.NotifyType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DirectMessageMember) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type PersonalLevel struct {
|
||||||
|
ToUin *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Level *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PersonalLevel) GetToUin() uint64 {
|
||||||
|
if x != nil && x.ToUin != nil {
|
||||||
|
return *x.ToUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PersonalLevel) GetLevel() uint64 {
|
||||||
|
if x != nil && x.Level != nil {
|
||||||
|
return *x.Level
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PersonalLevel) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
115
internal/protobuf/data/channel/msgpush.pb.go
Normal file
115
internal/protobuf/data/channel/msgpush.pb.go
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
// Code generated by yaprotoc. DO NOT EDIT.
|
||||||
|
// source: channel/msgpush.proto
|
||||||
|
|
||||||
|
package channel
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
"github.com/segmentio/encoding/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
type FocusInfo struct {
|
||||||
|
ChannelIdList []uint64 `protobuf:"varint,1,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FocusInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MsgOnlinePush struct {
|
||||||
|
Msgs []*ChannelMsgContent `protobuf:"bytes,1,rep"`
|
||||||
|
GeneralFlag *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
NeedResp *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
ServerBuf []byte `protobuf:"bytes,4,opt"`
|
||||||
|
CompressFlag *uint32 `protobuf:"varint,5,opt"`
|
||||||
|
CompressMsg []byte `protobuf:"bytes,6,opt"`
|
||||||
|
FocusInfo *FocusInfo `protobuf:"bytes,7,opt"`
|
||||||
|
HugeFlag *uint32 `protobuf:"varint,8,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgOnlinePush) GetGeneralFlag() uint32 {
|
||||||
|
if x != nil && x.GeneralFlag != nil {
|
||||||
|
return *x.GeneralFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgOnlinePush) GetNeedResp() uint32 {
|
||||||
|
if x != nil && x.NeedResp != nil {
|
||||||
|
return *x.NeedResp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgOnlinePush) GetCompressFlag() uint32 {
|
||||||
|
if x != nil && x.CompressFlag != nil {
|
||||||
|
return *x.CompressFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgOnlinePush) GetHugeFlag() uint32 {
|
||||||
|
if x != nil && x.HugeFlag != nil {
|
||||||
|
return *x.HugeFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgOnlinePush) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MsgPushResp struct {
|
||||||
|
ServerBuf []byte `protobuf:"bytes,1,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgPushResp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type PressMsg struct {
|
||||||
|
Msgs []*ChannelMsgContent `protobuf:"bytes,1,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PressMsg) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ServerBuf struct {
|
||||||
|
SvrIp *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
SvrPort *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
EchoKey []byte `protobuf:"bytes,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ServerBuf) GetSvrIp() uint32 {
|
||||||
|
if x != nil && x.SvrIp != nil {
|
||||||
|
return *x.SvrIp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ServerBuf) GetSvrPort() uint32 {
|
||||||
|
if x != nil && x.SvrPort != nil {
|
||||||
|
return *x.SvrPort
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ServerBuf) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
86
internal/protobuf/data/channel/oidb0xf62.pb.go
Normal file
86
internal/protobuf/data/channel/oidb0xf62.pb.go
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
// Code generated by yaprotoc. DO NOT EDIT.
|
||||||
|
// source: channel/oidb0xf62.proto
|
||||||
|
|
||||||
|
package channel
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
"github.com/segmentio/encoding/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
type DF62ReqBody struct {
|
||||||
|
Msg *ChannelMsgContent `protobuf:"bytes,1,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DF62ReqBody) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type DF62RspBody struct {
|
||||||
|
Result *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
Errmsg []byte `protobuf:"bytes,2,opt"`
|
||||||
|
SendTime *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
Head *ChannelMsgHead `protobuf:"bytes,4,opt"`
|
||||||
|
ErrType *uint32 `protobuf:"varint,5,opt"`
|
||||||
|
TransSvrInfo *TransSvrInfo `protobuf:"bytes,6,opt"`
|
||||||
|
FreqLimitInfo *ChannelFreqLimitInfo `protobuf:"bytes,7,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DF62RspBody) GetResult() uint32 {
|
||||||
|
if x != nil && x.Result != nil {
|
||||||
|
return *x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DF62RspBody) GetSendTime() uint32 {
|
||||||
|
if x != nil && x.SendTime != nil {
|
||||||
|
return *x.SendTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DF62RspBody) GetErrType() uint32 {
|
||||||
|
if x != nil && x.ErrType != nil {
|
||||||
|
return *x.ErrType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DF62RspBody) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type TransSvrInfo struct {
|
||||||
|
SubType *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
RetCode *int32 `protobuf:"varint,2,opt"`
|
||||||
|
ErrMsg []byte `protobuf:"bytes,3,opt"`
|
||||||
|
TransInfo []byte `protobuf:"bytes,4,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TransSvrInfo) GetSubType() uint32 {
|
||||||
|
if x != nil && x.SubType != nil {
|
||||||
|
return *x.SubType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TransSvrInfo) GetRetCode() int32 {
|
||||||
|
if x != nil && x.RetCode != nil {
|
||||||
|
return *x.RetCode
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TransSvrInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
1578
internal/protobuf/data/channel/servtype.pb.go
Normal file
1578
internal/protobuf/data/channel/servtype.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
618
internal/protobuf/data/channel/synclogic.pb.go
Normal file
618
internal/protobuf/data/channel/synclogic.pb.go
Normal file
@ -0,0 +1,618 @@
|
|||||||
|
// Code generated by yaprotoc. DO NOT EDIT.
|
||||||
|
// source: channel/synclogic.proto
|
||||||
|
|
||||||
|
package channel
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
"github.com/segmentio/encoding/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ChannelMsg struct {
|
||||||
|
GuildId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
ChannelId *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
Result *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
RspBeginSeq *uint64 `protobuf:"varint,4,opt"`
|
||||||
|
RspEndSeq *uint64 `protobuf:"varint,5,opt"`
|
||||||
|
Msgs []*ChannelMsgContent `protobuf:"bytes,6,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsg) GetGuildId() uint64 {
|
||||||
|
if x != nil && x.GuildId != nil {
|
||||||
|
return *x.GuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsg) GetChannelId() uint64 {
|
||||||
|
if x != nil && x.ChannelId != nil {
|
||||||
|
return *x.ChannelId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsg) GetResult() uint32 {
|
||||||
|
if x != nil && x.Result != nil {
|
||||||
|
return *x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsg) GetRspBeginSeq() uint64 {
|
||||||
|
if x != nil && x.RspBeginSeq != nil {
|
||||||
|
return *x.RspBeginSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsg) GetRspEndSeq() uint64 {
|
||||||
|
if x != nil && x.RspEndSeq != nil {
|
||||||
|
return *x.RspEndSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsg) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelMsgReq struct {
|
||||||
|
ChannelParam *ChannelParam `protobuf:"bytes,1,opt"`
|
||||||
|
WithVersionFlag *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
DirectMessageFlag *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgReq) GetWithVersionFlag() uint32 {
|
||||||
|
if x != nil && x.WithVersionFlag != nil {
|
||||||
|
return *x.WithVersionFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgReq) GetDirectMessageFlag() uint32 {
|
||||||
|
if x != nil && x.DirectMessageFlag != nil {
|
||||||
|
return *x.DirectMessageFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgReq) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelMsgRsp struct {
|
||||||
|
Result *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
ErrMsg []byte `protobuf:"bytes,2,opt"`
|
||||||
|
ChannelMsg *ChannelMsg `protobuf:"bytes,3,opt"`
|
||||||
|
WithVersionFlag *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
GetMsgTime *uint64 `protobuf:"varint,5,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgRsp) GetResult() uint32 {
|
||||||
|
if x != nil && x.Result != nil {
|
||||||
|
return *x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgRsp) GetWithVersionFlag() uint32 {
|
||||||
|
if x != nil && x.WithVersionFlag != nil {
|
||||||
|
return *x.WithVersionFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgRsp) GetGetMsgTime() uint64 {
|
||||||
|
if x != nil && x.GetMsgTime != nil {
|
||||||
|
return *x.GetMsgTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelMsgRsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelNode struct {
|
||||||
|
ChannelId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Seq *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
CntSeq *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
Time *uint64 `protobuf:"varint,4,opt"`
|
||||||
|
MemberReadMsgSeq *uint64 `protobuf:"varint,5,opt"`
|
||||||
|
MemberReadCntSeq *uint64 `protobuf:"varint,6,opt"`
|
||||||
|
NotifyType *uint32 `protobuf:"varint,7,opt"`
|
||||||
|
ChannelName []byte `protobuf:"bytes,8,opt"`
|
||||||
|
ChannelType *uint32 `protobuf:"varint,9,opt"`
|
||||||
|
Meta []byte `protobuf:"bytes,10,opt"`
|
||||||
|
ReadMsgMeta []byte `protobuf:"bytes,11,opt"`
|
||||||
|
EventTime *uint32 `protobuf:"varint,12,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelNode) GetChannelId() uint64 {
|
||||||
|
if x != nil && x.ChannelId != nil {
|
||||||
|
return *x.ChannelId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelNode) GetSeq() uint64 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelNode) GetCntSeq() uint64 {
|
||||||
|
if x != nil && x.CntSeq != nil {
|
||||||
|
return *x.CntSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelNode) GetTime() uint64 {
|
||||||
|
if x != nil && x.Time != nil {
|
||||||
|
return *x.Time
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelNode) GetMemberReadMsgSeq() uint64 {
|
||||||
|
if x != nil && x.MemberReadMsgSeq != nil {
|
||||||
|
return *x.MemberReadMsgSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelNode) GetMemberReadCntSeq() uint64 {
|
||||||
|
if x != nil && x.MemberReadCntSeq != nil {
|
||||||
|
return *x.MemberReadCntSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelNode) GetNotifyType() uint32 {
|
||||||
|
if x != nil && x.NotifyType != nil {
|
||||||
|
return *x.NotifyType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelNode) GetChannelType() uint32 {
|
||||||
|
if x != nil && x.ChannelType != nil {
|
||||||
|
return *x.ChannelType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelNode) GetEventTime() uint32 {
|
||||||
|
if x != nil && x.EventTime != nil {
|
||||||
|
return *x.EventTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelNode) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelParam struct {
|
||||||
|
GuildId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
ChannelId *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
BeginSeq *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
EndSeq *uint64 `protobuf:"varint,4,opt"`
|
||||||
|
Time *uint64 `protobuf:"varint,5,opt"`
|
||||||
|
Version []uint64 `protobuf:"varint,6,rep"`
|
||||||
|
Seqs []*MsgCond `protobuf:"bytes,7,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelParam) GetGuildId() uint64 {
|
||||||
|
if x != nil && x.GuildId != nil {
|
||||||
|
return *x.GuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelParam) GetChannelId() uint64 {
|
||||||
|
if x != nil && x.ChannelId != nil {
|
||||||
|
return *x.ChannelId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelParam) GetBeginSeq() uint64 {
|
||||||
|
if x != nil && x.BeginSeq != nil {
|
||||||
|
return *x.BeginSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelParam) GetEndSeq() uint64 {
|
||||||
|
if x != nil && x.EndSeq != nil {
|
||||||
|
return *x.EndSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelParam) GetTime() uint64 {
|
||||||
|
if x != nil && x.Time != nil {
|
||||||
|
return *x.Time
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelParam) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type DirectMessageSource struct {
|
||||||
|
TinyId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
GuildId *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
GuildName []byte `protobuf:"bytes,3,opt"`
|
||||||
|
MemberName []byte `protobuf:"bytes,4,opt"`
|
||||||
|
NickName []byte `protobuf:"bytes,5,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DirectMessageSource) GetTinyId() uint64 {
|
||||||
|
if x != nil && x.TinyId != nil {
|
||||||
|
return *x.TinyId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DirectMessageSource) GetGuildId() uint64 {
|
||||||
|
if x != nil && x.GuildId != nil {
|
||||||
|
return *x.GuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DirectMessageSource) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type FirstViewMsg struct {
|
||||||
|
PushFlag *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
Seq *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
GuildNodes []*GuildNode `protobuf:"bytes,3,rep"`
|
||||||
|
ChannelMsgs []*ChannelMsg `protobuf:"bytes,4,rep"`
|
||||||
|
GetMsgTime *uint64 `protobuf:"varint,5,opt"`
|
||||||
|
DirectMessageGuildNodes []*GuildNode `protobuf:"bytes,6,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewMsg) GetPushFlag() uint32 {
|
||||||
|
if x != nil && x.PushFlag != nil {
|
||||||
|
return *x.PushFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewMsg) GetSeq() uint32 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewMsg) GetGetMsgTime() uint64 {
|
||||||
|
if x != nil && x.GetMsgTime != nil {
|
||||||
|
return *x.GetMsgTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewMsg) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type FirstViewReq struct {
|
||||||
|
LastMsgTime *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
UdcFlag *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
Seq *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
DirectMessageFlag *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewReq) GetLastMsgTime() uint64 {
|
||||||
|
if x != nil && x.LastMsgTime != nil {
|
||||||
|
return *x.LastMsgTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewReq) GetUdcFlag() uint32 {
|
||||||
|
if x != nil && x.UdcFlag != nil {
|
||||||
|
return *x.UdcFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewReq) GetSeq() uint32 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewReq) GetDirectMessageFlag() uint32 {
|
||||||
|
if x != nil && x.DirectMessageFlag != nil {
|
||||||
|
return *x.DirectMessageFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewReq) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type FirstViewRsp struct {
|
||||||
|
Result *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
ErrMsg []byte `protobuf:"bytes,2,opt"`
|
||||||
|
Seq *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
UdcFlag *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
GuildCount *uint32 `protobuf:"varint,5,opt"`
|
||||||
|
SelfTinyid *uint64 `protobuf:"varint,6,opt"`
|
||||||
|
DirectMessageSwitch *uint32 `protobuf:"varint,7,opt"`
|
||||||
|
DirectMessageGuildCount *uint32 `protobuf:"varint,8,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewRsp) GetResult() uint32 {
|
||||||
|
if x != nil && x.Result != nil {
|
||||||
|
return *x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewRsp) GetSeq() uint32 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewRsp) GetUdcFlag() uint32 {
|
||||||
|
if x != nil && x.UdcFlag != nil {
|
||||||
|
return *x.UdcFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewRsp) GetGuildCount() uint32 {
|
||||||
|
if x != nil && x.GuildCount != nil {
|
||||||
|
return *x.GuildCount
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewRsp) GetSelfTinyid() uint64 {
|
||||||
|
if x != nil && x.SelfTinyid != nil {
|
||||||
|
return *x.SelfTinyid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewRsp) GetDirectMessageSwitch() uint32 {
|
||||||
|
if x != nil && x.DirectMessageSwitch != nil {
|
||||||
|
return *x.DirectMessageSwitch
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewRsp) GetDirectMessageGuildCount() uint32 {
|
||||||
|
if x != nil && x.DirectMessageGuildCount != nil {
|
||||||
|
return *x.DirectMessageGuildCount
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FirstViewRsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GuildNode struct {
|
||||||
|
GuildId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
GuildCode *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
ChannelNodes []*ChannelNode `protobuf:"bytes,3,rep"`
|
||||||
|
GuildName []byte `protobuf:"bytes,4,opt"`
|
||||||
|
PeerSource *DirectMessageSource `protobuf:"bytes,5,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildNode) GetGuildId() uint64 {
|
||||||
|
if x != nil && x.GuildId != nil {
|
||||||
|
return *x.GuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildNode) GetGuildCode() uint64 {
|
||||||
|
if x != nil && x.GuildCode != nil {
|
||||||
|
return *x.GuildCode
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildNode) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MsgCond struct {
|
||||||
|
Seq *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
EventVersion *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgCond) GetSeq() uint64 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgCond) GetEventVersion() uint64 {
|
||||||
|
if x != nil && x.EventVersion != nil {
|
||||||
|
return *x.EventVersion
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgCond) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MultiChannelMsg struct {
|
||||||
|
PushFlag *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
Seq *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
ChannelMsgs []*ChannelMsg `protobuf:"bytes,3,rep"`
|
||||||
|
GetMsgTime *uint64 `protobuf:"varint,4,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiChannelMsg) GetPushFlag() uint32 {
|
||||||
|
if x != nil && x.PushFlag != nil {
|
||||||
|
return *x.PushFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiChannelMsg) GetSeq() uint32 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiChannelMsg) GetGetMsgTime() uint64 {
|
||||||
|
if x != nil && x.GetMsgTime != nil {
|
||||||
|
return *x.GetMsgTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiChannelMsg) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MultiChannelMsgReq struct {
|
||||||
|
ChannelParams []*ChannelParam `protobuf:"bytes,1,rep"`
|
||||||
|
Seq *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
DirectMessageFlag *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiChannelMsgReq) GetSeq() uint32 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiChannelMsgReq) GetDirectMessageFlag() uint32 {
|
||||||
|
if x != nil && x.DirectMessageFlag != nil {
|
||||||
|
return *x.DirectMessageFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiChannelMsgReq) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MultiChannelMsgRsp struct {
|
||||||
|
Result *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
ErrMsg []byte `protobuf:"bytes,2,opt"`
|
||||||
|
Seq *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiChannelMsgRsp) GetResult() uint32 {
|
||||||
|
if x != nil && x.Result != nil {
|
||||||
|
return *x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiChannelMsgRsp) GetSeq() uint32 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MultiChannelMsgRsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ReqBody struct {
|
||||||
|
ChannelParam *ChannelParam `protobuf:"bytes,1,opt"`
|
||||||
|
DirectMessageFlag *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) GetDirectMessageFlag() uint32 {
|
||||||
|
if x != nil && x.DirectMessageFlag != nil {
|
||||||
|
return *x.DirectMessageFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ReqBody) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type RspBody struct {
|
||||||
|
Result *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
ErrMsg []byte `protobuf:"bytes,2,opt"`
|
||||||
|
ChannelMsg *ChannelMsg `protobuf:"bytes,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
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 message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
508
internal/protobuf/data/channel/unknown.pb.go
Normal file
508
internal/protobuf/data/channel/unknown.pb.go
Normal file
@ -0,0 +1,508 @@
|
|||||||
|
// Code generated by yaprotoc. DO NOT EDIT.
|
||||||
|
// source: channel/unknown.proto
|
||||||
|
|
||||||
|
package channel
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
"github.com/segmentio/encoding/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ChannelListRsp struct {
|
||||||
|
GuildId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Channels []*GuildChannelInfo `protobuf:"bytes,2,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelListRsp) GetGuildId() uint64 {
|
||||||
|
if x != nil && x.GuildId != nil {
|
||||||
|
return *x.GuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelListRsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelOidb0Xf55Rsp struct {
|
||||||
|
Info *GuildChannelInfo `protobuf:"bytes,1,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelOidb0Xf55Rsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelOidb0Xf57Rsp struct {
|
||||||
|
Rsp *GuildMetaRsp `protobuf:"bytes,1,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelOidb0Xf57Rsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelOidb0Xf5BRsp struct {
|
||||||
|
GuildId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Bots []*GuildMemberInfo `protobuf:"bytes,4,rep"`
|
||||||
|
Members []*GuildMemberInfo `protobuf:"bytes,5,rep"`
|
||||||
|
AdminInfo *GuildAdminInfo `protobuf:"bytes,25,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelOidb0Xf5BRsp) GetGuildId() uint64 {
|
||||||
|
if x != nil && x.GuildId != nil {
|
||||||
|
return *x.GuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelOidb0Xf5BRsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelOidb0Xf5DRsp struct {
|
||||||
|
Rsp *ChannelListRsp `protobuf:"bytes,1,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelOidb0Xf5DRsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelOidb0Xf88Rsp struct {
|
||||||
|
Profile *GuildUserProfile `protobuf:"bytes,1,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelOidb0Xf88Rsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ChannelOidb0Xfc9Rsp struct {
|
||||||
|
Profile *GuildUserProfile `protobuf:"bytes,1,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ChannelOidb0Xfc9Rsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GuildAdminInfo struct {
|
||||||
|
Admins []*GuildMemberInfo `protobuf:"bytes,2,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildAdminInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GuildChannelInfo struct {
|
||||||
|
ChannelId *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
ChannelName *string `protobuf:"bytes,2,opt"`
|
||||||
|
CreatorUin *int64 `protobuf:"varint,3,opt"`
|
||||||
|
CreateTime *int64 `protobuf:"varint,4,opt"`
|
||||||
|
GuildId *uint64 `protobuf:"varint,5,opt"`
|
||||||
|
FinalNotifyType *int32 `protobuf:"varint,6,opt"`
|
||||||
|
ChannelType *int32 `protobuf:"varint,7,opt"`
|
||||||
|
TalkPermission *int32 `protobuf:"varint,8,opt"`
|
||||||
|
CreatorTinyId *uint64 `protobuf:"varint,15,opt"`
|
||||||
|
VisibleType *int32 `protobuf:"varint,22,opt"`
|
||||||
|
TopMsg *GuildChannelTopMsgInfo `protobuf:"bytes,28,opt"`
|
||||||
|
CurrentSlowModeKey *int32 `protobuf:"varint,31,opt"`
|
||||||
|
SlowModeInfos []*GuildChannelSlowModeInfo `protobuf:"bytes,32,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) GetChannelId() uint64 {
|
||||||
|
if x != nil && x.ChannelId != nil {
|
||||||
|
return *x.ChannelId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) GetChannelName() string {
|
||||||
|
if x != nil && x.ChannelName != nil {
|
||||||
|
return *x.ChannelName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) GetCreatorUin() int64 {
|
||||||
|
if x != nil && x.CreatorUin != nil {
|
||||||
|
return *x.CreatorUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) GetCreateTime() int64 {
|
||||||
|
if x != nil && x.CreateTime != nil {
|
||||||
|
return *x.CreateTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) GetGuildId() uint64 {
|
||||||
|
if x != nil && x.GuildId != nil {
|
||||||
|
return *x.GuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) GetFinalNotifyType() int32 {
|
||||||
|
if x != nil && x.FinalNotifyType != nil {
|
||||||
|
return *x.FinalNotifyType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) GetChannelType() int32 {
|
||||||
|
if x != nil && x.ChannelType != nil {
|
||||||
|
return *x.ChannelType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) GetTalkPermission() int32 {
|
||||||
|
if x != nil && x.TalkPermission != nil {
|
||||||
|
return *x.TalkPermission
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) GetCreatorTinyId() uint64 {
|
||||||
|
if x != nil && x.CreatorTinyId != nil {
|
||||||
|
return *x.CreatorTinyId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) GetVisibleType() int32 {
|
||||||
|
if x != nil && x.VisibleType != nil {
|
||||||
|
return *x.VisibleType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) GetCurrentSlowModeKey() int32 {
|
||||||
|
if x != nil && x.CurrentSlowModeKey != nil {
|
||||||
|
return *x.CurrentSlowModeKey
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GuildChannelSlowModeInfo struct {
|
||||||
|
SlowModeKey *int32 `protobuf:"varint,1,opt"`
|
||||||
|
SpeakFrequency *int32 `protobuf:"varint,2,opt"`
|
||||||
|
SlowModeCircle *int32 `protobuf:"varint,3,opt"`
|
||||||
|
SlowModeText *string `protobuf:"bytes,4,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelSlowModeInfo) GetSlowModeKey() int32 {
|
||||||
|
if x != nil && x.SlowModeKey != nil {
|
||||||
|
return *x.SlowModeKey
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelSlowModeInfo) GetSpeakFrequency() int32 {
|
||||||
|
if x != nil && x.SpeakFrequency != nil {
|
||||||
|
return *x.SpeakFrequency
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelSlowModeInfo) GetSlowModeCircle() int32 {
|
||||||
|
if x != nil && x.SlowModeCircle != nil {
|
||||||
|
return *x.SlowModeCircle
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelSlowModeInfo) GetSlowModeText() string {
|
||||||
|
if x != nil && x.SlowModeText != nil {
|
||||||
|
return *x.SlowModeText
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelSlowModeInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GuildChannelTopMsgInfo struct {
|
||||||
|
TopMsgSeq *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
TopMsgTime *int64 `protobuf:"varint,2,opt"`
|
||||||
|
TopMsgOperatorTinyId *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelTopMsgInfo) GetTopMsgSeq() uint64 {
|
||||||
|
if x != nil && x.TopMsgSeq != nil {
|
||||||
|
return *x.TopMsgSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelTopMsgInfo) GetTopMsgTime() int64 {
|
||||||
|
if x != nil && x.TopMsgTime != nil {
|
||||||
|
return *x.TopMsgTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelTopMsgInfo) GetTopMsgOperatorTinyId() uint64 {
|
||||||
|
if x != nil && x.TopMsgOperatorTinyId != nil {
|
||||||
|
return *x.TopMsgOperatorTinyId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildChannelTopMsgInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GuildMemberInfo struct {
|
||||||
|
Title *string `protobuf:"bytes,2,opt"`
|
||||||
|
Nickname *string `protobuf:"bytes,3,opt"`
|
||||||
|
LastSpeakTime *int64 `protobuf:"varint,4,opt"`
|
||||||
|
Role *int32 `protobuf:"varint,5,opt"`
|
||||||
|
TinyId *uint64 `protobuf:"varint,8,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMemberInfo) GetTitle() string {
|
||||||
|
if x != nil && x.Title != nil {
|
||||||
|
return *x.Title
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMemberInfo) GetNickname() string {
|
||||||
|
if x != nil && x.Nickname != nil {
|
||||||
|
return *x.Nickname
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMemberInfo) GetLastSpeakTime() int64 {
|
||||||
|
if x != nil && x.LastSpeakTime != nil {
|
||||||
|
return *x.LastSpeakTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMemberInfo) GetRole() int32 {
|
||||||
|
if x != nil && x.Role != nil {
|
||||||
|
return *x.Role
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMemberInfo) GetTinyId() uint64 {
|
||||||
|
if x != nil && x.TinyId != nil {
|
||||||
|
return *x.TinyId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMemberInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GuildMeta struct {
|
||||||
|
GuildCode *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
CreateTime *int64 `protobuf:"varint,4,opt"`
|
||||||
|
MaxMemberCount *int64 `protobuf:"varint,5,opt"`
|
||||||
|
MemberCount *int64 `protobuf:"varint,6,opt"`
|
||||||
|
Name *string `protobuf:"bytes,8,opt"`
|
||||||
|
RobotMaxNum *int32 `protobuf:"varint,11,opt"`
|
||||||
|
AdminMaxNum *int32 `protobuf:"varint,12,opt"`
|
||||||
|
Profile *string `protobuf:"bytes,13,opt"`
|
||||||
|
AvatarSeq *int64 `protobuf:"varint,14,opt"`
|
||||||
|
OwnerId *uint64 `protobuf:"varint,18,opt"`
|
||||||
|
CoverSeq *int64 `protobuf:"varint,19,opt"`
|
||||||
|
ClientId *int32 `protobuf:"varint,20,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetGuildCode() uint64 {
|
||||||
|
if x != nil && x.GuildCode != nil {
|
||||||
|
return *x.GuildCode
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetCreateTime() int64 {
|
||||||
|
if x != nil && x.CreateTime != nil {
|
||||||
|
return *x.CreateTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetMaxMemberCount() int64 {
|
||||||
|
if x != nil && x.MaxMemberCount != nil {
|
||||||
|
return *x.MaxMemberCount
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetMemberCount() int64 {
|
||||||
|
if x != nil && x.MemberCount != nil {
|
||||||
|
return *x.MemberCount
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetName() string {
|
||||||
|
if x != nil && x.Name != nil {
|
||||||
|
return *x.Name
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetRobotMaxNum() int32 {
|
||||||
|
if x != nil && x.RobotMaxNum != nil {
|
||||||
|
return *x.RobotMaxNum
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetAdminMaxNum() int32 {
|
||||||
|
if x != nil && x.AdminMaxNum != nil {
|
||||||
|
return *x.AdminMaxNum
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetProfile() string {
|
||||||
|
if x != nil && x.Profile != nil {
|
||||||
|
return *x.Profile
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetAvatarSeq() int64 {
|
||||||
|
if x != nil && x.AvatarSeq != nil {
|
||||||
|
return *x.AvatarSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetOwnerId() uint64 {
|
||||||
|
if x != nil && x.OwnerId != nil {
|
||||||
|
return *x.OwnerId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetCoverSeq() int64 {
|
||||||
|
if x != nil && x.CoverSeq != nil {
|
||||||
|
return *x.CoverSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) GetClientId() int32 {
|
||||||
|
if x != nil && x.ClientId != nil {
|
||||||
|
return *x.ClientId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMeta) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GuildMetaRsp struct {
|
||||||
|
GuildId *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
Meta *GuildMeta `protobuf:"bytes,4,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMetaRsp) GetGuildId() uint64 {
|
||||||
|
if x != nil && x.GuildId != nil {
|
||||||
|
return *x.GuildId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildMetaRsp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type GuildUserProfile struct {
|
||||||
|
TinyId *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
Nickname *string `protobuf:"bytes,3,opt"`
|
||||||
|
AvatarUrl *string `protobuf:"bytes,6,opt"`
|
||||||
|
JoinTime *int64 `protobuf:"varint,16,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildUserProfile) GetTinyId() uint64 {
|
||||||
|
if x != nil && x.TinyId != nil {
|
||||||
|
return *x.TinyId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildUserProfile) GetNickname() string {
|
||||||
|
if x != nil && x.Nickname != nil {
|
||||||
|
return *x.Nickname
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildUserProfile) GetAvatarUrl() string {
|
||||||
|
if x != nil && x.AvatarUrl != nil {
|
||||||
|
return *x.AvatarUrl
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildUserProfile) GetJoinTime() int64 {
|
||||||
|
if x != nil && x.JoinTime != nil {
|
||||||
|
return *x.JoinTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *GuildUserProfile) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
738
internal/protobuf/data/msg/head.pb.go
Normal file
738
internal/protobuf/data/msg/head.pb.go
Normal file
@ -0,0 +1,738 @@
|
|||||||
|
// Code generated by yaprotoc. DO NOT EDIT.
|
||||||
|
// source: msg/head.proto
|
||||||
|
|
||||||
|
package msg
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
"github.com/segmentio/encoding/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
type C2CHead struct {
|
||||||
|
ToUin *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
FromUin *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
CcType *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
CcCmd *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
AuthPicSig []byte `protobuf:"bytes,5,opt"`
|
||||||
|
AuthSig []byte `protobuf:"bytes,6,opt"`
|
||||||
|
AuthBuf []byte `protobuf:"bytes,7,opt"`
|
||||||
|
ServerTime *uint32 `protobuf:"varint,8,opt"`
|
||||||
|
ClientTime *uint32 `protobuf:"varint,9,opt"`
|
||||||
|
Rand *uint32 `protobuf:"varint,10,opt"`
|
||||||
|
PhoneNumber *string `protobuf:"bytes,11,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *C2CHead) GetToUin() uint64 {
|
||||||
|
if x != nil && x.ToUin != nil {
|
||||||
|
return *x.ToUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *C2CHead) GetFromUin() uint64 {
|
||||||
|
if x != nil && x.FromUin != nil {
|
||||||
|
return *x.FromUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *C2CHead) GetCcType() uint32 {
|
||||||
|
if x != nil && x.CcType != nil {
|
||||||
|
return *x.CcType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *C2CHead) GetCcCmd() uint32 {
|
||||||
|
if x != nil && x.CcCmd != nil {
|
||||||
|
return *x.CcCmd
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *C2CHead) GetServerTime() uint32 {
|
||||||
|
if x != nil && x.ServerTime != nil {
|
||||||
|
return *x.ServerTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *C2CHead) GetClientTime() uint32 {
|
||||||
|
if x != nil && x.ClientTime != nil {
|
||||||
|
return *x.ClientTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *C2CHead) GetRand() uint32 {
|
||||||
|
if x != nil && x.Rand != nil {
|
||||||
|
return *x.Rand
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *C2CHead) GetPhoneNumber() string {
|
||||||
|
if x != nil && x.PhoneNumber != nil {
|
||||||
|
return *x.PhoneNumber
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *C2CHead) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type CSHead struct {
|
||||||
|
Uin *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Command *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
Seq *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
Version *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
RetryTimes *uint32 `protobuf:"varint,5,opt"`
|
||||||
|
ClientType *uint32 `protobuf:"varint,6,opt"`
|
||||||
|
Pubno *uint32 `protobuf:"varint,7,opt"`
|
||||||
|
Localid *uint32 `protobuf:"varint,8,opt"`
|
||||||
|
Timezone *uint32 `protobuf:"varint,9,opt"`
|
||||||
|
ClientIp *uint32 `protobuf:"fixed32,10,opt"`
|
||||||
|
ClientPort *uint32 `protobuf:"varint,11,opt"`
|
||||||
|
ConnIp *uint32 `protobuf:"fixed32,12,opt"`
|
||||||
|
ConnPort *uint32 `protobuf:"varint,13,opt"`
|
||||||
|
InterfaceIp *uint32 `protobuf:"fixed32,14,opt"`
|
||||||
|
InterfacePort *uint32 `protobuf:"varint,15,opt"`
|
||||||
|
ActualIp *uint32 `protobuf:"fixed32,16,opt"`
|
||||||
|
Flag *uint32 `protobuf:"varint,17,opt"`
|
||||||
|
Timestamp *uint32 `protobuf:"fixed32,18,opt"`
|
||||||
|
Subcmd *uint32 `protobuf:"varint,19,opt"`
|
||||||
|
Result *uint32 `protobuf:"varint,20,opt"`
|
||||||
|
AppId *uint32 `protobuf:"varint,21,opt"`
|
||||||
|
InstanceId *uint32 `protobuf:"varint,22,opt"`
|
||||||
|
SessionId *uint64 `protobuf:"varint,23,opt"`
|
||||||
|
IdcId *uint32 `protobuf:"varint,24,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetUin() uint64 {
|
||||||
|
if x != nil && x.Uin != nil {
|
||||||
|
return *x.Uin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetCommand() uint32 {
|
||||||
|
if x != nil && x.Command != nil {
|
||||||
|
return *x.Command
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetSeq() uint32 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetVersion() uint32 {
|
||||||
|
if x != nil && x.Version != nil {
|
||||||
|
return *x.Version
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetRetryTimes() uint32 {
|
||||||
|
if x != nil && x.RetryTimes != nil {
|
||||||
|
return *x.RetryTimes
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetClientType() uint32 {
|
||||||
|
if x != nil && x.ClientType != nil {
|
||||||
|
return *x.ClientType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetPubno() uint32 {
|
||||||
|
if x != nil && x.Pubno != nil {
|
||||||
|
return *x.Pubno
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetLocalid() uint32 {
|
||||||
|
if x != nil && x.Localid != nil {
|
||||||
|
return *x.Localid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetTimezone() uint32 {
|
||||||
|
if x != nil && x.Timezone != nil {
|
||||||
|
return *x.Timezone
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetClientIp() uint32 {
|
||||||
|
if x != nil && x.ClientIp != nil {
|
||||||
|
return *x.ClientIp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetClientPort() uint32 {
|
||||||
|
if x != nil && x.ClientPort != nil {
|
||||||
|
return *x.ClientPort
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetConnIp() uint32 {
|
||||||
|
if x != nil && x.ConnIp != nil {
|
||||||
|
return *x.ConnIp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetConnPort() uint32 {
|
||||||
|
if x != nil && x.ConnPort != nil {
|
||||||
|
return *x.ConnPort
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetInterfaceIp() uint32 {
|
||||||
|
if x != nil && x.InterfaceIp != nil {
|
||||||
|
return *x.InterfaceIp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetInterfacePort() uint32 {
|
||||||
|
if x != nil && x.InterfacePort != nil {
|
||||||
|
return *x.InterfacePort
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetActualIp() uint32 {
|
||||||
|
if x != nil && x.ActualIp != nil {
|
||||||
|
return *x.ActualIp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetFlag() uint32 {
|
||||||
|
if x != nil && x.Flag != nil {
|
||||||
|
return *x.Flag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetTimestamp() uint32 {
|
||||||
|
if x != nil && x.Timestamp != nil {
|
||||||
|
return *x.Timestamp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetSubcmd() uint32 {
|
||||||
|
if x != nil && x.Subcmd != nil {
|
||||||
|
return *x.Subcmd
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetResult() uint32 {
|
||||||
|
if x != nil && x.Result != nil {
|
||||||
|
return *x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetAppId() uint32 {
|
||||||
|
if x != nil && x.AppId != nil {
|
||||||
|
return *x.AppId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetInstanceId() uint32 {
|
||||||
|
if x != nil && x.InstanceId != nil {
|
||||||
|
return *x.InstanceId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetSessionId() uint64 {
|
||||||
|
if x != nil && x.SessionId != nil {
|
||||||
|
return *x.SessionId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) GetIdcId() uint32 {
|
||||||
|
if x != nil && x.IdcId != nil {
|
||||||
|
return *x.IdcId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *CSHead) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type DeltaHead struct {
|
||||||
|
TotalLen *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Offset *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
AckOffset *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
Cookie []byte `protobuf:"bytes,4,opt"`
|
||||||
|
AckCookie []byte `protobuf:"bytes,5,opt"`
|
||||||
|
Result *uint32 `protobuf:"varint,6,opt"`
|
||||||
|
Flags *uint32 `protobuf:"varint,7,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeltaHead) GetTotalLen() uint64 {
|
||||||
|
if x != nil && x.TotalLen != nil {
|
||||||
|
return *x.TotalLen
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeltaHead) GetOffset() uint64 {
|
||||||
|
if x != nil && x.Offset != nil {
|
||||||
|
return *x.Offset
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeltaHead) GetAckOffset() uint64 {
|
||||||
|
if x != nil && x.AckOffset != nil {
|
||||||
|
return *x.AckOffset
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeltaHead) GetResult() uint32 {
|
||||||
|
if x != nil && x.Result != nil {
|
||||||
|
return *x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeltaHead) GetFlags() uint32 {
|
||||||
|
if x != nil && x.Flags != nil {
|
||||||
|
return *x.Flags
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DeltaHead) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type HttpConnHead struct {
|
||||||
|
Uin *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
Command *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
SubCommand *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
Seq *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
Version *uint32 `protobuf:"varint,5,opt"`
|
||||||
|
RetryTimes *uint32 `protobuf:"varint,6,opt"`
|
||||||
|
ClientType *uint32 `protobuf:"varint,7,opt"`
|
||||||
|
PubNo *uint32 `protobuf:"varint,8,opt"`
|
||||||
|
LocalId *uint32 `protobuf:"varint,9,opt"`
|
||||||
|
TimeZone *uint32 `protobuf:"varint,10,opt"`
|
||||||
|
ClientIp *uint32 `protobuf:"fixed32,11,opt"`
|
||||||
|
ClientPort *uint32 `protobuf:"varint,12,opt"`
|
||||||
|
QzhttpIp *uint32 `protobuf:"fixed32,13,opt"`
|
||||||
|
QzhttpPort *uint32 `protobuf:"varint,14,opt"`
|
||||||
|
SppIp *uint32 `protobuf:"fixed32,15,opt"`
|
||||||
|
SppPort *uint32 `protobuf:"varint,16,opt"`
|
||||||
|
Flag *uint32 `protobuf:"varint,17,opt"`
|
||||||
|
Key []byte `protobuf:"bytes,18,opt"`
|
||||||
|
CompressType *uint32 `protobuf:"varint,19,opt"`
|
||||||
|
OriginSize *uint32 `protobuf:"varint,20,opt"`
|
||||||
|
ErrorCode *uint32 `protobuf:"varint,21,opt"`
|
||||||
|
Redirect *RedirectMsg `protobuf:"bytes,22,opt"`
|
||||||
|
CommandId *uint32 `protobuf:"varint,23,opt"`
|
||||||
|
ServiceCmdid *uint32 `protobuf:"varint,24,opt"`
|
||||||
|
Oidbhead *TransOidbHead `protobuf:"bytes,25,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetUin() uint64 {
|
||||||
|
if x != nil && x.Uin != nil {
|
||||||
|
return *x.Uin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetCommand() uint32 {
|
||||||
|
if x != nil && x.Command != nil {
|
||||||
|
return *x.Command
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetSubCommand() uint32 {
|
||||||
|
if x != nil && x.SubCommand != nil {
|
||||||
|
return *x.SubCommand
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetSeq() uint32 {
|
||||||
|
if x != nil && x.Seq != nil {
|
||||||
|
return *x.Seq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetVersion() uint32 {
|
||||||
|
if x != nil && x.Version != nil {
|
||||||
|
return *x.Version
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetRetryTimes() uint32 {
|
||||||
|
if x != nil && x.RetryTimes != nil {
|
||||||
|
return *x.RetryTimes
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetClientType() uint32 {
|
||||||
|
if x != nil && x.ClientType != nil {
|
||||||
|
return *x.ClientType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetPubNo() uint32 {
|
||||||
|
if x != nil && x.PubNo != nil {
|
||||||
|
return *x.PubNo
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetLocalId() uint32 {
|
||||||
|
if x != nil && x.LocalId != nil {
|
||||||
|
return *x.LocalId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetTimeZone() uint32 {
|
||||||
|
if x != nil && x.TimeZone != nil {
|
||||||
|
return *x.TimeZone
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetClientIp() uint32 {
|
||||||
|
if x != nil && x.ClientIp != nil {
|
||||||
|
return *x.ClientIp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetClientPort() uint32 {
|
||||||
|
if x != nil && x.ClientPort != nil {
|
||||||
|
return *x.ClientPort
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetQzhttpIp() uint32 {
|
||||||
|
if x != nil && x.QzhttpIp != nil {
|
||||||
|
return *x.QzhttpIp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetQzhttpPort() uint32 {
|
||||||
|
if x != nil && x.QzhttpPort != nil {
|
||||||
|
return *x.QzhttpPort
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetSppIp() uint32 {
|
||||||
|
if x != nil && x.SppIp != nil {
|
||||||
|
return *x.SppIp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetSppPort() uint32 {
|
||||||
|
if x != nil && x.SppPort != nil {
|
||||||
|
return *x.SppPort
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetFlag() uint32 {
|
||||||
|
if x != nil && x.Flag != nil {
|
||||||
|
return *x.Flag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetCompressType() uint32 {
|
||||||
|
if x != nil && x.CompressType != nil {
|
||||||
|
return *x.CompressType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetOriginSize() uint32 {
|
||||||
|
if x != nil && x.OriginSize != nil {
|
||||||
|
return *x.OriginSize
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetErrorCode() uint32 {
|
||||||
|
if x != nil && x.ErrorCode != nil {
|
||||||
|
return *x.ErrorCode
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetCommandId() uint32 {
|
||||||
|
if x != nil && x.CommandId != nil {
|
||||||
|
return *x.CommandId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) GetServiceCmdid() uint32 {
|
||||||
|
if x != nil && x.ServiceCmdid != nil {
|
||||||
|
return *x.ServiceCmdid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *HttpConnHead) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type IMHead struct {
|
||||||
|
HeadType *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
CsHead *CSHead `protobuf:"bytes,2,opt"`
|
||||||
|
S2CHead *S2CHead `protobuf:"bytes,3,opt"`
|
||||||
|
HttpconnHead *HttpConnHead `protobuf:"bytes,4,opt"`
|
||||||
|
PaintFlag *uint32 `protobuf:"varint,5,opt"`
|
||||||
|
LoginSig *LoginSig `protobuf:"bytes,6,opt"`
|
||||||
|
DeltaHead *DeltaHead `protobuf:"bytes,7,opt"`
|
||||||
|
C2CHead *C2CHead `protobuf:"bytes,8,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *IMHead) GetHeadType() uint32 {
|
||||||
|
if x != nil && x.HeadType != nil {
|
||||||
|
return *x.HeadType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *IMHead) GetPaintFlag() uint32 {
|
||||||
|
if x != nil && x.PaintFlag != nil {
|
||||||
|
return *x.PaintFlag
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *IMHead) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type LoginSig struct {
|
||||||
|
Type *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
Sig []byte `protobuf:"bytes,2,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *LoginSig) GetType() uint32 {
|
||||||
|
if x != nil && x.Type != nil {
|
||||||
|
return *x.Type
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *LoginSig) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type RedirectMsg struct {
|
||||||
|
LastRedirectIp *uint32 `protobuf:"fixed32,1,opt"`
|
||||||
|
LastRedirectPort *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
RedirectIp *uint32 `protobuf:"fixed32,3,opt"`
|
||||||
|
RedirectPort *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
RedirectCount *uint32 `protobuf:"varint,5,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RedirectMsg) GetLastRedirectIp() uint32 {
|
||||||
|
if x != nil && x.LastRedirectIp != nil {
|
||||||
|
return *x.LastRedirectIp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RedirectMsg) GetLastRedirectPort() uint32 {
|
||||||
|
if x != nil && x.LastRedirectPort != nil {
|
||||||
|
return *x.LastRedirectPort
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RedirectMsg) GetRedirectIp() uint32 {
|
||||||
|
if x != nil && x.RedirectIp != nil {
|
||||||
|
return *x.RedirectIp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RedirectMsg) GetRedirectPort() uint32 {
|
||||||
|
if x != nil && x.RedirectPort != nil {
|
||||||
|
return *x.RedirectPort
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RedirectMsg) GetRedirectCount() uint32 {
|
||||||
|
if x != nil && x.RedirectCount != nil {
|
||||||
|
return *x.RedirectCount
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RedirectMsg) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type S2CHead struct {
|
||||||
|
SubMsgtype *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
MsgType *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
FromUin *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
MsgId *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
RelayIp *uint32 `protobuf:"fixed32,5,opt"`
|
||||||
|
RelayPort *uint32 `protobuf:"varint,6,opt"`
|
||||||
|
ToUin *uint64 `protobuf:"varint,7,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *S2CHead) GetSubMsgtype() uint32 {
|
||||||
|
if x != nil && x.SubMsgtype != nil {
|
||||||
|
return *x.SubMsgtype
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *S2CHead) GetMsgType() uint32 {
|
||||||
|
if x != nil && x.MsgType != nil {
|
||||||
|
return *x.MsgType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *S2CHead) GetFromUin() uint64 {
|
||||||
|
if x != nil && x.FromUin != nil {
|
||||||
|
return *x.FromUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *S2CHead) GetMsgId() uint32 {
|
||||||
|
if x != nil && x.MsgId != nil {
|
||||||
|
return *x.MsgId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *S2CHead) GetRelayIp() uint32 {
|
||||||
|
if x != nil && x.RelayIp != nil {
|
||||||
|
return *x.RelayIp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *S2CHead) GetRelayPort() uint32 {
|
||||||
|
if x != nil && x.RelayPort != nil {
|
||||||
|
return *x.RelayPort
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *S2CHead) GetToUin() uint64 {
|
||||||
|
if x != nil && x.ToUin != nil {
|
||||||
|
return *x.ToUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *S2CHead) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type TransOidbHead struct {
|
||||||
|
Command *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
ServiceType *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
Result *uint32 `protobuf:"varint,3,opt"`
|
||||||
|
ErrorMsg *string `protobuf:"bytes,4,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TransOidbHead) GetCommand() uint32 {
|
||||||
|
if x != nil && x.Command != nil {
|
||||||
|
return *x.Command
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TransOidbHead) GetServiceType() uint32 {
|
||||||
|
if x != nil && x.ServiceType != nil {
|
||||||
|
return *x.ServiceType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TransOidbHead) GetResult() uint32 {
|
||||||
|
if x != nil && x.Result != nil {
|
||||||
|
return *x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TransOidbHead) GetErrorMsg() string {
|
||||||
|
if x != nil && x.ErrorMsg != nil {
|
||||||
|
return *x.ErrorMsg
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *TransOidbHead) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
3793
internal/protobuf/data/msg/msg.pb.go
Normal file
3793
internal/protobuf/data/msg/msg.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
68
internal/protobuf/data/msg/objmsg.pb.go
Normal file
68
internal/protobuf/data/msg/objmsg.pb.go
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
// Code generated by yaprotoc. DO NOT EDIT.
|
||||||
|
// source: msg/objmsg.proto
|
||||||
|
|
||||||
|
package msg
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
"github.com/segmentio/encoding/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
type MsgContentInfo struct {
|
||||||
|
ContentInfoId []byte `protobuf:"bytes,1,opt"`
|
||||||
|
MsgFile *MsgFile `protobuf:"bytes,2,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgContentInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MsgFile struct {
|
||||||
|
BusId int32 `protobuf:"varint,1,opt"`
|
||||||
|
FilePath []byte `protobuf:"bytes,2,opt"`
|
||||||
|
FileSize int64 `protobuf:"varint,3,opt"`
|
||||||
|
FileName string `protobuf:"bytes,4,opt"`
|
||||||
|
Int64DeadTime int64 `protobuf:"varint,5,opt"`
|
||||||
|
FileSha1 []byte `protobuf:"bytes,6,opt"`
|
||||||
|
Ext []byte `protobuf:"bytes,7,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgFile) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type MsgPic struct {
|
||||||
|
SmallPicUrl []byte `protobuf:"bytes,1,opt"`
|
||||||
|
OriginalPicUrl []byte `protobuf:"bytes,2,opt"`
|
||||||
|
LocalPicId int32 `protobuf:"varint,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MsgPic) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type ObjMsg struct {
|
||||||
|
MsgType int32 `protobuf:"varint,1,opt"`
|
||||||
|
Title []byte `protobuf:"bytes,2,opt"`
|
||||||
|
BytesAbstact []byte `protobuf:"bytes,3,opt"`
|
||||||
|
TitleExt []byte `protobuf:"bytes,5,opt"`
|
||||||
|
MsgPic []*MsgPic `protobuf:"bytes,6,rep"`
|
||||||
|
MsgContentInfo []*MsgContentInfo `protobuf:"bytes,7,rep"`
|
||||||
|
ReportIdShow int32 `protobuf:"varint,8,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ObjMsg) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
293
internal/protobuf/data/msg/report.pb.go
Normal file
293
internal/protobuf/data/msg/report.pb.go
Normal file
@ -0,0 +1,293 @@
|
|||||||
|
// Code generated by yaprotoc. DO NOT EDIT.
|
||||||
|
// source: msg/report.proto
|
||||||
|
|
||||||
|
package msg
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/pkg/errors"
|
||||||
|
"github.com/segmentio/encoding/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
type PbC2CReadedReportReq struct {
|
||||||
|
SyncCookie []byte `protobuf:"bytes,1,opt"`
|
||||||
|
PairInfo []*UinPairReadInfo `protobuf:"bytes,2,rep"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbC2CReadedReportReq) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type PbC2CReadedReportResp struct {
|
||||||
|
Result *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
Errmsg *string `protobuf:"bytes,2,opt"`
|
||||||
|
SyncCookie []byte `protobuf:"bytes,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbC2CReadedReportResp) GetResult() uint32 {
|
||||||
|
if x != nil && x.Result != nil {
|
||||||
|
return *x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbC2CReadedReportResp) GetErrmsg() string {
|
||||||
|
if x != nil && x.Errmsg != nil {
|
||||||
|
return *x.Errmsg
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbC2CReadedReportResp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type PbDiscussReadedReportReq struct {
|
||||||
|
ConfUin *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
LastReadSeq *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbDiscussReadedReportReq) GetConfUin() uint64 {
|
||||||
|
if x != nil && x.ConfUin != nil {
|
||||||
|
return *x.ConfUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbDiscussReadedReportReq) GetLastReadSeq() uint64 {
|
||||||
|
if x != nil && x.LastReadSeq != nil {
|
||||||
|
return *x.LastReadSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbDiscussReadedReportReq) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type PbDiscussReadedReportResp struct {
|
||||||
|
Result *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
Errmsg *string `protobuf:"bytes,2,opt"`
|
||||||
|
ConfUin *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
MemberSeq *uint64 `protobuf:"varint,4,opt"`
|
||||||
|
ConfSeq *uint64 `protobuf:"varint,5,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbDiscussReadedReportResp) GetResult() uint32 {
|
||||||
|
if x != nil && x.Result != nil {
|
||||||
|
return *x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbDiscussReadedReportResp) GetErrmsg() string {
|
||||||
|
if x != nil && x.Errmsg != nil {
|
||||||
|
return *x.Errmsg
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbDiscussReadedReportResp) GetConfUin() uint64 {
|
||||||
|
if x != nil && x.ConfUin != nil {
|
||||||
|
return *x.ConfUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbDiscussReadedReportResp) GetMemberSeq() uint64 {
|
||||||
|
if x != nil && x.MemberSeq != nil {
|
||||||
|
return *x.MemberSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbDiscussReadedReportResp) GetConfSeq() uint64 {
|
||||||
|
if x != nil && x.ConfSeq != nil {
|
||||||
|
return *x.ConfSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbDiscussReadedReportResp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type PbGroupReadedReportReq struct {
|
||||||
|
GroupCode *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
LastReadSeq *uint64 `protobuf:"varint,2,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbGroupReadedReportReq) GetGroupCode() uint64 {
|
||||||
|
if x != nil && x.GroupCode != nil {
|
||||||
|
return *x.GroupCode
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbGroupReadedReportReq) GetLastReadSeq() uint64 {
|
||||||
|
if x != nil && x.LastReadSeq != nil {
|
||||||
|
return *x.LastReadSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbGroupReadedReportReq) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type PbGroupReadedReportResp struct {
|
||||||
|
Result *uint32 `protobuf:"varint,1,opt"`
|
||||||
|
Errmsg *string `protobuf:"bytes,2,opt"`
|
||||||
|
GroupCode *uint64 `protobuf:"varint,3,opt"`
|
||||||
|
MemberSeq *uint64 `protobuf:"varint,4,opt"`
|
||||||
|
GroupMsgSeq *uint64 `protobuf:"varint,5,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbGroupReadedReportResp) GetResult() uint32 {
|
||||||
|
if x != nil && x.Result != nil {
|
||||||
|
return *x.Result
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbGroupReadedReportResp) GetErrmsg() string {
|
||||||
|
if x != nil && x.Errmsg != nil {
|
||||||
|
return *x.Errmsg
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbGroupReadedReportResp) GetGroupCode() uint64 {
|
||||||
|
if x != nil && x.GroupCode != nil {
|
||||||
|
return *x.GroupCode
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbGroupReadedReportResp) GetMemberSeq() uint64 {
|
||||||
|
if x != nil && x.MemberSeq != nil {
|
||||||
|
return *x.MemberSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbGroupReadedReportResp) GetGroupMsgSeq() uint64 {
|
||||||
|
if x != nil && x.GroupMsgSeq != nil {
|
||||||
|
return *x.GroupMsgSeq
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbGroupReadedReportResp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type PbMsgReadedReportReq struct {
|
||||||
|
GrpReadReport []*PbGroupReadedReportReq `protobuf:"bytes,1,rep"`
|
||||||
|
DisReadReport []*PbDiscussReadedReportReq `protobuf:"bytes,2,rep"`
|
||||||
|
C2CReadReport *PbC2CReadedReportReq `protobuf:"bytes,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbMsgReadedReportReq) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type PbMsgReadedReportResp struct {
|
||||||
|
GrpReadReport []*PbGroupReadedReportResp `protobuf:"bytes,1,rep"`
|
||||||
|
DisReadReport []*PbDiscussReadedReportResp `protobuf:"bytes,2,rep"`
|
||||||
|
C2CReadReport *PbC2CReadedReportResp `protobuf:"bytes,3,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *PbMsgReadedReportResp) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
type UinPairReadInfo struct {
|
||||||
|
PeerUin *uint64 `protobuf:"varint,1,opt"`
|
||||||
|
LastReadTime *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
CrmSig []byte `protobuf:"bytes,3,opt"`
|
||||||
|
PeerType *uint32 `protobuf:"varint,4,opt"`
|
||||||
|
ChatType *uint32 `protobuf:"varint,5,opt"`
|
||||||
|
Cpid *uint64 `protobuf:"varint,6,opt"`
|
||||||
|
AioType *uint32 `protobuf:"varint,7,opt"`
|
||||||
|
ToTinyId *uint64 `protobuf:"varint,9,opt"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UinPairReadInfo) GetPeerUin() uint64 {
|
||||||
|
if x != nil && x.PeerUin != nil {
|
||||||
|
return *x.PeerUin
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UinPairReadInfo) GetLastReadTime() uint32 {
|
||||||
|
if x != nil && x.LastReadTime != nil {
|
||||||
|
return *x.LastReadTime
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UinPairReadInfo) GetPeerType() uint32 {
|
||||||
|
if x != nil && x.PeerType != nil {
|
||||||
|
return *x.PeerType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UinPairReadInfo) GetChatType() uint32 {
|
||||||
|
if x != nil && x.ChatType != nil {
|
||||||
|
return *x.ChatType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UinPairReadInfo) GetCpid() uint64 {
|
||||||
|
if x != nil && x.Cpid != nil {
|
||||||
|
return *x.Cpid
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UinPairReadInfo) GetAioType() uint32 {
|
||||||
|
if x != nil && x.AioType != nil {
|
||||||
|
return *x.AioType
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UinPairReadInfo) GetToTinyId() uint64 {
|
||||||
|
if x != nil && x.ToTinyId != nil {
|
||||||
|
return *x.ToTinyId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *UinPairReadInfo) Marshal() ([]byte, error) {
|
||||||
|
if x == nil {
|
||||||
|
return nil, errors.New("nil message")
|
||||||
|
}
|
||||||
|
return proto.Marshal(x)
|
||||||
|
}
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:generate go run generate.go
|
//go:generate go run generate.go
|
||||||
|
@ -4,10 +4,11 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"crypto/md5"
|
"crypto/md5"
|
||||||
|
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/utils"
|
"github.com/Mrs4s/MiraiGo/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -111,7 +112,7 @@ func (f *ForwardMessage) CalculateValidationData(seq, random int32, groupCode in
|
|||||||
Buffer: &msg.PbMultiMsgNew{Msg: msgs},
|
Buffer: &msg.PbMultiMsgNew{Msg: msgs},
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
b, _ := proto.Marshal(trans)
|
b, _ := protobuf.Marshal(trans)
|
||||||
data := binary.GZipCompress(b)
|
data := binary.GZipCompress(b)
|
||||||
hash := md5.Sum(data)
|
hash := md5.Sum(data)
|
||||||
return data, hash[:]
|
return data, hash[:]
|
||||||
@ -127,7 +128,7 @@ func (f *ForwardMessage) CalculateValidationDataForward(seq, random int32, group
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
trans.PbItemList = append(trans.PbItemList, f.items...)
|
trans.PbItemList = append(trans.PbItemList, f.items...)
|
||||||
b, _ := proto.Marshal(trans)
|
b, _ := protobuf.Marshal(trans)
|
||||||
data := binary.GZipCompress(b)
|
data := binary.GZipCompress(b)
|
||||||
hash := md5.Sum(data)
|
hash := md5.Sum(data)
|
||||||
return data, hash[:], trans.PbItemList
|
return data, hash[:], trans.PbItemList
|
||||||
|
@ -3,10 +3,11 @@ package message
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
)
|
)
|
||||||
|
|
||||||
/* -------- Definitions -------- */
|
/* -------- Definitions -------- */
|
||||||
@ -109,7 +110,7 @@ func (e *GroupImageElement) Pack() (r []*msg.Elem) {
|
|||||||
|
|
||||||
if e.Flash { // resolve flash pic
|
if e.Flash { // resolve flash pic
|
||||||
flash := &msg.MsgElemInfoServtype3{FlashTroopPic: cface}
|
flash := &msg.MsgElemInfoServtype3{FlashTroopPic: cface}
|
||||||
data, _ := proto.Marshal(flash)
|
data, _ := protobuf.Marshal(flash)
|
||||||
flashElem := &msg.Elem{
|
flashElem := &msg.Elem{
|
||||||
CommonElem: &msg.CommonElem{
|
CommonElem: &msg.CommonElem{
|
||||||
ServiceType: proto.Int32(3),
|
ServiceType: proto.Int32(3),
|
||||||
@ -134,7 +135,7 @@ func (e *GroupImageElement) Pack() (r []*msg.Elem) {
|
|||||||
if e.ImageBizType != UnknownBizType {
|
if e.ImageBizType != UnknownBizType {
|
||||||
res.ImageBizType = proto.Uint32(uint32(e.ImageBizType))
|
res.ImageBizType = proto.Uint32(uint32(e.ImageBizType))
|
||||||
}
|
}
|
||||||
cface.PbReserve, _ = proto.Marshal(res)
|
cface.PbReserve, _ = protobuf.Marshal(res)
|
||||||
elem := &msg.Elem{CustomFace: cface}
|
elem := &msg.Elem{CustomFace: cface}
|
||||||
return []*msg.Elem{elem}
|
return []*msg.Elem{elem}
|
||||||
}
|
}
|
||||||
@ -153,7 +154,7 @@ func (e *FriendImageElement) Pack() (r []*msg.Elem) {
|
|||||||
|
|
||||||
if e.Flash {
|
if e.Flash {
|
||||||
flash := &msg.MsgElemInfoServtype3{FlashC2CPic: image}
|
flash := &msg.MsgElemInfoServtype3{FlashC2CPic: image}
|
||||||
data, _ := proto.Marshal(flash)
|
data, _ := protobuf.Marshal(flash)
|
||||||
flashElem := &msg.Elem{
|
flashElem := &msg.Elem{
|
||||||
CommonElem: &msg.CommonElem{
|
CommonElem: &msg.CommonElem{
|
||||||
ServiceType: proto.Int32(3),
|
ServiceType: proto.Int32(3),
|
||||||
|
@ -3,7 +3,7 @@ package message
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/utils"
|
"github.com/Mrs4s/MiraiGo/utils"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
@ -7,10 +7,11 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
"github.com/Mrs4s/MiraiGo/utils"
|
"github.com/Mrs4s/MiraiGo/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -353,7 +354,7 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement {
|
|||||||
if r.ReadByte() == 1 {
|
if r.ReadByte() == 1 {
|
||||||
pb := r.ReadBytes(int(r.ReadUInt16()))
|
pb := r.ReadBytes(int(r.ReadUInt16()))
|
||||||
objMsg := msg.ObjMsg{}
|
objMsg := msg.ObjMsg{}
|
||||||
if err := proto.Unmarshal(pb, &objMsg); err == nil && len(objMsg.MsgContentInfo) > 0 {
|
if err := protobuf.Unmarshal(pb, &objMsg); err == nil && len(objMsg.MsgContentInfo) > 0 {
|
||||||
info := objMsg.MsgContentInfo[0]
|
info := objMsg.MsgContentInfo[0]
|
||||||
res = append(res, &GroupFileElement{
|
res = append(res, &GroupFileElement{
|
||||||
Name: info.MsgFile.FileName,
|
Name: info.MsgFile.FileName,
|
||||||
@ -387,7 +388,7 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement {
|
|||||||
Size: elem.VideoFile.GetFileSize(),
|
Size: elem.VideoFile.GetFileSize(),
|
||||||
ThumbSize: elem.VideoFile.GetThumbFileSize(),
|
ThumbSize: elem.VideoFile.GetThumbFileSize(),
|
||||||
Md5: elem.VideoFile.FileMd5,
|
Md5: elem.VideoFile.FileMd5,
|
||||||
ThumbMd5: elem.VideoFile.GetThumbFileMd5(),
|
ThumbMd5: elem.VideoFile.ThumbFileMd5,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -460,7 +461,7 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement {
|
|||||||
return UnknownBizType
|
return UnknownBizType
|
||||||
}
|
}
|
||||||
attr := new(msg.ResvAttr)
|
attr := new(msg.ResvAttr)
|
||||||
if proto.Unmarshal(elem.CustomFace.PbReserve, attr) != nil {
|
if protobuf.Unmarshal(elem.CustomFace.PbReserve, attr) != nil {
|
||||||
return UnknownBizType
|
return UnknownBizType
|
||||||
}
|
}
|
||||||
return ImageBizType(attr.GetImageBizType())
|
return ImageBizType(attr.GetImageBizType())
|
||||||
@ -470,13 +471,13 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement {
|
|||||||
}
|
}
|
||||||
if elem.MarketFace != nil {
|
if elem.MarketFace != nil {
|
||||||
face := &MarketFaceElement{
|
face := &MarketFaceElement{
|
||||||
Name: utils.B2S(elem.MarketFace.GetFaceName()),
|
Name: utils.B2S(elem.MarketFace.FaceName),
|
||||||
FaceId: elem.MarketFace.FaceId,
|
FaceId: elem.MarketFace.FaceId,
|
||||||
TabId: int32(elem.MarketFace.GetTabId()),
|
TabId: int32(elem.MarketFace.GetTabId()),
|
||||||
ItemType: int32(elem.MarketFace.GetItemType()),
|
ItemType: int32(elem.MarketFace.GetItemType()),
|
||||||
SubType: int32(elem.MarketFace.GetSubType()),
|
SubType: int32(elem.MarketFace.GetSubType()),
|
||||||
MediaType: int32(elem.MarketFace.GetMediaType()),
|
MediaType: int32(elem.MarketFace.GetMediaType()),
|
||||||
EncryptKey: elem.MarketFace.GetKey(),
|
EncryptKey: elem.MarketFace.Key,
|
||||||
MagicValue: utils.B2S(elem.MarketFace.Mobileparam),
|
MagicValue: utils.B2S(elem.MarketFace.Mobileparam),
|
||||||
}
|
}
|
||||||
if face.Name == "[骰子]" {
|
if face.Name == "[骰子]" {
|
||||||
@ -534,7 +535,7 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement {
|
|||||||
switch elem.CommonElem.GetServiceType() {
|
switch elem.CommonElem.GetServiceType() {
|
||||||
case 3:
|
case 3:
|
||||||
flash := &msg.MsgElemInfoServtype3{}
|
flash := &msg.MsgElemInfoServtype3{}
|
||||||
_ = proto.Unmarshal(elem.CommonElem.PbElem, flash)
|
_ = protobuf.Unmarshal(elem.CommonElem.PbElem, flash)
|
||||||
if flash.FlashTroopPic != nil {
|
if flash.FlashTroopPic != nil {
|
||||||
res = append(res, &GroupImageElement{
|
res = append(res, &GroupImageElement{
|
||||||
FileId: int64(flash.FlashTroopPic.GetFileId()),
|
FileId: int64(flash.FlashTroopPic.GetFileId()),
|
||||||
@ -558,7 +559,7 @@ func ParseMessageElems(elems []*msg.Elem) []IMessageElement {
|
|||||||
}
|
}
|
||||||
case 33:
|
case 33:
|
||||||
newSysFaceMsg := &msg.MsgElemInfoServtype33{}
|
newSysFaceMsg := &msg.MsgElemInfoServtype33{}
|
||||||
_ = proto.Unmarshal(elem.CommonElem.PbElem, newSysFaceMsg)
|
_ = protobuf.Unmarshal(elem.CommonElem.PbElem, newSysFaceMsg)
|
||||||
res = append(res, NewFace(int32(newSysFaceMsg.GetIndex())))
|
res = append(res, NewFace(int32(newSysFaceMsg.GetIndex())))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,10 +3,11 @@ package message
|
|||||||
import (
|
import (
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
|
|
||||||
|
protobuf "github.com/segmentio/encoding/proto"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/client/pb/msg"
|
"github.com/Mrs4s/MiraiGo/internal/protobuf/data/msg"
|
||||||
)
|
)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -34,7 +35,7 @@ func (e *FaceElement) Pack() (r []*msg.Elem) {
|
|||||||
Text: []byte("/" + e.Name),
|
Text: []byte("/" + e.Name),
|
||||||
Compat: []byte("/" + e.Name),
|
Compat: []byte("/" + e.Name),
|
||||||
}
|
}
|
||||||
b, _ := proto.Marshal(elem)
|
b, _ := protobuf.Marshal(elem)
|
||||||
r = append(r, &msg.Elem{
|
r = append(r, &msg.Elem{
|
||||||
CommonElem: &msg.CommonElem{
|
CommonElem: &msg.CommonElem{
|
||||||
ServiceType: proto.Int32(33),
|
ServiceType: proto.Int32(33),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
|
|
||||||
option go_package = "pb/channel;channel";
|
option go_package = "channel;channel";
|
||||||
|
|
||||||
|
|
||||||
message BatchGetMsgRspCountReq {
|
message BatchGetMsgRspCountReq {
|
@ -2,9 +2,9 @@ syntax = "proto2";
|
|||||||
|
|
||||||
package channel;
|
package channel;
|
||||||
|
|
||||||
option go_package = "pb/channel;channel";
|
option go_package = "channel;channel";
|
||||||
|
|
||||||
import "pb/msg/msg.proto";
|
import "msg/msg.proto";
|
||||||
|
|
||||||
message ChannelContentHead {
|
message ChannelContentHead {
|
||||||
optional uint64 type = 1;
|
optional uint64 type = 1;
|
@ -2,9 +2,9 @@ syntax = "proto2";
|
|||||||
|
|
||||||
package channel;
|
package channel;
|
||||||
|
|
||||||
option go_package = "pb/channel;channel";
|
option go_package = "channel;channel";
|
||||||
|
|
||||||
import "pb/channel/common.proto";
|
import "channel/common.proto";
|
||||||
|
|
||||||
message FocusInfo {
|
message FocusInfo {
|
||||||
repeated uint64 channelIdList = 1;
|
repeated uint64 channelIdList = 1;
|
@ -2,8 +2,8 @@ syntax = "proto2";
|
|||||||
|
|
||||||
package channel;
|
package channel;
|
||||||
|
|
||||||
option go_package = "pb/channel;channel";
|
option go_package = "channel;channel";
|
||||||
import "pb/channel/common.proto";
|
import "channel/common.proto";
|
||||||
|
|
||||||
message DF62ReqBody {
|
message DF62ReqBody {
|
||||||
optional ChannelMsgContent msg = 1;
|
optional ChannelMsgContent msg = 1;
|
@ -2,7 +2,7 @@ syntax = "proto2";
|
|||||||
|
|
||||||
package channel;
|
package channel;
|
||||||
|
|
||||||
option go_package = "pb/channel;channel";
|
option go_package = "channel;channel";
|
||||||
|
|
||||||
message AppChannelMsg {
|
message AppChannelMsg {
|
||||||
optional string summary = 1;
|
optional string summary = 1;
|
@ -2,9 +2,9 @@ syntax = "proto2";
|
|||||||
|
|
||||||
package channel;
|
package channel;
|
||||||
|
|
||||||
option go_package = "pb/channel;channel";
|
option go_package = "channel;channel";
|
||||||
|
|
||||||
import "pb/channel/common.proto";
|
import "channel/common.proto";
|
||||||
|
|
||||||
message ChannelMsg {
|
message ChannelMsg {
|
||||||
optional uint64 guildId = 1;
|
optional uint64 guildId = 1;
|
@ -3,7 +3,7 @@ syntax = "proto2";
|
|||||||
|
|
||||||
package channel;
|
package channel;
|
||||||
|
|
||||||
option go_package = "pb/channel;channel";
|
option go_package = "channel;channel";
|
||||||
|
|
||||||
message ChannelOidb0xf5bRsp {
|
message ChannelOidb0xf5bRsp {
|
||||||
optional uint64 guildId = 1;
|
optional uint64 guildId = 1;
|
@ -1,5 +1,6 @@
|
|||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
option go_package = "./;msg";
|
|
||||||
|
option go_package = "msg;msg";
|
||||||
|
|
||||||
message C2CHead {
|
message C2CHead {
|
||||||
optional uint64 toUin = 1;
|
optional uint64 toUin = 1;
|
@ -2,7 +2,7 @@ syntax = "proto2";
|
|||||||
|
|
||||||
package msg;
|
package msg;
|
||||||
|
|
||||||
option go_package = "pb/msg;msg";
|
option go_package = "msg;msg";
|
||||||
|
|
||||||
message GetMessageRequest {
|
message GetMessageRequest {
|
||||||
optional SyncFlag syncFlag = 1;
|
optional SyncFlag syncFlag = 1;
|
||||||
@ -379,14 +379,14 @@ message Text {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message Attr {
|
message Attr {
|
||||||
optional int32 codePage = 1;
|
optional sint32 codePage = 1;
|
||||||
optional int32 time = 2;
|
optional uint32 time = 2;
|
||||||
optional int32 random = 3;
|
optional uint32 random = 3;
|
||||||
optional int32 color = 4;
|
optional uint32 color = 4;
|
||||||
optional int32 size = 5;
|
optional uint32 size = 5;
|
||||||
optional int32 effect = 6;
|
optional uint32 effect = 6;
|
||||||
optional int32 charSet = 7;
|
optional uint32 charSet = 7;
|
||||||
optional int32 pitchAndFamily = 8;
|
optional uint32 pitchAndFamily = 8;
|
||||||
optional string fontName = 9;
|
optional string fontName = 9;
|
||||||
optional bytes reserveData = 10;
|
optional bytes reserveData = 10;
|
||||||
}
|
}
|
@ -1,12 +1,13 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
option go_package = "./;msg";
|
option go_package = "msg;msg";
|
||||||
|
|
||||||
message MsgPic {
|
message MsgPic {
|
||||||
bytes smallPicUrl = 1;
|
bytes smallPicUrl = 1;
|
||||||
bytes originalPicUrl = 2;
|
bytes originalPicUrl = 2;
|
||||||
int32 localPicId = 3;
|
int32 localPicId = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ObjMsg {
|
message ObjMsg {
|
||||||
int32 msgType = 1;
|
int32 msgType = 1;
|
||||||
bytes title = 2;
|
bytes title = 2;
|
||||||
@ -16,10 +17,12 @@ message ObjMsg {
|
|||||||
repeated MsgContentInfo msgContentInfo = 7;
|
repeated MsgContentInfo msgContentInfo = 7;
|
||||||
int32 reportIdShow = 8;
|
int32 reportIdShow = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
message MsgContentInfo {
|
message MsgContentInfo {
|
||||||
bytes contentInfoId = 1;
|
bytes contentInfoId = 1;
|
||||||
MsgFile msgFile = 2;
|
MsgFile msgFile = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message MsgFile {
|
message MsgFile {
|
||||||
int32 busId = 1;
|
int32 busId = 1;
|
||||||
bytes filePath = 2;
|
bytes filePath = 2;
|
@ -1,6 +1,6 @@
|
|||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
|
|
||||||
option go_package = "./;msg";
|
option go_package = "msg;msg";
|
||||||
|
|
||||||
message PbMsgReadedReportReq {
|
message PbMsgReadedReportReq {
|
||||||
repeated PbGroupReadedReportReq grpReadReport = 1;
|
repeated PbGroupReadedReportReq grpReadReport = 1;
|
Loading…
x
Reference in New Issue
Block a user