39 lines
813 B
Go
39 lines
813 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.9.2
|
|
// Source: user.proto
|
|
|
|
package usercenter
|
|
|
|
import (
|
|
"context"
|
|
|
|
"juwan-backend/app/user/rpc/pb"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
GetUserInfoReq = pb.GetUserInfoReq
|
|
GetUserInfoResp = pb.GetUserInfoResp
|
|
|
|
Usercenter interface {
|
|
GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error)
|
|
}
|
|
|
|
defaultUsercenter struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewUsercenter(cli zrpc.Client) Usercenter {
|
|
return &defaultUsercenter{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
func (m *defaultUsercenter) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) {
|
|
client := pb.NewUsercenterClient(m.cli.Conn())
|
|
return client.GetUserInfo(ctx, in, opts...)
|
|
}
|