|
@@ -1,8 +1,8 @@
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// versions:
|
|
|
// protoc-gen-go v1.28.0
|
|
|
-// protoc v3.19.4
|
|
|
-// source: messagecenter.proto
|
|
|
+// protoc v3.15.1
|
|
|
+// source: messageCenter.proto
|
|
|
|
|
|
package messagecenter
|
|
|
|
|
@@ -20,31 +20,34 @@ const (
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
)
|
|
|
|
|
|
-type Request struct {
|
|
|
+type CountReq struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- Ping string `protobuf:"bytes,1,opt,name=ping,proto3" json:"ping,omitempty"`
|
|
|
+ ReadType int64 `protobuf:"varint,1,opt,name=readType,proto3" json:"readType,omitempty"` // 已读类型
|
|
|
+ MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` // 消息类型
|
|
|
+ SendId string `protobuf:"bytes,3,opt,name=sendId,proto3" json:"sendId,omitempty"` // 发送方id
|
|
|
+ ReceiveId string `protobuf:"bytes,4,opt,name=receiveId,proto3" json:"receiveId,omitempty"` // 接收方id
|
|
|
}
|
|
|
|
|
|
-func (x *Request) Reset() {
|
|
|
- *x = Request{}
|
|
|
+func (x *CountReq) Reset() {
|
|
|
+ *x = CountReq{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_messagecenter_proto_msgTypes[0]
|
|
|
+ mi := &file_messageCenter_proto_msgTypes[0]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-func (x *Request) String() string {
|
|
|
+func (x *CountReq) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
-func (*Request) ProtoMessage() {}
|
|
|
+func (*CountReq) ProtoMessage() {}
|
|
|
|
|
|
-func (x *Request) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_messagecenter_proto_msgTypes[0]
|
|
|
+func (x *CountReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_messageCenter_proto_msgTypes[0]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -55,43 +58,113 @@ func (x *Request) ProtoReflect() protoreflect.Message {
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
-// Deprecated: Use Request.ProtoReflect.Descriptor instead.
|
|
|
-func (*Request) Descriptor() ([]byte, []int) {
|
|
|
- return file_messagecenter_proto_rawDescGZIP(), []int{0}
|
|
|
+// Deprecated: Use CountReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*CountReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_messageCenter_proto_rawDescGZIP(), []int{0}
|
|
|
}
|
|
|
|
|
|
-func (x *Request) GetPing() string {
|
|
|
+func (x *CountReq) GetReadType() int64 {
|
|
|
if x != nil {
|
|
|
- return x.Ping
|
|
|
+ return x.ReadType
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CountReq) GetMsgType() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.MsgType
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CountReq) GetSendId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.SendId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CountReq) GetReceiveId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ReceiveId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-type Response struct {
|
|
|
+type CountResp struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CountResp) Reset() {
|
|
|
+ *x = CountResp{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_messageCenter_proto_msgTypes[1]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CountResp) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*CountResp) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *CountResp) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_messageCenter_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 CountResp.ProtoReflect.Descriptor instead.
|
|
|
+func (*CountResp) Descriptor() ([]byte, []int) {
|
|
|
+ return file_messageCenter_proto_rawDescGZIP(), []int{1}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CountResp) GetCount() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Count
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+type GetReq struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- Pong string `protobuf:"bytes,1,opt,name=pong,proto3" json:"pong,omitempty"`
|
|
|
+ MsgType int64 `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"` // 消息类型
|
|
|
+ SendId string `protobuf:"bytes,2,opt,name=sendId,proto3" json:"sendId,omitempty"` // 发送方id
|
|
|
+ ReceiveId string `protobuf:"bytes,3,opt,name=receiveId,proto3" json:"receiveId,omitempty"` // 接收方id
|
|
|
}
|
|
|
|
|
|
-func (x *Response) Reset() {
|
|
|
- *x = Response{}
|
|
|
+func (x *GetReq) Reset() {
|
|
|
+ *x = GetReq{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_messagecenter_proto_msgTypes[1]
|
|
|
+ mi := &file_messageCenter_proto_msgTypes[2]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-func (x *Response) String() string {
|
|
|
+func (x *GetReq) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
-func (*Response) ProtoMessage() {}
|
|
|
+func (*GetReq) ProtoMessage() {}
|
|
|
|
|
|
-func (x *Response) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_messagecenter_proto_msgTypes[1]
|
|
|
+func (x *GetReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_messageCenter_proto_msgTypes[2]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -102,71 +175,650 @@ func (x *Response) ProtoReflect() protoreflect.Message {
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
-// Deprecated: Use Response.ProtoReflect.Descriptor instead.
|
|
|
-func (*Response) Descriptor() ([]byte, []int) {
|
|
|
- return file_messagecenter_proto_rawDescGZIP(), []int{1}
|
|
|
+// Deprecated: Use GetReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*GetReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_messageCenter_proto_rawDescGZIP(), []int{2}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetReq) GetMsgType() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.MsgType
|
|
|
+ }
|
|
|
+ return 0
|
|
|
}
|
|
|
|
|
|
-func (x *Response) GetPong() string {
|
|
|
+func (x *GetReq) GetSendId() string {
|
|
|
if x != nil {
|
|
|
- return x.Pong
|
|
|
+ return x.SendId
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-var File_messagecenter_proto protoreflect.FileDescriptor
|
|
|
+func (x *GetReq) GetReceiveId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.ReceiveId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type GetResp struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
-var file_messagecenter_proto_rawDesc = []byte{
|
|
|
- 0x0a, 0x13, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
|
|
|
+ Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
|
|
|
+ CreateTime string `protobuf:"bytes,2,opt,name=createTime,proto3" json:"createTime,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetResp) Reset() {
|
|
|
+ *x = GetResp{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_messageCenter_proto_msgTypes[3]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetResp) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*GetResp) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *GetResp) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_messageCenter_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 GetResp.ProtoReflect.Descriptor instead.
|
|
|
+func (*GetResp) Descriptor() ([]byte, []int) {
|
|
|
+ return file_messageCenter_proto_rawDescGZIP(), []int{3}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetResp) GetContent() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Content
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetResp) GetCreateTime() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.CreateTime
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type UserReq struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"`
|
|
|
+ StartTime string `protobuf:"bytes,2,opt,name=startTime,proto3" json:"startTime,omitempty"`
|
|
|
+ EndTime string `protobuf:"bytes,3,opt,name=endTime,proto3" json:"endTime,omitempty"`
|
|
|
+ CustomerServiceId string `protobuf:"bytes,4,opt,name=customer_service_id,json=customerServiceId,proto3" json:"customer_service_id,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UserReq) Reset() {
|
|
|
+ *x = UserReq{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_messageCenter_proto_msgTypes[4]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UserReq) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*UserReq) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *UserReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_messageCenter_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 UserReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*UserReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_messageCenter_proto_rawDescGZIP(), []int{4}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UserReq) GetPhone() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Phone
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UserReq) GetStartTime() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.StartTime
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UserReq) GetEndTime() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.EndTime
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UserReq) GetCustomerServiceId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.CustomerServiceId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type UserResp struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
|
+ NickName string `protobuf:"bytes,2,opt,name=nickName,proto3" json:"nickName,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UserResp) Reset() {
|
|
|
+ *x = UserResp{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_messageCenter_proto_msgTypes[5]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UserResp) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*UserResp) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *UserResp) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_messageCenter_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 UserResp.ProtoReflect.Descriptor instead.
|
|
|
+func (*UserResp) Descriptor() ([]byte, []int) {
|
|
|
+ return file_messageCenter_proto_rawDescGZIP(), []int{5}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UserResp) GetUserId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.UserId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *UserResp) GetNickName() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.NickName
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type MessageReq struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
+ PageIndex int64 `protobuf:"varint,2,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"`
|
|
|
+ PageSize int64 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
|
|
|
+ SendUserId string `protobuf:"bytes,4,opt,name=send_user_id,json=sendUserId,proto3" json:"send_user_id,omitempty"`
|
|
|
+ OwnId string `protobuf:"bytes,5,opt,name=own_id,json=ownId,proto3" json:"own_id,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageReq) Reset() {
|
|
|
+ *x = MessageReq{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_messageCenter_proto_msgTypes[6]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageReq) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*MessageReq) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *MessageReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_messageCenter_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 MessageReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*MessageReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_messageCenter_proto_rawDescGZIP(), []int{6}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageReq) GetType() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Type
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageReq) GetPageIndex() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.PageIndex
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageReq) GetPageSize() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.PageSize
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageReq) GetSendUserId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.SendUserId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageReq) GetOwnId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.OwnId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type MessageResp struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
|
|
|
+ Data *MessageEntity `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageResp) Reset() {
|
|
|
+ *x = MessageResp{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_messageCenter_proto_msgTypes[7]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageResp) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*MessageResp) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *MessageResp) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_messageCenter_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 MessageResp.ProtoReflect.Descriptor instead.
|
|
|
+func (*MessageResp) Descriptor() ([]byte, []int) {
|
|
|
+ return file_messageCenter_proto_rawDescGZIP(), []int{7}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageResp) GetCount() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Count
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageResp) GetData() *MessageEntity {
|
|
|
+ if x != nil {
|
|
|
+ return x.Data
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+type MessageEntity struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
|
|
+ Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
|
|
+ Item string `protobuf:"bytes,3,opt,name=item,proto3" json:"item,omitempty"`
|
|
|
+ Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
+ Link string `protobuf:"bytes,5,opt,name=link,proto3" json:"link,omitempty"`
|
|
|
+ CreateTime string `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageEntity) Reset() {
|
|
|
+ *x = MessageEntity{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_messageCenter_proto_msgTypes[8]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageEntity) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*MessageEntity) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *MessageEntity) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_messageCenter_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 MessageEntity.ProtoReflect.Descriptor instead.
|
|
|
+func (*MessageEntity) Descriptor() ([]byte, []int) {
|
|
|
+ return file_messageCenter_proto_rawDescGZIP(), []int{8}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageEntity) GetTitle() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Title
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageEntity) GetContent() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Content
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageEntity) GetItem() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Item
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageEntity) GetType() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Type
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageEntity) GetLink() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Link
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *MessageEntity) GetCreateTime() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.CreateTime
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+var File_messageCenter_proto protoreflect.FileDescriptor
|
|
|
+
|
|
|
+var file_messageCenter_proto_rawDesc = []byte{
|
|
|
+ 0x0a, 0x13, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65,
|
|
|
- 0x6e, 0x74, 0x65, 0x72, 0x22, 0x1d, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
|
- 0x12, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70,
|
|
|
- 0x69, 0x6e, 0x67, 0x22, 0x1e, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
|
- 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70,
|
|
|
- 0x6f, 0x6e, 0x67, 0x32, 0x48, 0x0a, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65,
|
|
|
- 0x6e, 0x74, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x16, 0x2e, 0x6d,
|
|
|
- 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x71,
|
|
|
- 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65,
|
|
|
- 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x11, 0x5a,
|
|
|
- 0x0f, 0x2e, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
|
|
|
- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x6e, 0x74, 0x65, 0x72, 0x22, 0x76, 0x0a, 0x08, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71,
|
|
|
+ 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
|
|
|
+ 0x28, 0x03, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07,
|
|
|
+ 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d,
|
|
|
+ 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x49, 0x64,
|
|
|
+ 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x1c,
|
|
|
+ 0x0a, 0x09, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
|
|
|
+ 0x09, 0x52, 0x09, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x49, 0x64, 0x22, 0x21, 0x0a, 0x09,
|
|
|
+ 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75,
|
|
|
+ 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22,
|
|
|
+ 0x58, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67,
|
|
|
+ 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54,
|
|
|
+ 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20,
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x6e, 0x64, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72,
|
|
|
+ 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
|
|
|
+ 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x07, 0x47, 0x65, 0x74,
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18,
|
|
|
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1e,
|
|
|
+ 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x87,
|
|
|
+ 0x01, 0x0a, 0x07, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68,
|
|
|
+ 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65,
|
|
|
+ 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20,
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18,
|
|
|
+ 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x63, 0x75, 0x73, 0x74,
|
|
|
+ 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18,
|
|
|
+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x53,
|
|
|
+ 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72,
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
|
|
|
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
+ 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
|
|
+ 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x0a, 0x4d, 0x65, 0x73,
|
|
|
+ 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
|
|
|
+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70,
|
|
|
+ 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
|
|
|
+ 0x70, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67,
|
|
|
+ 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67,
|
|
|
+ 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x0c, 0x73, 0x65, 0x6e, 0x64, 0x5f, 0x75, 0x73,
|
|
|
+ 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e,
|
|
|
+ 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x77, 0x6e, 0x5f, 0x69,
|
|
|
+ 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x49, 0x64, 0x22, 0x55,
|
|
|
+ 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a,
|
|
|
+ 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f,
|
|
|
+ 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
+ 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x65,
|
|
|
+ 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52,
|
|
|
+ 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x9c, 0x01, 0x0a, 0x0d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
|
+ 0x65, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65,
|
|
|
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a,
|
|
|
+ 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
|
|
+ 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x18,
|
|
|
+ 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x69, 0x74, 0x65, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x74,
|
|
|
+ 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
|
|
|
+ 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c,
|
|
|
+ 0x69, 0x6e, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69,
|
|
|
+ 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
|
|
|
+ 0x54, 0x69, 0x6d, 0x65, 0x32, 0x88, 0x02, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
+ 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x05, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12,
|
|
|
+ 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
|
|
|
+ 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
|
|
+ 0x67, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
|
|
|
+ 0x73, 0x70, 0x12, 0x38, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x12, 0x15, 0x2e,
|
|
|
+ 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65,
|
|
|
+ 0x74, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65,
|
|
|
+ 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x08,
|
|
|
+ 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
|
|
+ 0x67, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71,
|
|
|
+ 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72,
|
|
|
+ 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x44, 0x0a, 0x0b, 0x46, 0x69, 0x6e,
|
|
|
+ 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
|
|
+ 0x67, 0x65, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
+ 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65, 0x6e,
|
|
|
+ 0x74, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x42,
|
|
|
+ 0x11, 0x5a, 0x0f, 0x2e, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x63, 0x65, 0x6e, 0x74,
|
|
|
+ 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
- file_messagecenter_proto_rawDescOnce sync.Once
|
|
|
- file_messagecenter_proto_rawDescData = file_messagecenter_proto_rawDesc
|
|
|
+ file_messageCenter_proto_rawDescOnce sync.Once
|
|
|
+ file_messageCenter_proto_rawDescData = file_messageCenter_proto_rawDesc
|
|
|
)
|
|
|
|
|
|
-func file_messagecenter_proto_rawDescGZIP() []byte {
|
|
|
- file_messagecenter_proto_rawDescOnce.Do(func() {
|
|
|
- file_messagecenter_proto_rawDescData = protoimpl.X.CompressGZIP(file_messagecenter_proto_rawDescData)
|
|
|
+func file_messageCenter_proto_rawDescGZIP() []byte {
|
|
|
+ file_messageCenter_proto_rawDescOnce.Do(func() {
|
|
|
+ file_messageCenter_proto_rawDescData = protoimpl.X.CompressGZIP(file_messageCenter_proto_rawDescData)
|
|
|
})
|
|
|
- return file_messagecenter_proto_rawDescData
|
|
|
+ return file_messageCenter_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_messagecenter_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
|
-var file_messagecenter_proto_goTypes = []interface{}{
|
|
|
- (*Request)(nil), // 0: messagecenter.Request
|
|
|
- (*Response)(nil), // 1: messagecenter.Response
|
|
|
+var file_messageCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
|
+var file_messageCenter_proto_goTypes = []interface{}{
|
|
|
+ (*CountReq)(nil), // 0: messagecenter.CountReq
|
|
|
+ (*CountResp)(nil), // 1: messagecenter.CountResp
|
|
|
+ (*GetReq)(nil), // 2: messagecenter.GetReq
|
|
|
+ (*GetResp)(nil), // 3: messagecenter.GetResp
|
|
|
+ (*UserReq)(nil), // 4: messagecenter.UserReq
|
|
|
+ (*UserResp)(nil), // 5: messagecenter.UserResp
|
|
|
+ (*MessageReq)(nil), // 6: messagecenter.MessageReq
|
|
|
+ (*MessageResp)(nil), // 7: messagecenter.MessageResp
|
|
|
+ (*MessageEntity)(nil), // 8: messagecenter.MessageEntity
|
|
|
}
|
|
|
-var file_messagecenter_proto_depIdxs = []int32{
|
|
|
- 0, // 0: messagecenter.Messagecenter.Ping:input_type -> messagecenter.Request
|
|
|
- 1, // 1: messagecenter.Messagecenter.Ping:output_type -> messagecenter.Response
|
|
|
- 1, // [1:2] is the sub-list for method output_type
|
|
|
- 0, // [0:1] is the sub-list for method input_type
|
|
|
- 0, // [0:0] is the sub-list for extension type_name
|
|
|
- 0, // [0:0] is the sub-list for extension extendee
|
|
|
- 0, // [0:0] is the sub-list for field type_name
|
|
|
+var file_messageCenter_proto_depIdxs = []int32{
|
|
|
+ 8, // 0: messagecenter.MessageResp.data:type_name -> messagecenter.MessageEntity
|
|
|
+ 0, // 1: messagecenter.messageCenter.Count:input_type -> messagecenter.CountReq
|
|
|
+ 2, // 2: messagecenter.messageCenter.GetLast:input_type -> messagecenter.GetReq
|
|
|
+ 4, // 3: messagecenter.messageCenter.UserList:input_type -> messagecenter.UserReq
|
|
|
+ 6, // 4: messagecenter.messageCenter.FindMessage:input_type -> messagecenter.MessageReq
|
|
|
+ 1, // 5: messagecenter.messageCenter.Count:output_type -> messagecenter.CountResp
|
|
|
+ 3, // 6: messagecenter.messageCenter.GetLast:output_type -> messagecenter.GetResp
|
|
|
+ 5, // 7: messagecenter.messageCenter.UserList:output_type -> messagecenter.UserResp
|
|
|
+ 7, // 8: messagecenter.messageCenter.FindMessage:output_type -> messagecenter.MessageResp
|
|
|
+ 5, // [5:9] is the sub-list for method output_type
|
|
|
+ 1, // [1:5] is the sub-list for method input_type
|
|
|
+ 1, // [1:1] is the sub-list for extension type_name
|
|
|
+ 1, // [1:1] is the sub-list for extension extendee
|
|
|
+ 0, // [0:1] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
-func init() { file_messagecenter_proto_init() }
|
|
|
-func file_messagecenter_proto_init() {
|
|
|
- if File_messagecenter_proto != nil {
|
|
|
+func init() { file_messageCenter_proto_init() }
|
|
|
+func file_messageCenter_proto_init() {
|
|
|
+ if File_messageCenter_proto != nil {
|
|
|
return
|
|
|
}
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
- file_messagecenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*Request); i {
|
|
|
+ file_messageCenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*CountReq); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_messageCenter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*CountResp); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_messageCenter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*GetReq); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_messageCenter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*GetResp); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_messageCenter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*UserReq); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_messageCenter_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*UserResp); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_messageCenter_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*MessageReq); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_messageCenter_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*MessageResp); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
@@ -177,8 +829,8 @@ func file_messagecenter_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
- file_messagecenter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*Response); i {
|
|
|
+ file_messageCenter_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*MessageEntity); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
@@ -194,18 +846,18 @@ func file_messagecenter_proto_init() {
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
File: protoimpl.DescBuilder{
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
- RawDescriptor: file_messagecenter_proto_rawDesc,
|
|
|
+ RawDescriptor: file_messageCenter_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 2,
|
|
|
+ NumMessages: 9,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|
|
|
- GoTypes: file_messagecenter_proto_goTypes,
|
|
|
- DependencyIndexes: file_messagecenter_proto_depIdxs,
|
|
|
- MessageInfos: file_messagecenter_proto_msgTypes,
|
|
|
+ GoTypes: file_messageCenter_proto_goTypes,
|
|
|
+ DependencyIndexes: file_messageCenter_proto_depIdxs,
|
|
|
+ MessageInfos: file_messageCenter_proto_msgTypes,
|
|
|
}.Build()
|
|
|
- File_messagecenter_proto = out.File
|
|
|
- file_messagecenter_proto_rawDesc = nil
|
|
|
- file_messagecenter_proto_goTypes = nil
|
|
|
- file_messagecenter_proto_depIdxs = nil
|
|
|
+ File_messageCenter_proto = out.File
|
|
|
+ file_messageCenter_proto_rawDesc = nil
|
|
|
+ file_messageCenter_proto_goTypes = nil
|
|
|
+ file_messageCenter_proto_depIdxs = nil
|
|
|
}
|