// Code generated by protoc-gen-go-grpc. DO NOT EDIT. package statistics 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 // StatisticsClient is the client API for Statistics 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 StatisticsClient interface { // 观看用户主页 LookPerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) // 关注用户 LikePerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) // 取关用户 UnLikePerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) // 获取喜欢以及访问统计信息 GetLookAndLikeStatisticsMessage(ctx context.Context, in *GetLookAndLikeStatisticsMessageRequest, opts ...grpc.CallOption) (*LookAndLikeMessageReply, error) // 获取访问统计信息 GetLookStatisticsMessage(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*LookMessageReply, error) // 减少"喜欢我的"的未读数 ReduceLikeUnreadNum(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) // 解锁"看过我的"的记录 UnlockLookRecord(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) // 查看看过我的列表 FindLookList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error) // 查看我喜欢的列表 FindLikeList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error) // 查看喜欢我的列表 FindLikedList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error) // 接待用户统计 ReceptionPerson(ctx context.Context, in *ReceptionMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) // 接待员今日收益统计 AddTodayProfit(ctx context.Context, in *AddTodayProfitRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // 获取消息 GetReceptionMsg(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*ReceptionMsg, error) // 获取消息 GetTodayProfit(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*TodayProfitMsg, error) // 获取我是否喜欢(关注)该用户 GetIsLike(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*common.IsLike, error) // 用户给接待员发信息统计 UserSendToPartner(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) // 接待员给用户回复统计 PartnerReplyUser(ctx context.Context, in *PartnerReplyUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // 获取接待员的统计信息 GetPartnerReplyMsg(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*GetPartnerReplyMsgReply, error) } type statisticsClient struct { cc grpc.ClientConnInterface } func NewStatisticsClient(cc grpc.ClientConnInterface) StatisticsClient { return &statisticsClient{cc} } func (c *statisticsClient) LookPerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/LookPerson", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) LikePerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/LikePerson", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) UnLikePerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/UnLikePerson", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) GetLookAndLikeStatisticsMessage(ctx context.Context, in *GetLookAndLikeStatisticsMessageRequest, opts ...grpc.CallOption) (*LookAndLikeMessageReply, error) { out := new(LookAndLikeMessageReply) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetLookAndLikeStatisticsMessage", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) GetLookStatisticsMessage(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*LookMessageReply, error) { out := new(LookMessageReply) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetLookStatisticsMessage", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) ReduceLikeUnreadNum(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/ReduceLikeUnreadNum", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) UnlockLookRecord(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/UnlockLookRecord", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) FindLookList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error) { out := new(LookAndLikeListReply) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/FindLookList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) FindLikeList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error) { out := new(LookAndLikeListReply) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/FindLikeList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) FindLikedList(ctx context.Context, in *GetLookAndLikeListRequest, opts ...grpc.CallOption) (*LookAndLikeListReply, error) { out := new(LookAndLikeListReply) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/FindLikedList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) ReceptionPerson(ctx context.Context, in *ReceptionMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/ReceptionPerson", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) AddTodayProfit(ctx context.Context, in *AddTodayProfitRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/AddTodayProfit", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) GetReceptionMsg(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*ReceptionMsg, error) { out := new(ReceptionMsg) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetReceptionMsg", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) GetTodayProfit(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*TodayProfitMsg, error) { out := new(TodayProfitMsg) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetTodayProfit", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) GetIsLike(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*common.IsLike, error) { out := new(common.IsLike) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetIsLike", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) UserSendToPartner(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/UserSendToPartner", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) PartnerReplyUser(ctx context.Context, in *PartnerReplyUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/PartnerReplyUser", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *statisticsClient) GetPartnerReplyMsg(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*GetPartnerReplyMsgReply, error) { out := new(GetPartnerReplyMsgReply) err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetPartnerReplyMsg", in, out, opts...) if err != nil { return nil, err } return out, nil } // StatisticsServer is the server API for Statistics service. // All implementations must embed UnimplementedStatisticsServer // for forward compatibility type StatisticsServer interface { // 观看用户主页 LookPerson(context.Context, *PersonMessage) (*emptypb.Empty, error) // 关注用户 LikePerson(context.Context, *PersonMessage) (*emptypb.Empty, error) // 取关用户 UnLikePerson(context.Context, *PersonMessage) (*emptypb.Empty, error) // 获取喜欢以及访问统计信息 GetLookAndLikeStatisticsMessage(context.Context, *GetLookAndLikeStatisticsMessageRequest) (*LookAndLikeMessageReply, error) // 获取访问统计信息 GetLookStatisticsMessage(context.Context, *common.PersonParam) (*LookMessageReply, error) // 减少"喜欢我的"的未读数 ReduceLikeUnreadNum(context.Context, *PersonMessage) (*emptypb.Empty, error) // 解锁"看过我的"的记录 UnlockLookRecord(context.Context, *PersonMessage) (*emptypb.Empty, error) // 查看看过我的列表 FindLookList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) // 查看我喜欢的列表 FindLikeList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) // 查看喜欢我的列表 FindLikedList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) // 接待用户统计 ReceptionPerson(context.Context, *ReceptionMessage) (*emptypb.Empty, error) // 接待员今日收益统计 AddTodayProfit(context.Context, *AddTodayProfitRequest) (*emptypb.Empty, error) // 获取消息 GetReceptionMsg(context.Context, *common.PartnerIDParam) (*ReceptionMsg, error) // 获取消息 GetTodayProfit(context.Context, *common.PartnerIDParam) (*TodayProfitMsg, error) // 获取我是否喜欢(关注)该用户 GetIsLike(context.Context, *PersonMessage) (*common.IsLike, error) // 用户给接待员发信息统计 UserSendToPartner(context.Context, *common.PartnerIDParam) (*emptypb.Empty, error) // 接待员给用户回复统计 PartnerReplyUser(context.Context, *PartnerReplyUserRequest) (*emptypb.Empty, error) // 获取接待员的统计信息 GetPartnerReplyMsg(context.Context, *common.PartnerIDParam) (*GetPartnerReplyMsgReply, error) mustEmbedUnimplementedStatisticsServer() } // UnimplementedStatisticsServer must be embedded to have forward compatible implementations. type UnimplementedStatisticsServer struct { } func (UnimplementedStatisticsServer) LookPerson(context.Context, *PersonMessage) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method LookPerson not implemented") } func (UnimplementedStatisticsServer) LikePerson(context.Context, *PersonMessage) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method LikePerson not implemented") } func (UnimplementedStatisticsServer) UnLikePerson(context.Context, *PersonMessage) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method UnLikePerson not implemented") } func (UnimplementedStatisticsServer) GetLookAndLikeStatisticsMessage(context.Context, *GetLookAndLikeStatisticsMessageRequest) (*LookAndLikeMessageReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLookAndLikeStatisticsMessage not implemented") } func (UnimplementedStatisticsServer) GetLookStatisticsMessage(context.Context, *common.PersonParam) (*LookMessageReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLookStatisticsMessage not implemented") } func (UnimplementedStatisticsServer) ReduceLikeUnreadNum(context.Context, *PersonMessage) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method ReduceLikeUnreadNum not implemented") } func (UnimplementedStatisticsServer) UnlockLookRecord(context.Context, *PersonMessage) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method UnlockLookRecord not implemented") } func (UnimplementedStatisticsServer) FindLookList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FindLookList not implemented") } func (UnimplementedStatisticsServer) FindLikeList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FindLikeList not implemented") } func (UnimplementedStatisticsServer) FindLikedList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method FindLikedList not implemented") } func (UnimplementedStatisticsServer) ReceptionPerson(context.Context, *ReceptionMessage) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method ReceptionPerson not implemented") } func (UnimplementedStatisticsServer) AddTodayProfit(context.Context, *AddTodayProfitRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method AddTodayProfit not implemented") } func (UnimplementedStatisticsServer) GetReceptionMsg(context.Context, *common.PartnerIDParam) (*ReceptionMsg, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReceptionMsg not implemented") } func (UnimplementedStatisticsServer) GetTodayProfit(context.Context, *common.PartnerIDParam) (*TodayProfitMsg, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTodayProfit not implemented") } func (UnimplementedStatisticsServer) GetIsLike(context.Context, *PersonMessage) (*common.IsLike, error) { return nil, status.Errorf(codes.Unimplemented, "method GetIsLike not implemented") } func (UnimplementedStatisticsServer) UserSendToPartner(context.Context, *common.PartnerIDParam) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method UserSendToPartner not implemented") } func (UnimplementedStatisticsServer) PartnerReplyUser(context.Context, *PartnerReplyUserRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method PartnerReplyUser not implemented") } func (UnimplementedStatisticsServer) GetPartnerReplyMsg(context.Context, *common.PartnerIDParam) (*GetPartnerReplyMsgReply, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPartnerReplyMsg not implemented") } func (UnimplementedStatisticsServer) mustEmbedUnimplementedStatisticsServer() {} // UnsafeStatisticsServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to StatisticsServer will // result in compilation errors. type UnsafeStatisticsServer interface { mustEmbedUnimplementedStatisticsServer() } func RegisterStatisticsServer(s grpc.ServiceRegistrar, srv StatisticsServer) { s.RegisterService(&Statistics_ServiceDesc, srv) } func _Statistics_LookPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PersonMessage) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).LookPerson(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/LookPerson", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).LookPerson(ctx, req.(*PersonMessage)) } return interceptor(ctx, in, info, handler) } func _Statistics_LikePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PersonMessage) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).LikePerson(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/LikePerson", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).LikePerson(ctx, req.(*PersonMessage)) } return interceptor(ctx, in, info, handler) } func _Statistics_UnLikePerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PersonMessage) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).UnLikePerson(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/UnLikePerson", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).UnLikePerson(ctx, req.(*PersonMessage)) } return interceptor(ctx, in, info, handler) } func _Statistics_GetLookAndLikeStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetLookAndLikeStatisticsMessageRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).GetLookAndLikeStatisticsMessage(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/GetLookAndLikeStatisticsMessage", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).GetLookAndLikeStatisticsMessage(ctx, req.(*GetLookAndLikeStatisticsMessageRequest)) } return interceptor(ctx, in, info, handler) } func _Statistics_GetLookStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(common.PersonParam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).GetLookStatisticsMessage(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/GetLookStatisticsMessage", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).GetLookStatisticsMessage(ctx, req.(*common.PersonParam)) } return interceptor(ctx, in, info, handler) } func _Statistics_ReduceLikeUnreadNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PersonMessage) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).ReduceLikeUnreadNum(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/ReduceLikeUnreadNum", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).ReduceLikeUnreadNum(ctx, req.(*PersonMessage)) } return interceptor(ctx, in, info, handler) } func _Statistics_UnlockLookRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PersonMessage) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).UnlockLookRecord(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/UnlockLookRecord", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).UnlockLookRecord(ctx, req.(*PersonMessage)) } return interceptor(ctx, in, info, handler) } func _Statistics_FindLookList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetLookAndLikeListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).FindLookList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/FindLookList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).FindLookList(ctx, req.(*GetLookAndLikeListRequest)) } return interceptor(ctx, in, info, handler) } func _Statistics_FindLikeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetLookAndLikeListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).FindLikeList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/FindLikeList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).FindLikeList(ctx, req.(*GetLookAndLikeListRequest)) } return interceptor(ctx, in, info, handler) } func _Statistics_FindLikedList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetLookAndLikeListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).FindLikedList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/FindLikedList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).FindLikedList(ctx, req.(*GetLookAndLikeListRequest)) } return interceptor(ctx, in, info, handler) } func _Statistics_ReceptionPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ReceptionMessage) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).ReceptionPerson(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/ReceptionPerson", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).ReceptionPerson(ctx, req.(*ReceptionMessage)) } return interceptor(ctx, in, info, handler) } func _Statistics_AddTodayProfit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AddTodayProfitRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).AddTodayProfit(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/AddTodayProfit", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).AddTodayProfit(ctx, req.(*AddTodayProfitRequest)) } return interceptor(ctx, in, info, handler) } func _Statistics_GetReceptionMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(common.PartnerIDParam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).GetReceptionMsg(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/GetReceptionMsg", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).GetReceptionMsg(ctx, req.(*common.PartnerIDParam)) } return interceptor(ctx, in, info, handler) } func _Statistics_GetTodayProfit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(common.PartnerIDParam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).GetTodayProfit(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/GetTodayProfit", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).GetTodayProfit(ctx, req.(*common.PartnerIDParam)) } return interceptor(ctx, in, info, handler) } func _Statistics_GetIsLike_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PersonMessage) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).GetIsLike(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/GetIsLike", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).GetIsLike(ctx, req.(*PersonMessage)) } return interceptor(ctx, in, info, handler) } func _Statistics_UserSendToPartner_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(common.PartnerIDParam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).UserSendToPartner(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/UserSendToPartner", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).UserSendToPartner(ctx, req.(*common.PartnerIDParam)) } return interceptor(ctx, in, info, handler) } func _Statistics_PartnerReplyUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PartnerReplyUserRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).PartnerReplyUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/PartnerReplyUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).PartnerReplyUser(ctx, req.(*PartnerReplyUserRequest)) } return interceptor(ctx, in, info, handler) } func _Statistics_GetPartnerReplyMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(common.PartnerIDParam) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatisticsServer).GetPartnerReplyMsg(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/api.statistics.Statistics/GetPartnerReplyMsg", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatisticsServer).GetPartnerReplyMsg(ctx, req.(*common.PartnerIDParam)) } return interceptor(ctx, in, info, handler) } // Statistics_ServiceDesc is the grpc.ServiceDesc for Statistics service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Statistics_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.statistics.Statistics", HandlerType: (*StatisticsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LookPerson", Handler: _Statistics_LookPerson_Handler, }, { MethodName: "LikePerson", Handler: _Statistics_LikePerson_Handler, }, { MethodName: "UnLikePerson", Handler: _Statistics_UnLikePerson_Handler, }, { MethodName: "GetLookAndLikeStatisticsMessage", Handler: _Statistics_GetLookAndLikeStatisticsMessage_Handler, }, { MethodName: "GetLookStatisticsMessage", Handler: _Statistics_GetLookStatisticsMessage_Handler, }, { MethodName: "ReduceLikeUnreadNum", Handler: _Statistics_ReduceLikeUnreadNum_Handler, }, { MethodName: "UnlockLookRecord", Handler: _Statistics_UnlockLookRecord_Handler, }, { MethodName: "FindLookList", Handler: _Statistics_FindLookList_Handler, }, { MethodName: "FindLikeList", Handler: _Statistics_FindLikeList_Handler, }, { MethodName: "FindLikedList", Handler: _Statistics_FindLikedList_Handler, }, { MethodName: "ReceptionPerson", Handler: _Statistics_ReceptionPerson_Handler, }, { MethodName: "AddTodayProfit", Handler: _Statistics_AddTodayProfit_Handler, }, { MethodName: "GetReceptionMsg", Handler: _Statistics_GetReceptionMsg_Handler, }, { MethodName: "GetTodayProfit", Handler: _Statistics_GetTodayProfit_Handler, }, { MethodName: "GetIsLike", Handler: _Statistics_GetIsLike_Handler, }, { MethodName: "UserSendToPartner", Handler: _Statistics_UserSendToPartner_Handler, }, { MethodName: "PartnerReplyUser", Handler: _Statistics_PartnerReplyUser_Handler, }, { MethodName: "GetPartnerReplyMsg", Handler: _Statistics_GetPartnerReplyMsg_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "statistics.proto", }