|
@@ -1368,6 +1368,124 @@ func (x *GetUnreadClassCountRes) GetInfo() []*Messages {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+type GetMsgTypeReq struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
|
|
|
+ Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetMsgTypeReq) Reset() {
|
|
|
+ *x = GetMsgTypeReq{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_message_proto_msgTypes[18]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetMsgTypeReq) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*GetMsgTypeReq) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *GetMsgTypeReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_message_proto_msgTypes[18]
|
|
|
+ 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 GetMsgTypeReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*GetMsgTypeReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_message_proto_rawDescGZIP(), []int{18}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetMsgTypeReq) GetUserId() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.UserId
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetMsgTypeReq) GetAppid() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Appid
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+type GetMsgTypeRes struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
|
|
|
+ Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
|
|
|
+ Data []int64 `protobuf:"varint,3,rep,packed,name=data,proto3" json:"data,omitempty"` //
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetMsgTypeRes) Reset() {
|
|
|
+ *x = GetMsgTypeRes{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_message_proto_msgTypes[19]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetMsgTypeRes) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*GetMsgTypeRes) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *GetMsgTypeRes) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_message_proto_msgTypes[19]
|
|
|
+ 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 GetMsgTypeRes.ProtoReflect.Descriptor instead.
|
|
|
+func (*GetMsgTypeRes) Descriptor() ([]byte, []int) {
|
|
|
+ return file_message_proto_rawDescGZIP(), []int{19}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetMsgTypeRes) GetCode() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Code
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetMsgTypeRes) GetMessage() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Message
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *GetMsgTypeRes) GetData() []int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Data
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
var File_message_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_message_proto_rawDesc = []byte{
|
|
@@ -1523,56 +1641,69 @@ var file_message_proto_rawDesc = []byte{
|
|
|
0x2e, 0x52, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12,
|
|
|
0x25, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e,
|
|
|
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73,
|
|
|
- 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x32, 0x8b, 0x06, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
|
|
- 0x67, 0x65, 0x12, 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64,
|
|
|
- 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
- 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75,
|
|
|
- 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
|
|
- 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53,
|
|
|
- 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73,
|
|
|
- 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75,
|
|
|
- 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65,
|
|
|
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
|
|
|
- 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e,
|
|
|
- 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69,
|
|
|
- 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
- 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73,
|
|
|
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d,
|
|
|
- 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25,
|
|
|
- 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d,
|
|
|
- 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65,
|
|
|
+ 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x3d, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67,
|
|
|
+ 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 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,
|
|
|
+ 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
|
+ 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x51, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54,
|
|
|
+ 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
|
|
|
+ 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65,
|
|
|
+ 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73,
|
|
|
+ 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03,
|
|
|
+ 0x28, 0x03, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xc9, 0x06, 0x0a, 0x07, 0x4d, 0x65, 0x73,
|
|
|
+ 0x73, 0x61, 0x67, 0x65, 0x12, 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65,
|
|
|
+ 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
|
|
|
+ 0x67, 0x65, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61,
|
|
|
+ 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73,
|
|
|
+ 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a,
|
|
|
+ 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d,
|
|
|
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65,
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
|
|
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55,
|
|
|
- 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x6d, 0x65, 0x73,
|
|
|
- 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
|
|
|
- 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73,
|
|
|
- 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
|
|
|
- 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x46,
|
|
|
- 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73,
|
|
|
- 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67,
|
|
|
- 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69,
|
|
|
- 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x13,
|
|
|
+ 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65,
|
|
|
+ 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
|
|
|
+ 0x23, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
|
|
|
+ 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71,
|
|
|
+ 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52,
|
|
|
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
|
|
+ 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
+ 0x12, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
|
|
+ 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
|
+ 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x47, 0x65,
|
|
|
+ 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x6d,
|
|
|
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
|
|
|
+ 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d,
|
|
|
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
|
|
|
+ 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a,
|
|
|
+ 0x0b, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d,
|
|
|
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d,
|
|
|
+ 0x73, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
|
|
+ 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x57,
|
|
|
+ 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
|
|
|
+ 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
|
|
0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f,
|
|
|
- 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65,
|
|
|
- 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e,
|
|
|
- 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47,
|
|
|
- 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73,
|
|
|
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74,
|
|
|
- 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
|
- 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
- 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65,
|
|
|
- 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x12,
|
|
|
- 0x4a, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65,
|
|
|
- 0x74, 0x61, 0x69, 0x6c, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d,
|
|
|
- 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a,
|
|
|
- 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
|
- 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x57, 0x0a, 0x13, 0x47,
|
|
|
+ 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
+ 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52,
|
|
|
+ 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x61,
|
|
|
+ 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73,
|
|
|
+ 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61,
|
|
|
+ 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
|
|
+ 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65,
|
|
|
+ 0x73, 0x12, 0x4a, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
+ 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
+ 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65,
|
|
|
+ 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73,
|
|
|
+ 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x57, 0x0a,
|
|
|
+ 0x13, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43,
|
|
|
+ 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47,
|
|
|
0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75,
|
|
|
- 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74,
|
|
|
- 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74,
|
|
|
- 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65,
|
|
|
- 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e,
|
|
|
- 0x74, 0x52, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
|
|
|
+ 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f,
|
|
|
+ 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67,
|
|
|
+ 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47,
|
|
|
+ 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x6d,
|
|
|
+ 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70,
|
|
|
+ 0x65, 0x52, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -1587,7 +1718,7 @@ func file_message_proto_rawDescGZIP() []byte {
|
|
|
return file_message_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
|
|
|
+var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
|
|
|
var file_message_proto_goTypes = []interface{}{
|
|
|
(*SendMsgRequest)(nil), // 0: message.SendMsgRequest
|
|
|
(*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
|
|
@@ -1607,6 +1738,8 @@ var file_message_proto_goTypes = []interface{}{
|
|
|
(*GetLastMessageRes)(nil), // 15: message.GetLastMessageRes
|
|
|
(*GetUnreadClassCountReq)(nil), // 16: message.GetUnreadClassCountReq
|
|
|
(*GetUnreadClassCountRes)(nil), // 17: message.GetUnreadClassCountRes
|
|
|
+ (*GetMsgTypeReq)(nil), // 18: message.GetMsgTypeReq
|
|
|
+ (*GetMsgTypeRes)(nil), // 19: message.GetMsgTypeRes
|
|
|
}
|
|
|
var file_message_proto_depIdxs = []int32{
|
|
|
9, // 0: message.FindUserMsgRes.data:type_name -> message.Messages
|
|
@@ -1623,18 +1756,20 @@ var file_message_proto_depIdxs = []int32{
|
|
|
14, // 11: message.Message.GetLastMessage:input_type -> message.GetLastMessageReq
|
|
|
12, // 12: message.Message.FindMessageDetail:input_type -> message.MessageDetailReq
|
|
|
16, // 13: message.Message.GetUnreadClassCount:input_type -> message.GetUnreadClassCountReq
|
|
|
- 6, // 14: message.Message.ChangeReadStatus:output_type -> message.Response
|
|
|
- 6, // 15: message.Message.SendUserMsg:output_type -> message.Response
|
|
|
- 6, // 16: message.Message.DeleteSingleMessage:output_type -> message.Response
|
|
|
- 6, // 17: message.Message.DeleteMultipleMessage:output_type -> message.Response
|
|
|
- 7, // 18: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
|
|
|
- 10, // 19: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
|
|
|
- 7, // 20: message.Message.GetClassUnreadCount:output_type -> message.GetUnreadCountResponse
|
|
|
- 15, // 21: message.Message.GetLastMessage:output_type -> message.GetLastMessageRes
|
|
|
- 13, // 22: message.Message.FindMessageDetail:output_type -> message.MessageDetailResp
|
|
|
- 17, // 23: message.Message.GetUnreadClassCount:output_type -> message.GetUnreadClassCountRes
|
|
|
- 14, // [14:24] is the sub-list for method output_type
|
|
|
- 4, // [4:14] is the sub-list for method input_type
|
|
|
+ 18, // 14: message.Message.GetMsgType:input_type -> message.GetMsgTypeReq
|
|
|
+ 6, // 15: message.Message.ChangeReadStatus:output_type -> message.Response
|
|
|
+ 6, // 16: message.Message.SendUserMsg:output_type -> message.Response
|
|
|
+ 6, // 17: message.Message.DeleteSingleMessage:output_type -> message.Response
|
|
|
+ 6, // 18: message.Message.DeleteMultipleMessage:output_type -> message.Response
|
|
|
+ 7, // 19: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
|
|
|
+ 10, // 20: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
|
|
|
+ 7, // 21: message.Message.GetClassUnreadCount:output_type -> message.GetUnreadCountResponse
|
|
|
+ 15, // 22: message.Message.GetLastMessage:output_type -> message.GetLastMessageRes
|
|
|
+ 13, // 23: message.Message.FindMessageDetail:output_type -> message.MessageDetailResp
|
|
|
+ 17, // 24: message.Message.GetUnreadClassCount:output_type -> message.GetUnreadClassCountRes
|
|
|
+ 19, // 25: message.Message.GetMsgType:output_type -> message.GetMsgTypeRes
|
|
|
+ 15, // [15:26] is the sub-list for method output_type
|
|
|
+ 4, // [4:15] 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
|
|
@@ -1862,6 +1997,30 @@ func file_message_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_message_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*GetMsgTypeReq); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_message_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*GetMsgTypeRes); 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{
|
|
@@ -1869,7 +2028,7 @@ func file_message_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_message_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 18,
|
|
|
+ NumMessages: 20,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|
|
@@ -1915,6 +2074,8 @@ type MessageClient interface {
|
|
|
FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error)
|
|
|
// 获取指定用户的未读消息分类及数量 及分类的最新消息
|
|
|
GetUnreadClassCount(ctx context.Context, in *GetUnreadClassCountReq, opts ...grpc.CallOption) (*GetUnreadClassCountRes, error)
|
|
|
+ // 获取指定用户收到消息的分类
|
|
|
+ GetMsgType(ctx context.Context, in *GetMsgTypeReq, opts ...grpc.CallOption) (*GetMsgTypeRes, error)
|
|
|
}
|
|
|
|
|
|
type messageClient struct {
|
|
@@ -2015,6 +2176,15 @@ func (c *messageClient) GetUnreadClassCount(ctx context.Context, in *GetUnreadCl
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *messageClient) GetMsgType(ctx context.Context, in *GetMsgTypeReq, opts ...grpc.CallOption) (*GetMsgTypeRes, error) {
|
|
|
+ out := new(GetMsgTypeRes)
|
|
|
+ err := c.cc.Invoke(ctx, "/message.Message/GetMsgType", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
// MessageServer is the server API for Message service.
|
|
|
type MessageServer interface {
|
|
|
// 修改消息阅读状态
|
|
@@ -2037,6 +2207,8 @@ type MessageServer interface {
|
|
|
FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error)
|
|
|
// 获取指定用户的未读消息分类及数量 及分类的最新消息
|
|
|
GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error)
|
|
|
+ // 获取指定用户收到消息的分类
|
|
|
+ GetMsgType(context.Context, *GetMsgTypeReq) (*GetMsgTypeRes, error)
|
|
|
}
|
|
|
|
|
|
// UnimplementedMessageServer can be embedded to have forward compatible implementations.
|
|
@@ -2073,6 +2245,9 @@ func (*UnimplementedMessageServer) FindMessageDetail(context.Context, *MessageDe
|
|
|
func (*UnimplementedMessageServer) GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUnreadClassCount not implemented")
|
|
|
}
|
|
|
+func (*UnimplementedMessageServer) GetMsgType(context.Context, *GetMsgTypeReq) (*GetMsgTypeRes, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GetMsgType not implemented")
|
|
|
+}
|
|
|
|
|
|
func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
|
|
|
s.RegisterService(&_Message_serviceDesc, srv)
|
|
@@ -2258,6 +2433,24 @@ func _Message_GetUnreadClassCount_Handler(srv interface{}, ctx context.Context,
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Message_GetMsgType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(GetMsgTypeReq)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(MessageServer).GetMsgType(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/message.Message/GetMsgType",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(MessageServer).GetMsgType(ctx, req.(*GetMsgTypeReq))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
var _Message_serviceDesc = grpc.ServiceDesc{
|
|
|
ServiceName: "message.Message",
|
|
|
HandlerType: (*MessageServer)(nil),
|
|
@@ -2302,6 +2495,10 @@ var _Message_serviceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "GetUnreadClassCount",
|
|
|
Handler: _Message_GetUnreadClassCount_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "GetMsgType",
|
|
|
+ Handler: _Message_GetMsgType_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "message.proto",
|