// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.19.4 // source: user_center.proto package pb import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // 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 // UserCenterClient is the client API for UserCenter 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 UserCenterClient interface { // retrievePlatformUser 新增或获取用户 RetrievePlatformUser(ctx context.Context, in *PlatformUserReq, opts ...grpc.CallOption) (*PlatformUserResp, error) // getUserIdByPUid 通过平台用户id获取系统用户ID GetUserIdByPUid(ctx context.Context, in *PlatformUserReq, opts ...grpc.CallOption) (*UserIdResp, error) //ChangeIntegral 新增用户积分 ChangeIntegral(ctx context.Context, in *ChangeIntegralReq, opts ...grpc.CallOption) (*ChangeIntegralResp, error) //GetUserIntegral 获取用户积分 GetUserIntegral(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*UserIntegralResp, error) //UserCheckIn 用户签到|打卡 UserCheckIn(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*UserCheckInResp, error) //TransferUserIntegral 转移积分 TransferUserIntegral(ctx context.Context, in *TransferUserIntegralReq, opts ...grpc.CallOption) (*TransferUserIntegralResp, error) // UserSendGift 用户赠送礼物 UserSendGift(ctx context.Context, in *UserSendGiftReq, opts ...grpc.CallOption) (*UserSendGiftResp, error) UserBuyNobility(ctx context.Context, in *UserBuyNobilityReq, opts ...grpc.CallOption) (*UserBuyNobilityResp, error) StatPvpKill(ctx context.Context, in *StatPvPKillReq, opts ...grpc.CallOption) (*Empty, error) StatPvpFirstBlood(ctx context.Context, in *StatPvPFirstBloodReq, opts ...grpc.CallOption) (*Empty, error) StatPvpReport(ctx context.Context, in *StatPvPReportReq, opts ...grpc.CallOption) (*StatPvPReportResp, error) DrawGiftPack(ctx context.Context, in *DrawGiftPackReq, opts ...grpc.CallOption) (*DrawGiftPackResp, error) IncreaseWelfare(ctx context.Context, in *IncreaseWelfareReq, opts ...grpc.CallOption) (*Empty, error) // rankPvp pvp排行 RankPvp(ctx context.Context, in *RankPvpReq, opts ...grpc.CallOption) (*RankPvpResp, error) RankPvpSubmit(ctx context.Context, in *RankPvpSubmitReq, opts ...grpc.CallOption) (*RankPvpSubmitResp, error) UserRankPvp(ctx context.Context, in *UserRankReq, opts ...grpc.CallOption) (*UserRankResp, error) } type userCenterClient struct { cc grpc.ClientConnInterface } func NewUserCenterClient(cc grpc.ClientConnInterface) UserCenterClient { return &userCenterClient{cc} } func (c *userCenterClient) RetrievePlatformUser(ctx context.Context, in *PlatformUserReq, opts ...grpc.CallOption) (*PlatformUserResp, error) { out := new(PlatformUserResp) err := c.cc.Invoke(ctx, "/pb.userCenter/retrievePlatformUser", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) GetUserIdByPUid(ctx context.Context, in *PlatformUserReq, opts ...grpc.CallOption) (*UserIdResp, error) { out := new(UserIdResp) err := c.cc.Invoke(ctx, "/pb.userCenter/getUserIdByPUid", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) ChangeIntegral(ctx context.Context, in *ChangeIntegralReq, opts ...grpc.CallOption) (*ChangeIntegralResp, error) { out := new(ChangeIntegralResp) err := c.cc.Invoke(ctx, "/pb.userCenter/changeIntegral", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) GetUserIntegral(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*UserIntegralResp, error) { out := new(UserIntegralResp) err := c.cc.Invoke(ctx, "/pb.userCenter/getUserIntegral", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) UserCheckIn(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*UserCheckInResp, error) { out := new(UserCheckInResp) err := c.cc.Invoke(ctx, "/pb.userCenter/userCheckIn", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) TransferUserIntegral(ctx context.Context, in *TransferUserIntegralReq, opts ...grpc.CallOption) (*TransferUserIntegralResp, error) { out := new(TransferUserIntegralResp) err := c.cc.Invoke(ctx, "/pb.userCenter/transferUserIntegral", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) UserSendGift(ctx context.Context, in *UserSendGiftReq, opts ...grpc.CallOption) (*UserSendGiftResp, error) { out := new(UserSendGiftResp) err := c.cc.Invoke(ctx, "/pb.userCenter/userSendGift", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) UserBuyNobility(ctx context.Context, in *UserBuyNobilityReq, opts ...grpc.CallOption) (*UserBuyNobilityResp, error) { out := new(UserBuyNobilityResp) err := c.cc.Invoke(ctx, "/pb.userCenter/userBuyNobility", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) StatPvpKill(ctx context.Context, in *StatPvPKillReq, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/pb.userCenter/statPvpKill", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) StatPvpFirstBlood(ctx context.Context, in *StatPvPFirstBloodReq, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/pb.userCenter/statPvpFirstBlood", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) StatPvpReport(ctx context.Context, in *StatPvPReportReq, opts ...grpc.CallOption) (*StatPvPReportResp, error) { out := new(StatPvPReportResp) err := c.cc.Invoke(ctx, "/pb.userCenter/statPvpReport", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) DrawGiftPack(ctx context.Context, in *DrawGiftPackReq, opts ...grpc.CallOption) (*DrawGiftPackResp, error) { out := new(DrawGiftPackResp) err := c.cc.Invoke(ctx, "/pb.userCenter/drawGiftPack", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) IncreaseWelfare(ctx context.Context, in *IncreaseWelfareReq, opts ...grpc.CallOption) (*Empty, error) { out := new(Empty) err := c.cc.Invoke(ctx, "/pb.userCenter/increaseWelfare", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) RankPvp(ctx context.Context, in *RankPvpReq, opts ...grpc.CallOption) (*RankPvpResp, error) { out := new(RankPvpResp) err := c.cc.Invoke(ctx, "/pb.userCenter/rankPvp", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) RankPvpSubmit(ctx context.Context, in *RankPvpSubmitReq, opts ...grpc.CallOption) (*RankPvpSubmitResp, error) { out := new(RankPvpSubmitResp) err := c.cc.Invoke(ctx, "/pb.userCenter/rankPvpSubmit", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *userCenterClient) UserRankPvp(ctx context.Context, in *UserRankReq, opts ...grpc.CallOption) (*UserRankResp, error) { out := new(UserRankResp) err := c.cc.Invoke(ctx, "/pb.userCenter/userRankPvp", in, out, opts...) if err != nil { return nil, err } return out, nil } // UserCenterServer is the server API for UserCenter service. // All implementations must embed UnimplementedUserCenterServer // for forward compatibility type UserCenterServer interface { // retrievePlatformUser 新增或获取用户 RetrievePlatformUser(context.Context, *PlatformUserReq) (*PlatformUserResp, error) // getUserIdByPUid 通过平台用户id获取系统用户ID GetUserIdByPUid(context.Context, *PlatformUserReq) (*UserIdResp, error) //ChangeIntegral 新增用户积分 ChangeIntegral(context.Context, *ChangeIntegralReq) (*ChangeIntegralResp, error) //GetUserIntegral 获取用户积分 GetUserIntegral(context.Context, *UserIdReq) (*UserIntegralResp, error) //UserCheckIn 用户签到|打卡 UserCheckIn(context.Context, *UserIdReq) (*UserCheckInResp, error) //TransferUserIntegral 转移积分 TransferUserIntegral(context.Context, *TransferUserIntegralReq) (*TransferUserIntegralResp, error) // UserSendGift 用户赠送礼物 UserSendGift(context.Context, *UserSendGiftReq) (*UserSendGiftResp, error) UserBuyNobility(context.Context, *UserBuyNobilityReq) (*UserBuyNobilityResp, error) StatPvpKill(context.Context, *StatPvPKillReq) (*Empty, error) StatPvpFirstBlood(context.Context, *StatPvPFirstBloodReq) (*Empty, error) StatPvpReport(context.Context, *StatPvPReportReq) (*StatPvPReportResp, error) DrawGiftPack(context.Context, *DrawGiftPackReq) (*DrawGiftPackResp, error) IncreaseWelfare(context.Context, *IncreaseWelfareReq) (*Empty, error) // rankPvp pvp排行 RankPvp(context.Context, *RankPvpReq) (*RankPvpResp, error) RankPvpSubmit(context.Context, *RankPvpSubmitReq) (*RankPvpSubmitResp, error) UserRankPvp(context.Context, *UserRankReq) (*UserRankResp, error) mustEmbedUnimplementedUserCenterServer() } // UnimplementedUserCenterServer must be embedded to have forward compatible implementations. type UnimplementedUserCenterServer struct { } func (UnimplementedUserCenterServer) RetrievePlatformUser(context.Context, *PlatformUserReq) (*PlatformUserResp, error) { return nil, status.Errorf(codes.Unimplemented, "method RetrievePlatformUser not implemented") } func (UnimplementedUserCenterServer) GetUserIdByPUid(context.Context, *PlatformUserReq) (*UserIdResp, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUserIdByPUid not implemented") } func (UnimplementedUserCenterServer) ChangeIntegral(context.Context, *ChangeIntegralReq) (*ChangeIntegralResp, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeIntegral not implemented") } func (UnimplementedUserCenterServer) GetUserIntegral(context.Context, *UserIdReq) (*UserIntegralResp, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUserIntegral not implemented") } func (UnimplementedUserCenterServer) UserCheckIn(context.Context, *UserIdReq) (*UserCheckInResp, error) { return nil, status.Errorf(codes.Unimplemented, "method UserCheckIn not implemented") } func (UnimplementedUserCenterServer) TransferUserIntegral(context.Context, *TransferUserIntegralReq) (*TransferUserIntegralResp, error) { return nil, status.Errorf(codes.Unimplemented, "method TransferUserIntegral not implemented") } func (UnimplementedUserCenterServer) UserSendGift(context.Context, *UserSendGiftReq) (*UserSendGiftResp, error) { return nil, status.Errorf(codes.Unimplemented, "method UserSendGift not implemented") } func (UnimplementedUserCenterServer) UserBuyNobility(context.Context, *UserBuyNobilityReq) (*UserBuyNobilityResp, error) { return nil, status.Errorf(codes.Unimplemented, "method UserBuyNobility not implemented") } func (UnimplementedUserCenterServer) StatPvpKill(context.Context, *StatPvPKillReq) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StatPvpKill not implemented") } func (UnimplementedUserCenterServer) StatPvpFirstBlood(context.Context, *StatPvPFirstBloodReq) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method StatPvpFirstBlood not implemented") } func (UnimplementedUserCenterServer) StatPvpReport(context.Context, *StatPvPReportReq) (*StatPvPReportResp, error) { return nil, status.Errorf(codes.Unimplemented, "method StatPvpReport not implemented") } func (UnimplementedUserCenterServer) DrawGiftPack(context.Context, *DrawGiftPackReq) (*DrawGiftPackResp, error) { return nil, status.Errorf(codes.Unimplemented, "method DrawGiftPack not implemented") } func (UnimplementedUserCenterServer) IncreaseWelfare(context.Context, *IncreaseWelfareReq) (*Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method IncreaseWelfare not implemented") } func (UnimplementedUserCenterServer) RankPvp(context.Context, *RankPvpReq) (*RankPvpResp, error) { return nil, status.Errorf(codes.Unimplemented, "method RankPvp not implemented") } func (UnimplementedUserCenterServer) RankPvpSubmit(context.Context, *RankPvpSubmitReq) (*RankPvpSubmitResp, error) { return nil, status.Errorf(codes.Unimplemented, "method RankPvpSubmit not implemented") } func (UnimplementedUserCenterServer) UserRankPvp(context.Context, *UserRankReq) (*UserRankResp, error) { return nil, status.Errorf(codes.Unimplemented, "method UserRankPvp not implemented") } func (UnimplementedUserCenterServer) mustEmbedUnimplementedUserCenterServer() {} // UnsafeUserCenterServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to UserCenterServer will // result in compilation errors. type UnsafeUserCenterServer interface { mustEmbedUnimplementedUserCenterServer() } func RegisterUserCenterServer(s grpc.ServiceRegistrar, srv UserCenterServer) { s.RegisterService(&UserCenter_ServiceDesc, srv) } func _UserCenter_RetrievePlatformUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PlatformUserReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).RetrievePlatformUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/retrievePlatformUser", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).RetrievePlatformUser(ctx, req.(*PlatformUserReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_GetUserIdByPUid_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PlatformUserReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).GetUserIdByPUid(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/getUserIdByPUid", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).GetUserIdByPUid(ctx, req.(*PlatformUserReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_ChangeIntegral_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeIntegralReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).ChangeIntegral(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/changeIntegral", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).ChangeIntegral(ctx, req.(*ChangeIntegralReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_GetUserIntegral_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UserIdReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).GetUserIntegral(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/getUserIntegral", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).GetUserIntegral(ctx, req.(*UserIdReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_UserCheckIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UserIdReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).UserCheckIn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/userCheckIn", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).UserCheckIn(ctx, req.(*UserIdReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_TransferUserIntegral_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(TransferUserIntegralReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).TransferUserIntegral(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/transferUserIntegral", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).TransferUserIntegral(ctx, req.(*TransferUserIntegralReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_UserSendGift_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UserSendGiftReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).UserSendGift(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/userSendGift", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).UserSendGift(ctx, req.(*UserSendGiftReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_UserBuyNobility_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UserBuyNobilityReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).UserBuyNobility(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/userBuyNobility", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).UserBuyNobility(ctx, req.(*UserBuyNobilityReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_StatPvpKill_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(StatPvPKillReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).StatPvpKill(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/statPvpKill", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).StatPvpKill(ctx, req.(*StatPvPKillReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_StatPvpFirstBlood_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(StatPvPFirstBloodReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).StatPvpFirstBlood(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/statPvpFirstBlood", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).StatPvpFirstBlood(ctx, req.(*StatPvPFirstBloodReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_StatPvpReport_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(StatPvPReportReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).StatPvpReport(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/statPvpReport", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).StatPvpReport(ctx, req.(*StatPvPReportReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_DrawGiftPack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DrawGiftPackReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).DrawGiftPack(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/drawGiftPack", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).DrawGiftPack(ctx, req.(*DrawGiftPackReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_IncreaseWelfare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(IncreaseWelfareReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).IncreaseWelfare(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/increaseWelfare", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).IncreaseWelfare(ctx, req.(*IncreaseWelfareReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_RankPvp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RankPvpReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).RankPvp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/rankPvp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).RankPvp(ctx, req.(*RankPvpReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_RankPvpSubmit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RankPvpSubmitReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).RankPvpSubmit(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/rankPvpSubmit", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).RankPvpSubmit(ctx, req.(*RankPvpSubmitReq)) } return interceptor(ctx, in, info, handler) } func _UserCenter_UserRankPvp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UserRankReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(UserCenterServer).UserRankPvp(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.userCenter/userRankPvp", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(UserCenterServer).UserRankPvp(ctx, req.(*UserRankReq)) } return interceptor(ctx, in, info, handler) } // UserCenter_ServiceDesc is the grpc.ServiceDesc for UserCenter service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var UserCenter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.userCenter", HandlerType: (*UserCenterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "retrievePlatformUser", Handler: _UserCenter_RetrievePlatformUser_Handler, }, { MethodName: "getUserIdByPUid", Handler: _UserCenter_GetUserIdByPUid_Handler, }, { MethodName: "changeIntegral", Handler: _UserCenter_ChangeIntegral_Handler, }, { MethodName: "getUserIntegral", Handler: _UserCenter_GetUserIntegral_Handler, }, { MethodName: "userCheckIn", Handler: _UserCenter_UserCheckIn_Handler, }, { MethodName: "transferUserIntegral", Handler: _UserCenter_TransferUserIntegral_Handler, }, { MethodName: "userSendGift", Handler: _UserCenter_UserSendGift_Handler, }, { MethodName: "userBuyNobility", Handler: _UserCenter_UserBuyNobility_Handler, }, { MethodName: "statPvpKill", Handler: _UserCenter_StatPvpKill_Handler, }, { MethodName: "statPvpFirstBlood", Handler: _UserCenter_StatPvpFirstBlood_Handler, }, { MethodName: "statPvpReport", Handler: _UserCenter_StatPvpReport_Handler, }, { MethodName: "drawGiftPack", Handler: _UserCenter_DrawGiftPack_Handler, }, { MethodName: "increaseWelfare", Handler: _UserCenter_IncreaseWelfare_Handler, }, { MethodName: "rankPvp", Handler: _UserCenter_RankPvp_Handler, }, { MethodName: "rankPvpSubmit", Handler: _UserCenter_RankPvpSubmit_Handler, }, { MethodName: "userRankPvp", Handler: _UserCenter_UserRankPvp_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user_center.proto", }