feat: analysis gen qrcode

This commit is contained in:
zzw
2026-10-13 11:05:09 +08:00
parent 10b58a7cab
commit 6fa185003d
24 changed files with 671 additions and 183 deletions
@@ -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...)
}