// 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...) }