|
|
@ -41,6 +41,8 @@ type UserCenterClient interface {
|
|
|
|
UserBuyNobility(ctx context.Context, in *UserBuyNobilityReq, opts ...grpc.CallOption) (*Empty, error)
|
|
|
|
UserBuyNobility(ctx context.Context, in *UserBuyNobilityReq, opts ...grpc.CallOption) (*Empty, error)
|
|
|
|
StatPvpReport(ctx context.Context, in *StatPvPReportReq, opts ...grpc.CallOption) (*StatPvPReportResp, error)
|
|
|
|
StatPvpReport(ctx context.Context, in *StatPvPReportReq, opts ...grpc.CallOption) (*StatPvPReportResp, error)
|
|
|
|
DrawGiftPack(ctx context.Context, in *DrawGiftPackReq, opts ...grpc.CallOption) (*DrawGiftPackResp, error)
|
|
|
|
DrawGiftPack(ctx context.Context, in *DrawGiftPackReq, opts ...grpc.CallOption) (*DrawGiftPackResp, error)
|
|
|
|
|
|
|
|
/// @ZeroGroup: grade
|
|
|
|
|
|
|
|
GetUserGrade(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*UserGradeResp, error)
|
|
|
|
// rankPvp pvp排行
|
|
|
|
// rankPvp pvp排行
|
|
|
|
RankPvp(ctx context.Context, in *RankPvpReq, opts ...grpc.CallOption) (*RankPvpResp, error)
|
|
|
|
RankPvp(ctx context.Context, in *RankPvpReq, opts ...grpc.CallOption) (*RankPvpResp, error)
|
|
|
|
RankPvpSubmit(ctx context.Context, in *RankPvpSubmitReq, opts ...grpc.CallOption) (*RankPvpSubmitResp, error)
|
|
|
|
RankPvpSubmit(ctx context.Context, in *RankPvpSubmitReq, opts ...grpc.CallOption) (*RankPvpSubmitResp, error)
|
|
|
@ -160,6 +162,15 @@ func (c *userCenterClient) DrawGiftPack(ctx context.Context, in *DrawGiftPackReq
|
|
|
|
return out, nil
|
|
|
|
return out, nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (c *userCenterClient) GetUserGrade(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*UserGradeResp, error) {
|
|
|
|
|
|
|
|
out := new(UserGradeResp)
|
|
|
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.userCenter/getUserGrade", 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) {
|
|
|
|
func (c *userCenterClient) RankPvp(ctx context.Context, in *RankPvpReq, opts ...grpc.CallOption) (*RankPvpResp, error) {
|
|
|
|
out := new(RankPvpResp)
|
|
|
|
out := new(RankPvpResp)
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.userCenter/rankPvp", in, out, opts...)
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.userCenter/rankPvp", in, out, opts...)
|
|
|
@ -264,6 +275,8 @@ type UserCenterServer interface {
|
|
|
|
UserBuyNobility(context.Context, *UserBuyNobilityReq) (*Empty, error)
|
|
|
|
UserBuyNobility(context.Context, *UserBuyNobilityReq) (*Empty, error)
|
|
|
|
StatPvpReport(context.Context, *StatPvPReportReq) (*StatPvPReportResp, error)
|
|
|
|
StatPvpReport(context.Context, *StatPvPReportReq) (*StatPvPReportResp, error)
|
|
|
|
DrawGiftPack(context.Context, *DrawGiftPackReq) (*DrawGiftPackResp, error)
|
|
|
|
DrawGiftPack(context.Context, *DrawGiftPackReq) (*DrawGiftPackResp, error)
|
|
|
|
|
|
|
|
/// @ZeroGroup: grade
|
|
|
|
|
|
|
|
GetUserGrade(context.Context, *UserIdReq) (*UserGradeResp, error)
|
|
|
|
// rankPvp pvp排行
|
|
|
|
// rankPvp pvp排行
|
|
|
|
RankPvp(context.Context, *RankPvpReq) (*RankPvpResp, error)
|
|
|
|
RankPvp(context.Context, *RankPvpReq) (*RankPvpResp, error)
|
|
|
|
RankPvpSubmit(context.Context, *RankPvpSubmitReq) (*RankPvpSubmitResp, error)
|
|
|
|
RankPvpSubmit(context.Context, *RankPvpSubmitReq) (*RankPvpSubmitResp, error)
|
|
|
@ -314,6 +327,9 @@ func (UnimplementedUserCenterServer) StatPvpReport(context.Context, *StatPvPRepo
|
|
|
|
func (UnimplementedUserCenterServer) DrawGiftPack(context.Context, *DrawGiftPackReq) (*DrawGiftPackResp, error) {
|
|
|
|
func (UnimplementedUserCenterServer) DrawGiftPack(context.Context, *DrawGiftPackReq) (*DrawGiftPackResp, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method DrawGiftPack not implemented")
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method DrawGiftPack not implemented")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (UnimplementedUserCenterServer) GetUserGrade(context.Context, *UserIdReq) (*UserGradeResp, error) {
|
|
|
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUserGrade not implemented")
|
|
|
|
|
|
|
|
}
|
|
|
|
func (UnimplementedUserCenterServer) RankPvp(context.Context, *RankPvpReq) (*RankPvpResp, error) {
|
|
|
|
func (UnimplementedUserCenterServer) RankPvp(context.Context, *RankPvpReq) (*RankPvpResp, error) {
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RankPvp not implemented")
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method RankPvp not implemented")
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -552,6 +568,24 @@ func _UserCenter_DrawGiftPack_Handler(srv interface{}, ctx context.Context, dec
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func _UserCenter_GetUserGrade_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).GetUserGrade(ctx, in)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
|
|
|
Server: srv,
|
|
|
|
|
|
|
|
FullMethod: "/pb.userCenter/getUserGrade",
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
|
|
|
return srv.(UserCenterServer).GetUserGrade(ctx, req.(*UserIdReq))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func _UserCenter_RankPvp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
func _UserCenter_RankPvp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
in := new(RankPvpReq)
|
|
|
|
in := new(RankPvpReq)
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
if err := dec(in); err != nil {
|
|
|
@ -765,6 +799,10 @@ var UserCenter_ServiceDesc = grpc.ServiceDesc{
|
|
|
|
MethodName: "drawGiftPack",
|
|
|
|
MethodName: "drawGiftPack",
|
|
|
|
Handler: _UserCenter_DrawGiftPack_Handler,
|
|
|
|
Handler: _UserCenter_DrawGiftPack_Handler,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MethodName: "getUserGrade",
|
|
|
|
|
|
|
|
Handler: _UserCenter_GetUserGrade_Handler,
|
|
|
|
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MethodName: "rankPvp",
|
|
|
|
MethodName: "rankPvp",
|
|
|
|
Handler: _UserCenter_RankPvp_Handler,
|
|
|
|
Handler: _UserCenter_RankPvp_Handler,
|
|
|
|