39 lines
873 B
Go
39 lines
873 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.1
|
|
// Source: analysis.proto
|
|
|
|
package analysisauth
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/analysis/pb"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
GenerateQrcodeRequest = analysis.GenerateQrcodeRequest
|
|
Response = analysis.Response
|
|
|
|
AnalysisAuth interface {
|
|
GenerateQrcode(ctx context.Context, in *GenerateQrcodeRequest, opts ...grpc.CallOption) (*Response, error)
|
|
}
|
|
|
|
defaultAnalysisAuth struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewAnalysisAuth(cli zrpc.Client) AnalysisAuth {
|
|
return &defaultAnalysisAuth{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
func (m *defaultAnalysisAuth) GenerateQrcode(ctx context.Context, in *GenerateQrcodeRequest, opts ...grpc.CallOption) (*Response, error) {
|
|
client := analysis.NewAnalysisAuthClient(m.cli.Conn())
|
|
return client.GenerateQrcode(ctx, in, opts...)
|
|
}
|