// 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 )
//getUserDetails 获取用户详细信息
GetUserDetails ( ctx context . Context , in * UserIdReq , opts ... grpc . CallOption ) ( * UserDetailsResp , error )
// getUserIdByPUid 通过平台用户id获取系统用户ID
GetUserIdByPUid ( ctx context . Context , in * PlatformUserReq , opts ... grpc . CallOption ) ( * UserIdResp , error )
//UserCheckIn 用户签到|打卡
UserCheckIn ( ctx context . Context , in * UserIdReq , opts ... grpc . CallOption ) ( * UserCheckInResp , error )
//changeCoin 新增或扣减用户弹币
ChangeCoin ( ctx context . Context , in * ChangeCoinReq , opts ... grpc . CallOption ) ( * Empty , error )
//getUserCoin 获取用户弹币
GetUserCoin ( ctx context . Context , in * UserIdReq , opts ... grpc . CallOption ) ( * GetUserCoinResp , error )
//transferUserCoin 转移用户弹币
TransferUserCoin ( ctx context . Context , in * TransferUserCoinReq , opts ... grpc . CallOption ) ( * TransferUserCoinResp , error )
// UserSendGift 用户赠送礼物
UserSendGift ( ctx context . Context , in * UserSendGiftReq , 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 )
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 ( 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 )
GiveElite ( ctx context . Context , in * GiveEliteReq , opts ... grpc . CallOption ) ( * BuyEliteResp , error )
BuyElite ( ctx context . Context , in * EliteReq , opts ... grpc . CallOption ) ( * BuyEliteResp , error )
GiveTitle ( ctx context . Context , in * GiveTitleReq , opts ... grpc . CallOption ) ( * BuyTitleResp , error )
BuyTitle ( ctx context . Context , in * TitleReq , opts ... grpc . CallOption ) ( * BuyTitleResp , error )
ChangeElite ( ctx context . Context , in * EliteReq , opts ... grpc . CallOption ) ( * ChangeEliteResp , error )
ChangeTitle ( ctx context . Context , in * TitleReq , opts ... grpc . CallOption ) ( * ChangeTitleResp , 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 ) GetUserDetails ( ctx context . Context , in * UserIdReq , opts ... grpc . CallOption ) ( * UserDetailsResp , error ) {
out := new ( UserDetailsResp )
err := c . cc . Invoke ( ctx , "/pb.userCenter/getUserDetails" , 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 ) 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 ) ChangeCoin ( ctx context . Context , in * ChangeCoinReq , opts ... grpc . CallOption ) ( * Empty , error ) {
out := new ( Empty )
err := c . cc . Invoke ( ctx , "/pb.userCenter/changeCoin" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * userCenterClient ) GetUserCoin ( ctx context . Context , in * UserIdReq , opts ... grpc . CallOption ) ( * GetUserCoinResp , error ) {
out := new ( GetUserCoinResp )
err := c . cc . Invoke ( ctx , "/pb.userCenter/getUserCoin" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * userCenterClient ) TransferUserCoin ( ctx context . Context , in * TransferUserCoinReq , opts ... grpc . CallOption ) ( * TransferUserCoinResp , error ) {
out := new ( TransferUserCoinResp )
err := c . cc . Invoke ( ctx , "/pb.userCenter/transferUserCoin" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * userCenterClient ) UserSendGift ( ctx context . Context , in * UserSendGiftReq , opts ... grpc . CallOption ) ( * Empty , error ) {
out := new ( Empty )
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 ) ( * Empty , error ) {
out := new ( Empty )
err := c . cc . Invoke ( ctx , "/pb.userCenter/userBuyNobility" , 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 ) 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 ) {
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
}
func ( c * userCenterClient ) GiveElite ( ctx context . Context , in * GiveEliteReq , opts ... grpc . CallOption ) ( * BuyEliteResp , error ) {
out := new ( BuyEliteResp )
err := c . cc . Invoke ( ctx , "/pb.userCenter/giveElite" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * userCenterClient ) BuyElite ( ctx context . Context , in * EliteReq , opts ... grpc . CallOption ) ( * BuyEliteResp , error ) {
out := new ( BuyEliteResp )
err := c . cc . Invoke ( ctx , "/pb.userCenter/buyElite" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * userCenterClient ) GiveTitle ( ctx context . Context , in * GiveTitleReq , opts ... grpc . CallOption ) ( * BuyTitleResp , error ) {
out := new ( BuyTitleResp )
err := c . cc . Invoke ( ctx , "/pb.userCenter/giveTitle" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * userCenterClient ) BuyTitle ( ctx context . Context , in * TitleReq , opts ... grpc . CallOption ) ( * BuyTitleResp , error ) {
out := new ( BuyTitleResp )
err := c . cc . Invoke ( ctx , "/pb.userCenter/buyTitle" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * userCenterClient ) ChangeElite ( ctx context . Context , in * EliteReq , opts ... grpc . CallOption ) ( * ChangeEliteResp , error ) {
out := new ( ChangeEliteResp )
err := c . cc . Invoke ( ctx , "/pb.userCenter/changeElite" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * userCenterClient ) ChangeTitle ( ctx context . Context , in * TitleReq , opts ... grpc . CallOption ) ( * ChangeTitleResp , error ) {
out := new ( ChangeTitleResp )
err := c . cc . Invoke ( ctx , "/pb.userCenter/changeTitle" , 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 )
//getUserDetails 获取用户详细信息
GetUserDetails ( context . Context , * UserIdReq ) ( * UserDetailsResp , error )
// getUserIdByPUid 通过平台用户id获取系统用户ID
GetUserIdByPUid ( context . Context , * PlatformUserReq ) ( * UserIdResp , error )
//UserCheckIn 用户签到|打卡
UserCheckIn ( context . Context , * UserIdReq ) ( * UserCheckInResp , error )
//changeCoin 新增或扣减用户弹币
ChangeCoin ( context . Context , * ChangeCoinReq ) ( * Empty , error )
//getUserCoin 获取用户弹币
GetUserCoin ( context . Context , * UserIdReq ) ( * GetUserCoinResp , error )
//transferUserCoin 转移用户弹币
TransferUserCoin ( context . Context , * TransferUserCoinReq ) ( * TransferUserCoinResp , error )
// UserSendGift 用户赠送礼物
UserSendGift ( context . Context , * UserSendGiftReq ) ( * Empty , error )
UserBuyNobility ( context . Context , * UserBuyNobilityReq ) ( * Empty , error )
StatPvpReport ( context . Context , * StatPvPReportReq ) ( * StatPvPReportResp , error )
DrawGiftPack ( context . Context , * DrawGiftPackReq ) ( * DrawGiftPackResp , error )
/// @ZeroGroup: grade
GetUserGrade ( context . Context , * UserIdReq ) ( * UserGradeResp , error )
// rankPvp pvp排行
RankPvp ( context . Context , * RankPvpReq ) ( * RankPvpResp , error )
RankPvpSubmit ( context . Context , * RankPvpSubmitReq ) ( * RankPvpSubmitResp , error )
UserRankPvp ( context . Context , * UserRankReq ) ( * UserRankResp , error )
GiveElite ( context . Context , * GiveEliteReq ) ( * BuyEliteResp , error )
BuyElite ( context . Context , * EliteReq ) ( * BuyEliteResp , error )
GiveTitle ( context . Context , * GiveTitleReq ) ( * BuyTitleResp , error )
BuyTitle ( context . Context , * TitleReq ) ( * BuyTitleResp , error )
ChangeElite ( context . Context , * EliteReq ) ( * ChangeEliteResp , error )
ChangeTitle ( context . Context , * TitleReq ) ( * ChangeTitleResp , 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 ) GetUserDetails ( context . Context , * UserIdReq ) ( * UserDetailsResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetUserDetails not implemented" )
}
func ( UnimplementedUserCenterServer ) GetUserIdByPUid ( context . Context , * PlatformUserReq ) ( * UserIdResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetUserIdByPUid not implemented" )
}
func ( UnimplementedUserCenterServer ) UserCheckIn ( context . Context , * UserIdReq ) ( * UserCheckInResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UserCheckIn not implemented" )
}
func ( UnimplementedUserCenterServer ) ChangeCoin ( context . Context , * ChangeCoinReq ) ( * Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ChangeCoin not implemented" )
}
func ( UnimplementedUserCenterServer ) GetUserCoin ( context . Context , * UserIdReq ) ( * GetUserCoinResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetUserCoin not implemented" )
}
func ( UnimplementedUserCenterServer ) TransferUserCoin ( context . Context , * TransferUserCoinReq ) ( * TransferUserCoinResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method TransferUserCoin not implemented" )
}
func ( UnimplementedUserCenterServer ) UserSendGift ( context . Context , * UserSendGiftReq ) ( * Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UserSendGift not implemented" )
}
func ( UnimplementedUserCenterServer ) UserBuyNobility ( context . Context , * UserBuyNobilityReq ) ( * Empty , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UserBuyNobility 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 ) GetUserGrade ( context . Context , * UserIdReq ) ( * UserGradeResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetUserGrade 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 ) GiveElite ( context . Context , * GiveEliteReq ) ( * BuyEliteResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GiveElite not implemented" )
}
func ( UnimplementedUserCenterServer ) BuyElite ( context . Context , * EliteReq ) ( * BuyEliteResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method BuyElite not implemented" )
}
func ( UnimplementedUserCenterServer ) GiveTitle ( context . Context , * GiveTitleReq ) ( * BuyTitleResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GiveTitle not implemented" )
}
func ( UnimplementedUserCenterServer ) BuyTitle ( context . Context , * TitleReq ) ( * BuyTitleResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method BuyTitle not implemented" )
}
func ( UnimplementedUserCenterServer ) ChangeElite ( context . Context , * EliteReq ) ( * ChangeEliteResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ChangeElite not implemented" )
}
func ( UnimplementedUserCenterServer ) ChangeTitle ( context . Context , * TitleReq ) ( * ChangeTitleResp , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ChangeTitle 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_GetUserDetails_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 ) . GetUserDetails ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/pb.userCenter/getUserDetails" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( UserCenterServer ) . GetUserDetails ( ctx , req . ( * UserIdReq ) )
}
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_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_ChangeCoin_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ChangeCoinReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( UserCenterServer ) . ChangeCoin ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/pb.userCenter/changeCoin" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( UserCenterServer ) . ChangeCoin ( ctx , req . ( * ChangeCoinReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _UserCenter_GetUserCoin_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 ) . GetUserCoin ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/pb.userCenter/getUserCoin" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( UserCenterServer ) . GetUserCoin ( ctx , req . ( * UserIdReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _UserCenter_TransferUserCoin_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( TransferUserCoinReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( UserCenterServer ) . TransferUserCoin ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/pb.userCenter/transferUserCoin" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( UserCenterServer ) . TransferUserCoin ( ctx , req . ( * TransferUserCoinReq ) )
}
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_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_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 ) {
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 )
}
func _UserCenter_GiveElite_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GiveEliteReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( UserCenterServer ) . GiveElite ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/pb.userCenter/giveElite" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( UserCenterServer ) . GiveElite ( ctx , req . ( * GiveEliteReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _UserCenter_BuyElite_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( EliteReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( UserCenterServer ) . BuyElite ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/pb.userCenter/buyElite" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( UserCenterServer ) . BuyElite ( ctx , req . ( * EliteReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _UserCenter_GiveTitle_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GiveTitleReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( UserCenterServer ) . GiveTitle ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/pb.userCenter/giveTitle" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( UserCenterServer ) . GiveTitle ( ctx , req . ( * GiveTitleReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _UserCenter_BuyTitle_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( TitleReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( UserCenterServer ) . BuyTitle ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/pb.userCenter/buyTitle" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( UserCenterServer ) . BuyTitle ( ctx , req . ( * TitleReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _UserCenter_ChangeElite_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( EliteReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( UserCenterServer ) . ChangeElite ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/pb.userCenter/changeElite" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( UserCenterServer ) . ChangeElite ( ctx , req . ( * EliteReq ) )
}
return interceptor ( ctx , in , info , handler )
}
func _UserCenter_ChangeTitle_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( TitleReq )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( UserCenterServer ) . ChangeTitle ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/pb.userCenter/changeTitle" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( UserCenterServer ) . ChangeTitle ( ctx , req . ( * TitleReq ) )
}
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 : "getUserDetails" ,
Handler : _UserCenter_GetUserDetails_Handler ,
} ,
{
MethodName : "getUserIdByPUid" ,
Handler : _UserCenter_GetUserIdByPUid_Handler ,
} ,
{
MethodName : "userCheckIn" ,
Handler : _UserCenter_UserCheckIn_Handler ,
} ,
{
MethodName : "changeCoin" ,
Handler : _UserCenter_ChangeCoin_Handler ,
} ,
{
MethodName : "getUserCoin" ,
Handler : _UserCenter_GetUserCoin_Handler ,
} ,
{
MethodName : "transferUserCoin" ,
Handler : _UserCenter_TransferUserCoin_Handler ,
} ,
{
MethodName : "userSendGift" ,
Handler : _UserCenter_UserSendGift_Handler ,
} ,
{
MethodName : "userBuyNobility" ,
Handler : _UserCenter_UserBuyNobility_Handler ,
} ,
{
MethodName : "statPvpReport" ,
Handler : _UserCenter_StatPvpReport_Handler ,
} ,
{
MethodName : "drawGiftPack" ,
Handler : _UserCenter_DrawGiftPack_Handler ,
} ,
{
MethodName : "getUserGrade" ,
Handler : _UserCenter_GetUserGrade_Handler ,
} ,
{
MethodName : "rankPvp" ,
Handler : _UserCenter_RankPvp_Handler ,
} ,
{
MethodName : "rankPvpSubmit" ,
Handler : _UserCenter_RankPvpSubmit_Handler ,
} ,
{
MethodName : "userRankPvp" ,
Handler : _UserCenter_UserRankPvp_Handler ,
} ,
{
MethodName : "giveElite" ,
Handler : _UserCenter_GiveElite_Handler ,
} ,
{
MethodName : "buyElite" ,
Handler : _UserCenter_BuyElite_Handler ,
} ,
{
MethodName : "giveTitle" ,
Handler : _UserCenter_GiveTitle_Handler ,
} ,
{
MethodName : "buyTitle" ,
Handler : _UserCenter_BuyTitle_Handler ,
} ,
{
MethodName : "changeElite" ,
Handler : _UserCenter_ChangeElite_Handler ,
} ,
{
MethodName : "changeTitle" ,
Handler : _UserCenter_ChangeTitle_Handler ,
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "user_center.proto" ,
}