// Code generated by protoc-gen-go-grpc. DO NOT EDIT. package chat import ( context "context" common "git.ikuban.com/server/pw-protobuf/api/common" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 // ChatClient is the client API for Chat service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type ChatClient interface { // 检查用户是否与接待员聊天 CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdentifyIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error) // 创建聊天房间 CreateChatRoom(ctx context.Context, in *CreateChatRoomParam, opts ...grpc.CallOption) (*RoomReply, error) // 查询在线人的列表 FindOnlinePersonList(ctx context.Context, in *common.ListPageAndPersonRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) // 查询推荐人的列表 FindRecommendPersonList(ctx context.Context, in *FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) // 接待员查询房间列表 PartnerFindRoomList(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*PartnerFindRoomListReply, error) // 用户查询房间列表 UserFindRoomList(ctx context.Context, in *UserFindRoomListRequest, opts ...grpc.CallOption) (*UserFindRoomListReply, error) Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*ReceiveReply, error) // 查询聊天记录 FindChatRecordList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) // 房间信息 FindChatRoomMsg(ctx context.Context, in *FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error) // 拉黑 SetBlackChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) // 删除房间 DeleteChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) // 拉黑 Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // 接待员领取开通奖励 PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*PartnerGetAwardReply, error) // 房间信息 FindRoomCardMsg(ctx context.Context, in *FindRoomCardMsgRequest, opts ...grpc.CallOption) (*common.RoomChatMsg, error) // 查询未处理的数据 FindNotReplyNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*FindNotReplyNumReply, error) } type chatClient struct { cc grpc.ClientConnInterface } func NewChatClient(cc grpc.ClientConnInterface) ChatClient { return &chatClient{cc} } func (c *chatClient) CheckUserPartnerIsRelationship(ctx context.Context, in *common.UserAndPartnerIdentifyIdParam, opts ...grpc.CallOption) (*CheckUserPartnerIsRelationshipReply, error) { out := new(CheckUserPartnerIsRelationshipReply) err := c.cc.Invoke(ctx, "/api.chat.Chat/CheckUserPartnerIsRelationship", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) CreateChatRoom(ctx context.Context, in *CreateChatRoomParam, opts ...grpc.CallOption) (*RoomReply, error) { out := new(RoomReply) err := c.cc.Invoke(ctx, "/api.chat.Chat/CreateChatRoom", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) FindOnlinePersonList(ctx context.Context, in *common.ListPageAndPersonRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) { out := new(common.RecommendPersonListReply) err := c.cc.Invoke(ctx, "/api.chat.Chat/FindOnlinePersonList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) FindRecommendPersonList(ctx context.Context, in *FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) { out := new(common.RecommendPersonListReply) err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRecommendPersonList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) PartnerFindRoomList(ctx context.Context, in *PartnerFindRoomListRequest, opts ...grpc.CallOption) (*PartnerFindRoomListReply, error) { out := new(PartnerFindRoomListReply) err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerFindRoomList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) UserFindRoomList(ctx context.Context, in *UserFindRoomListRequest, opts ...grpc.CallOption) (*UserFindRoomListReply, error) { out := new(UserFindRoomListReply) err := c.cc.Invoke(ctx, "/api.chat.Chat/UserFindRoomList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*ReceiveReply, error) { out := new(ReceiveReply) err := c.cc.Invoke(ctx, "/api.chat.Chat/Receive", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) FindChatRecordList(ctx context.Context, in *FindChatRecordListRequest, opts ...grpc.CallOption) (*common.ChatRecordListReply, error) { out := new(common.ChatRecordListReply) err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRecordList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) FindChatRoomMsg(ctx context.Context, in *FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error) { out := new(common.ChatRoomMsg) err := c.cc.Invoke(ctx, "/api.chat.Chat/FindChatRoomMsg", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) SetBlackChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.chat.Chat/SetBlackChat", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) DeleteChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.chat.Chat/DeleteChat", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.chat.Chat/Report", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*PartnerGetAwardReply, error) { out := new(PartnerGetAwardReply) err := c.cc.Invoke(ctx, "/api.chat.Chat/PartnerGetAward", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) FindRoomCardMsg(ctx context.Context, in *FindRoomCardMsgRequest, opts ...grpc.CallOption) (*common.RoomChatMsg, error) { out := new(common.RoomChatMsg) err := c.cc.Invoke(ctx, "/api.chat.Chat/FindRoomCardMsg", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *chatClient) FindNotReplyNum(ctx context.Context, in *common.IdentifyIdRequest, opts ...grpc.CallOption) (*FindNotReplyNumReply, error) { out := new(FindNotReplyNumReply) err := c.cc.Invoke(ctx, "/api.chat.Chat/FindNotReplyNum", in, out, opts...) if err != nil { return nil, err } return out, nil } // ChatServer is the server API for Chat service. // All implementations must embed UnimplementedChatServer // for forward compatibility type ChatServer interface { // 检查用户是否与接待员聊天 CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*CheckUserPartnerIsRelationshipReply, error) // 创建聊天房间 CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error) // 查询在线人的列表 FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error) // 查询推荐人的列表 FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error) // 接待员查询房间列表 PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error) // 用户查询房间列表 UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error) Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error) // 查询聊天记录 FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error) // 房间信息 FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error) // 拉黑 SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) // 删除房间 DeleteChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) // 拉黑 Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error) // 接待员领取开通奖励 PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error) // 房间信息 FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error) // 查询未处理的数据 FindNotReplyNum(context.Context, *common.IdentifyIdRequest) (*FindNotReplyNumReply, error) mustEmbedUnimplementedChatServer() } // UnimplementedChatServer must be embedded to have forward compatible implementations. type UnimplementedChatServer struct { } func (UnimplementedChatServer) CheckUserPartnerIsRelationship(context.Context, *common.UserAndPartnerIdentifyIdParam) (*CheckUserPartnerIsRelationshipReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented") } func (UnimplementedChatServer) CreateChatRoom(context.Context, *CreateChatRoomParam) (*RoomReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateChatRoom not implemented") } func (UnimplementedChatServer) FindOnlinePersonList(context.Context, *common.ListPageAndPersonRequest) (*common.RecommendPersonListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePersonList not implemented") } func (UnimplementedChatServer) FindRecommendPersonList(context.Context, *FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FindRecommendPersonList not implemented") } func (UnimplementedChatServer) PartnerFindRoomList(context.Context, *PartnerFindRoomListRequest) (*PartnerFindRoomListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method PartnerFindRoomList not implemented") } func (UnimplementedChatServer) UserFindRoomList(context.Context, *UserFindRoomListRequest) (*UserFindRoomListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method UserFindRoomList not implemented") } func (UnimplementedChatServer) Receive(context.Context, *ReceiveRequest) (*ReceiveReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Receive not implemented") } func (UnimplementedChatServer) FindChatRecordList(context.Context, *FindChatRecordListRequest) (*common.ChatRecordListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FindChatRecordList not implemented") } func (UnimplementedChatServer) FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error) { return nil, status.Errorf(codes.Unimplemented, "method FindChatRoomMsg not implemented") } func (UnimplementedChatServer) SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method SetBlackChat not implemented") } func (UnimplementedChatServer) DeleteChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteChat not implemented") } func (UnimplementedChatServer) Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Report not implemented") } func (UnimplementedChatServer) PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*PartnerGetAwardReply, error) { return nil, status.Errorf(codes.Unimplemented, "method PartnerGetAward not implemented") } func (UnimplementedChatServer) FindRoomCardMsg(context.Context, *FindRoomCardMsgRequest) (*common.RoomChatMsg, error) { return nil, status.Errorf(codes.Unimplemented, "method FindRoomCardMsg not implemented") } func (UnimplementedChatServer) FindNotReplyNum(context.Context, *common.IdentifyIdRequest) (*FindNotReplyNumReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FindNotReplyNum not implemented") } func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {} // UnsafeChatServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ChatServer will // result in compilation errors. type UnsafeChatServer interface { mustEmbedUnimplementedChatServer() } func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer) { s.RegisterService(&Chat_ServiceDesc, srv) } func _Chat_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(common.UserAndPartnerIdentifyIdParam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/CheckUserPartnerIsRelationship", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).CheckUserPartnerIsRelationship(ctx, req.(*common.UserAndPartnerIdentifyIdParam)) } return interceptor(ctx, in, info, handler) } func _Chat_CreateChatRoom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateChatRoomParam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).CreateChatRoom(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/CreateChatRoom", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).CreateChatRoom(ctx, req.(*CreateChatRoomParam)) } return interceptor(ctx, in, info, handler) } func _Chat_FindOnlinePersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(common.ListPageAndPersonRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).FindOnlinePersonList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/FindOnlinePersonList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).FindOnlinePersonList(ctx, req.(*common.ListPageAndPersonRequest)) } return interceptor(ctx, in, info, handler) } func _Chat_FindRecommendPersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindRecommendPersonListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).FindRecommendPersonList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/FindRecommendPersonList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).FindRecommendPersonList(ctx, req.(*FindRecommendPersonListRequest)) } return interceptor(ctx, in, info, handler) } func _Chat_PartnerFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PartnerFindRoomListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).PartnerFindRoomList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/PartnerFindRoomList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).PartnerFindRoomList(ctx, req.(*PartnerFindRoomListRequest)) } return interceptor(ctx, in, info, handler) } func _Chat_UserFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UserFindRoomListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).UserFindRoomList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/UserFindRoomList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).UserFindRoomList(ctx, req.(*UserFindRoomListRequest)) } return interceptor(ctx, in, info, handler) } func _Chat_Receive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ReceiveRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).Receive(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/Receive", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).Receive(ctx, req.(*ReceiveRequest)) } return interceptor(ctx, in, info, handler) } func _Chat_FindChatRecordList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindChatRecordListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).FindChatRecordList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/FindChatRecordList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).FindChatRecordList(ctx, req.(*FindChatRecordListRequest)) } return interceptor(ctx, in, info, handler) } func _Chat_FindChatRoomMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindChatRoomMsgRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).FindChatRoomMsg(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/FindChatRoomMsg", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).FindChatRoomMsg(ctx, req.(*FindChatRoomMsgRequest)) } return interceptor(ctx, in, info, handler) } func _Chat_SetBlackChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SetBlackChatParam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).SetBlackChat(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/SetBlackChat", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).SetBlackChat(ctx, req.(*SetBlackChatParam)) } return interceptor(ctx, in, info, handler) } func _Chat_DeleteChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SetBlackChatParam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).DeleteChat(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/DeleteChat", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).DeleteChat(ctx, req.(*SetBlackChatParam)) } return interceptor(ctx, in, info, handler) } func _Chat_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(common.ReportRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).Report(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/Report", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).Report(ctx, req.(*common.ReportRequest)) } return interceptor(ctx, in, info, handler) } func _Chat_PartnerGetAward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PartnerGetAwardRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).PartnerGetAward(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/PartnerGetAward", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).PartnerGetAward(ctx, req.(*PartnerGetAwardRequest)) } return interceptor(ctx, in, info, handler) } func _Chat_FindRoomCardMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindRoomCardMsgRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).FindRoomCardMsg(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/FindRoomCardMsg", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).FindRoomCardMsg(ctx, req.(*FindRoomCardMsgRequest)) } return interceptor(ctx, in, info, handler) } func _Chat_FindNotReplyNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(common.IdentifyIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ChatServer).FindNotReplyNum(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.chat.Chat/FindNotReplyNum", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ChatServer).FindNotReplyNum(ctx, req.(*common.IdentifyIdRequest)) } return interceptor(ctx, in, info, handler) } // Chat_ServiceDesc is the grpc.ServiceDesc for Chat service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Chat_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.chat.Chat", HandlerType: (*ChatServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CheckUserPartnerIsRelationship", Handler: _Chat_CheckUserPartnerIsRelationship_Handler, }, { MethodName: "CreateChatRoom", Handler: _Chat_CreateChatRoom_Handler, }, { MethodName: "FindOnlinePersonList", Handler: _Chat_FindOnlinePersonList_Handler, }, { MethodName: "FindRecommendPersonList", Handler: _Chat_FindRecommendPersonList_Handler, }, { MethodName: "PartnerFindRoomList", Handler: _Chat_PartnerFindRoomList_Handler, }, { MethodName: "UserFindRoomList", Handler: _Chat_UserFindRoomList_Handler, }, { MethodName: "Receive", Handler: _Chat_Receive_Handler, }, { MethodName: "FindChatRecordList", Handler: _Chat_FindChatRecordList_Handler, }, { MethodName: "FindChatRoomMsg", Handler: _Chat_FindChatRoomMsg_Handler, }, { MethodName: "SetBlackChat", Handler: _Chat_SetBlackChat_Handler, }, { MethodName: "DeleteChat", Handler: _Chat_DeleteChat_Handler, }, { MethodName: "Report", Handler: _Chat_Report_Handler, }, { MethodName: "PartnerGetAward", Handler: _Chat_PartnerGetAward_Handler, }, { MethodName: "FindRoomCardMsg", Handler: _Chat_FindRoomCardMsg_Handler, }, { MethodName: "FindNotReplyNum", Handler: _Chat_FindNotReplyNum_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "chat.proto", }