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.
41 lines
887 B
Go
41 lines
887 B
Go
// Code generated by goctl. DO NOT EDIT!
|
|
// Source: gift.proto
|
|
|
|
package usercenter
|
|
|
|
import (
|
|
"context"
|
|
|
|
"live-service/app/user_center/rpc/pb"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
PlatformUserReq = pb.PlatformUserReq
|
|
PlatformUserResp = pb.PlatformUserResp
|
|
User = pb.User
|
|
|
|
UserCenter interface {
|
|
// user
|
|
RetrievePlatformUser(ctx context.Context, in *PlatformUserReq, opts ...grpc.CallOption) (*PlatformUserResp, 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...)
|
|
}
|