| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485 | // Code generated by protoc-gen-go-grpc. DO NOT EDIT.package statisticsimport (	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 compatibilitytype 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",}
 |