| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737 |
- // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
- // versions:
- // - protoc-gen-go-grpc v1.3.0
- // - protoc v4.22.3
- // source: statistics.proto
- 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
- const (
- Statistics_LookPerson_FullMethodName = "/api.statistics.Statistics/LookPerson"
- Statistics_LookPersonWithoutTemplate_FullMethodName = "/api.statistics.Statistics/LookPersonWithoutTemplate"
- Statistics_LikePerson_FullMethodName = "/api.statistics.Statistics/LikePerson"
- Statistics_UnLikePerson_FullMethodName = "/api.statistics.Statistics/UnLikePerson"
- Statistics_GetLookAndLikeStatisticsMessage_FullMethodName = "/api.statistics.Statistics/GetLookAndLikeStatisticsMessage"
- Statistics_GetLookStatisticsMessage_FullMethodName = "/api.statistics.Statistics/GetLookStatisticsMessage"
- Statistics_ReduceLikeUnreadNum_FullMethodName = "/api.statistics.Statistics/ReduceLikeUnreadNum"
- Statistics_UnlockLookRecord_FullMethodName = "/api.statistics.Statistics/UnlockLookRecord"
- Statistics_FindLookList_FullMethodName = "/api.statistics.Statistics/FindLookList"
- Statistics_FindLikeList_FullMethodName = "/api.statistics.Statistics/FindLikeList"
- Statistics_FindLikedList_FullMethodName = "/api.statistics.Statistics/FindLikedList"
- Statistics_GetIsLike_FullMethodName = "/api.statistics.Statistics/GetIsLike"
- Statistics_StatisticsSubscribeMessage_FullMethodName = "/api.statistics.Statistics/StatisticsSubscribeMessage"
- Statistics_StatisticsAISubscribeMessage_FullMethodName = "/api.statistics.Statistics/StatisticsAISubscribeMessage"
- Statistics_ReduceSubscribeMessage_FullMethodName = "/api.statistics.Statistics/ReduceSubscribeMessage"
- Statistics_GetSignUser_FullMethodName = "/api.statistics.Statistics/GetSignUser"
- Statistics_CronDeleteOldLookRecord_FullMethodName = "/api.statistics.Statistics/CronDeleteOldLookRecord"
- )
- // 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)
- // 观看用户主页不发模板消息
- LookPersonWithoutTemplate(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)
- // 统计订阅消息
- StatisticsSubscribeMessage(ctx context.Context, in *StatisticsSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 统计订阅消息
- StatisticsAISubscribeMessage(ctx context.Context, in *StatisticsAISubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 减少订阅消息
- ReduceSubscribeMessage(ctx context.Context, in *ReduceSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
- // 获取订阅了签到的人
- GetSignUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.PersonIDList, error)
- // 定时删除过期的访客记录
- CronDeleteOldLookRecord(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, 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, Statistics_LookPerson_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *statisticsClient) LookPersonWithoutTemplate(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, Statistics_LookPersonWithoutTemplate_FullMethodName, 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, Statistics_LikePerson_FullMethodName, 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, Statistics_UnLikePerson_FullMethodName, 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, Statistics_GetLookAndLikeStatisticsMessage_FullMethodName, 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, Statistics_GetLookStatisticsMessage_FullMethodName, 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, Statistics_ReduceLikeUnreadNum_FullMethodName, 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, Statistics_UnlockLookRecord_FullMethodName, 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, Statistics_FindLookList_FullMethodName, 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, Statistics_FindLikeList_FullMethodName, 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, Statistics_FindLikedList_FullMethodName, 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, Statistics_GetIsLike_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *statisticsClient) StatisticsSubscribeMessage(ctx context.Context, in *StatisticsSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, Statistics_StatisticsSubscribeMessage_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *statisticsClient) StatisticsAISubscribeMessage(ctx context.Context, in *StatisticsAISubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, Statistics_StatisticsAISubscribeMessage_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *statisticsClient) ReduceSubscribeMessage(ctx context.Context, in *ReduceSubscribeMessageRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, Statistics_ReduceSubscribeMessage_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *statisticsClient) GetSignUser(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.PersonIDList, error) {
- out := new(common.PersonIDList)
- err := c.cc.Invoke(ctx, Statistics_GetSignUser_FullMethodName, in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *statisticsClient) CronDeleteOldLookRecord(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) {
- out := new(emptypb.Empty)
- err := c.cc.Invoke(ctx, Statistics_CronDeleteOldLookRecord_FullMethodName, 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)
- // 观看用户主页不发模板消息
- LookPersonWithoutTemplate(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)
- // 统计订阅消息
- StatisticsSubscribeMessage(context.Context, *StatisticsSubscribeMessageRequest) (*emptypb.Empty, error)
- // 统计订阅消息
- StatisticsAISubscribeMessage(context.Context, *StatisticsAISubscribeMessageRequest) (*emptypb.Empty, error)
- // 减少订阅消息
- ReduceSubscribeMessage(context.Context, *ReduceSubscribeMessageRequest) (*emptypb.Empty, error)
- // 获取订阅了签到的人
- GetSignUser(context.Context, *emptypb.Empty) (*common.PersonIDList, error)
- // 定时删除过期的访客记录
- CronDeleteOldLookRecord(context.Context, *emptypb.Empty) (*emptypb.Empty, 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) LookPersonWithoutTemplate(context.Context, *PersonMessage) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method LookPersonWithoutTemplate 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) StatisticsSubscribeMessage(context.Context, *StatisticsSubscribeMessageRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method StatisticsSubscribeMessage not implemented")
- }
- func (UnimplementedStatisticsServer) StatisticsAISubscribeMessage(context.Context, *StatisticsAISubscribeMessageRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method StatisticsAISubscribeMessage not implemented")
- }
- func (UnimplementedStatisticsServer) ReduceSubscribeMessage(context.Context, *ReduceSubscribeMessageRequest) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ReduceSubscribeMessage not implemented")
- }
- func (UnimplementedStatisticsServer) GetSignUser(context.Context, *emptypb.Empty) (*common.PersonIDList, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetSignUser not implemented")
- }
- func (UnimplementedStatisticsServer) CronDeleteOldLookRecord(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CronDeleteOldLookRecord 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: Statistics_LookPerson_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StatisticsServer).LookPerson(ctx, req.(*PersonMessage))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Statistics_LookPersonWithoutTemplate_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).LookPersonWithoutTemplate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Statistics_LookPersonWithoutTemplate_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StatisticsServer).LookPersonWithoutTemplate(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: Statistics_LikePerson_FullMethodName,
- }
- 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: Statistics_UnLikePerson_FullMethodName,
- }
- 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: Statistics_GetLookAndLikeStatisticsMessage_FullMethodName,
- }
- 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: Statistics_GetLookStatisticsMessage_FullMethodName,
- }
- 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: Statistics_ReduceLikeUnreadNum_FullMethodName,
- }
- 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: Statistics_UnlockLookRecord_FullMethodName,
- }
- 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: Statistics_FindLookList_FullMethodName,
- }
- 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: Statistics_FindLikeList_FullMethodName,
- }
- 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: Statistics_FindLikedList_FullMethodName,
- }
- 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: Statistics_GetIsLike_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StatisticsServer).GetIsLike(ctx, req.(*PersonMessage))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Statistics_StatisticsSubscribeMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(StatisticsSubscribeMessageRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StatisticsServer).StatisticsSubscribeMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Statistics_StatisticsSubscribeMessage_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StatisticsServer).StatisticsSubscribeMessage(ctx, req.(*StatisticsSubscribeMessageRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Statistics_StatisticsAISubscribeMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(StatisticsAISubscribeMessageRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StatisticsServer).StatisticsAISubscribeMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Statistics_StatisticsAISubscribeMessage_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StatisticsServer).StatisticsAISubscribeMessage(ctx, req.(*StatisticsAISubscribeMessageRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Statistics_ReduceSubscribeMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ReduceSubscribeMessageRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StatisticsServer).ReduceSubscribeMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Statistics_ReduceSubscribeMessage_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StatisticsServer).ReduceSubscribeMessage(ctx, req.(*ReduceSubscribeMessageRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Statistics_GetSignUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(emptypb.Empty)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StatisticsServer).GetSignUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Statistics_GetSignUser_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StatisticsServer).GetSignUser(ctx, req.(*emptypb.Empty))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Statistics_CronDeleteOldLookRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(emptypb.Empty)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(StatisticsServer).CronDeleteOldLookRecord(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: Statistics_CronDeleteOldLookRecord_FullMethodName,
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(StatisticsServer).CronDeleteOldLookRecord(ctx, req.(*emptypb.Empty))
- }
- 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: "LookPersonWithoutTemplate",
- Handler: _Statistics_LookPersonWithoutTemplate_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,
- },
- {
- MethodName: "StatisticsSubscribeMessage",
- Handler: _Statistics_StatisticsSubscribeMessage_Handler,
- },
- {
- MethodName: "StatisticsAISubscribeMessage",
- Handler: _Statistics_StatisticsAISubscribeMessage_Handler,
- },
- {
- MethodName: "ReduceSubscribeMessage",
- Handler: _Statistics_ReduceSubscribeMessage_Handler,
- },
- {
- MethodName: "GetSignUser",
- Handler: _Statistics_GetSignUser_Handler,
- },
- {
- MethodName: "CronDeleteOldLookRecord",
- Handler: _Statistics_CronDeleteOldLookRecord_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "statistics.proto",
- }
|