// 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 *UnlockLookRecordRequest, 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) // 获取我是否喜欢(关注)该用户 GetIsLike(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*common.IsLike, 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 *UnlockLookRecordRequest, 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) 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 } // 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, *UnlockLookRecordRequest) (*emptypb.Empty, error) // 查看看过我的列表 FindLookList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) // 查看我喜欢的列表 FindLikeList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) // 查看喜欢我的列表 FindLikedList(context.Context, *GetLookAndLikeListRequest) (*LookAndLikeListReply, error) // 获取我是否喜欢(关注)该用户 GetIsLike(context.Context, *PersonMessage) (*common.IsLike, 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, *UnlockLookRecordRequest) (*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) GetIsLike(context.Context, *PersonMessage) (*common.IsLike, error) { return nil, status.Errorf(codes.Unimplemented, "method GetIsLike 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(UnlockLookRecordRequest) 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.(*UnlockLookRecordRequest)) } 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_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) } // 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: "GetIsLike", Handler: _Statistics_GetIsLike_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "statistics.proto", }