|
@@ -548,7 +548,7 @@ var file_message_proto_rawDesc = []byte{
|
|
|
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,
|
|
|
0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
|
|
|
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x89, 0x03, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
|
+ 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x82, 0x03, 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,
|
|
@@ -567,13 +567,13 @@ var file_message_proto_rawDesc = []byte{
|
|
|
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, 0x58, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x6e,
|
|
|
- 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 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, 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, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
+ 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, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
|
|
|
+ 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -603,7 +603,7 @@ var file_message_proto_depIdxs = []int32{
|
|
|
0, // 1: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
|
|
|
2, // 2: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
|
|
|
3, // 3: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
|
|
|
- 3, // 4: message.Message.GetUnreadCount:input_type -> message.DeleteMultipleMessageRequest
|
|
|
+ 4, // 4: message.Message.GetUnreadCount:input_type -> message.GetUnreadCountRequest
|
|
|
5, // 5: message.Message.ChangeReadStatus:output_type -> message.Response
|
|
|
5, // 6: message.Message.SendUserMsg:output_type -> message.Response
|
|
|
5, // 7: message.Message.DeleteSingleMessage:output_type -> message.Response
|
|
@@ -748,7 +748,7 @@ type MessageClient interface {
|
|
|
// 删除多条消息
|
|
|
DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
|
|
|
// 查询指定用户未读消息合计
|
|
|
- GetUnreadCount(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
|
|
|
+ GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
|
|
|
}
|
|
|
|
|
|
type messageClient struct {
|
|
@@ -795,7 +795,7 @@ func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMul
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *messageClient) GetUnreadCount(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
|
|
|
+func (c *messageClient) GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
|
|
|
out := new(GetUnreadCountResponse)
|
|
|
err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
|
|
|
if err != nil {
|
|
@@ -815,7 +815,7 @@ type MessageServer interface {
|
|
|
// 删除多条消息
|
|
|
DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
|
|
|
// 查询指定用户未读消息合计
|
|
|
- GetUnreadCount(context.Context, *DeleteMultipleMessageRequest) (*GetUnreadCountResponse, error)
|
|
|
+ GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error)
|
|
|
}
|
|
|
|
|
|
// UnimplementedMessageServer can be embedded to have forward compatible implementations.
|
|
@@ -834,7 +834,7 @@ func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteS
|
|
|
func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
|
|
|
}
|
|
|
-func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *DeleteMultipleMessageRequest) (*GetUnreadCountResponse, error) {
|
|
|
+func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
|
|
|
}
|
|
|
|
|
@@ -915,7 +915,7 @@ func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context
|
|
|
}
|
|
|
|
|
|
func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(DeleteMultipleMessageRequest)
|
|
|
+ in := new(GetUnreadCountRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -927,7 +927,7 @@ func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec f
|
|
|
FullMethod: "/message.Message/GetUnreadCount",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(MessageServer).GetUnreadCount(ctx, req.(*DeleteMultipleMessageRequest))
|
|
|
+ return srv.(MessageServer).GetUnreadCount(ctx, req.(*GetUnreadCountRequest))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|