// Code generated by goctl. DO NOT EDIT! // Source: user_center.proto package usercenter import ( "context" "dcg/app/user_center/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...) }