|
|
|
// Code generated by goctl. DO NOT EDIT!
|
|
|
|
// Source: user_center.proto
|
|
|
|
|
|
|
|
package usercenter
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"live-service/app/user_center/rpc/pb"
|
|
|
|
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
|
|
"google.golang.org/grpc"
|
|
|
|
)
|
|
|
|
|
|
|
|
type (
|
|
|
|
Empty = pb.Empty
|
|
|
|
PlatformUserReq = pb.PlatformUserReq
|
|
|
|
PlatformUserResp = pb.PlatformUserResp
|
|
|
|
RankPvpReq = pb.RankPvpReq
|
|
|
|
RankPvpResp = pb.RankPvpResp
|
|
|
|
RankPvpResp_Item = pb.RankPvpResp_Item
|
|
|
|
StatPvPDamageReq = pb.StatPvPDamageReq
|
|
|
|
StatPvPFirstBloodReq = pb.StatPvPFirstBloodReq
|
|
|
|
StatPvPKillReq = pb.StatPvPKillReq
|
|
|
|
StatPvPKillUnitReq = pb.StatPvPKillUnitReq
|
|
|
|
StatPvPReportReq = pb.StatPvPReportReq
|
|
|
|
User = pb.User
|
|
|
|
|
|
|
|
UserCenter interface {
|
|
|
|
// user
|
|
|
|
RetrievePlatformUser(ctx context.Context, in *PlatformUserReq, opts ...grpc.CallOption) (*PlatformUserResp, error)
|
|
|
|
// statistics
|
|
|
|
StatPvpDamage(ctx context.Context, in *StatPvPDamageReq, opts ...grpc.CallOption) (*Empty, error)
|
|
|
|
StatPvpKillUnit(ctx context.Context, in *StatPvPKillUnitReq, opts ...grpc.CallOption) (*Empty, 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) (*Empty, error)
|
|
|
|
// rank
|
|
|
|
RankPvp(ctx context.Context, in *RankPvpReq, opts ...grpc.CallOption) (*RankPvpResp, error)
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultUserCenter struct {
|
|
|
|
cli zrpc.Client
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func NewUserCenter(cli zrpc.Client) UserCenter {
|
|
|
|
return &defaultUserCenter{
|
|
|
|
cli: cli,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// user
|
|
|
|
func (m *defaultUserCenter) RetrievePlatformUser(ctx context.Context, in *PlatformUserReq, opts ...grpc.CallOption) (*PlatformUserResp, error) {
|
|
|
|
client := pb.NewUserCenterClient(m.cli.Conn())
|
|
|
|
return client.RetrievePlatformUser(ctx, in, opts...)
|
|
|
|
}
|
|
|
|
|
|
|
|
// statistics
|
|
|
|
func (m *defaultUserCenter) StatPvpDamage(ctx context.Context, in *StatPvPDamageReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
client := pb.NewUserCenterClient(m.cli.Conn())
|
|
|
|
return client.StatPvpDamage(ctx, in, opts...)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *defaultUserCenter) StatPvpKillUnit(ctx context.Context, in *StatPvPKillUnitReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
client := pb.NewUserCenterClient(m.cli.Conn())
|
|
|
|
return client.StatPvpKillUnit(ctx, in, opts...)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *defaultUserCenter) StatPvpKill(ctx context.Context, in *StatPvPKillReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
client := pb.NewUserCenterClient(m.cli.Conn())
|
|
|
|
return client.StatPvpKill(ctx, in, opts...)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *defaultUserCenter) StatPvpFirstBlood(ctx context.Context, in *StatPvPFirstBloodReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
client := pb.NewUserCenterClient(m.cli.Conn())
|
|
|
|
return client.StatPvpFirstBlood(ctx, in, opts...)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *defaultUserCenter) StatPvpReport(ctx context.Context, in *StatPvPReportReq, opts ...grpc.CallOption) (*Empty, error) {
|
|
|
|
client := pb.NewUserCenterClient(m.cli.Conn())
|
|
|
|
return client.StatPvpReport(ctx, in, opts...)
|
|
|
|
}
|
|
|
|
|
|
|
|
// rank
|
|
|
|
func (m *defaultUserCenter) RankPvp(ctx context.Context, in *RankPvpReq, opts ...grpc.CallOption) (*RankPvpResp, error) {
|
|
|
|
client := pb.NewUserCenterClient(m.cli.Conn())
|
|
|
|
return client.RankPvp(ctx, in, opts...)
|
|
|
|
}
|