feat: analysis gen qrcode
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
// 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...)
|
||||
}
|
||||
Reference in New Issue
Block a user