You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.9 KiB
Go
64 lines
1.9 KiB
Go
// Code generated by goctl. DO NOT EDIT!
|
|
// Source: user_center.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
"live-service/app/user_center/rpc/internal/logic/rank"
|
|
"live-service/app/user_center/rpc/internal/logic/statistics"
|
|
|
|
"live-service/app/user_center/rpc/internal/logic"
|
|
"live-service/app/user_center/rpc/internal/svc"
|
|
"live-service/app/user_center/rpc/pb"
|
|
)
|
|
|
|
type UserCenterServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
pb.UnimplementedUserCenterServer
|
|
}
|
|
|
|
func NewUserCenterServer(svcCtx *svc.ServiceContext) *UserCenterServer {
|
|
return &UserCenterServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
// user
|
|
func (s *UserCenterServer) RetrievePlatformUser(ctx context.Context, in *pb.PlatformUserReq) (*pb.PlatformUserResp, error) {
|
|
l := logic.NewRetrievePlatformUserLogic(ctx, s.svcCtx)
|
|
return l.RetrievePlatformUser(in)
|
|
}
|
|
|
|
// statistics
|
|
func (s *UserCenterServer) StatPvpDamage(ctx context.Context, in *pb.StatPvPDamageReq) (*pb.Empty, error) {
|
|
l := statistics.NewStatPvpDamageLogic(ctx, s.svcCtx)
|
|
return l.StatPvpDamage(in)
|
|
}
|
|
|
|
func (s *UserCenterServer) StatPvpKillUnit(ctx context.Context, in *pb.StatPvPKillUnitReq) (*pb.Empty, error) {
|
|
l := statistics.NewStatPvpKillUnitLogic(ctx, s.svcCtx)
|
|
return l.StatPvpKillUnit(in)
|
|
}
|
|
|
|
func (s *UserCenterServer) StatPvpKill(ctx context.Context, in *pb.StatPvPKillReq) (*pb.Empty, error) {
|
|
l := statistics.NewStatPvpKillLogic(ctx, s.svcCtx)
|
|
return l.StatPvpKill(in)
|
|
}
|
|
|
|
func (s *UserCenterServer) StatPvpFirstBlood(ctx context.Context, in *pb.StatPvPFirstBloodReq) (*pb.Empty, error) {
|
|
l := statistics.NewStatPvpFirstBloodLogic(ctx, s.svcCtx)
|
|
return l.StatPvpFirstBlood(in)
|
|
}
|
|
|
|
func (s *UserCenterServer) StatPvpReport(ctx context.Context, in *pb.StatPvPReportReq) (*pb.Empty, error) {
|
|
l := statistics.NewStatPvpReportLogic(ctx, s.svcCtx)
|
|
return l.StatPvpReport(in)
|
|
}
|
|
|
|
// rank
|
|
func (s *UserCenterServer) RankPvp(ctx context.Context, in *pb.RankPvpReq) (*pb.RankPvpResp, error) {
|
|
l := rank.NewRankPvpLogic(ctx, s.svcCtx)
|
|
return l.RankPvp(in)
|
|
}
|