50 lines
1.4 KiB
Go
50 lines
1.4 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.1
|
|
// Source: analysis.proto
|
|
|
|
package analysisstore
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/analysis/pb"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
Response = analysis.Response
|
|
StoreAuthQrcodeReq = analysis.StoreAuthQrcodeReq
|
|
StoreAuthReq = analysis.StoreAuthReq
|
|
|
|
AnalysisStore interface {
|
|
// 门店账号密码授权用户
|
|
StoreAuth(ctx context.Context, in *StoreAuthReq, opts ...grpc.CallOption) (*Response, error)
|
|
// 门店获取扫码授权二维码
|
|
StoreAuthQrcode(ctx context.Context, in *StoreAuthQrcodeReq, opts ...grpc.CallOption) (*Response, error)
|
|
}
|
|
|
|
defaultAnalysisStore struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewAnalysisStore(cli zrpc.Client) AnalysisStore {
|
|
return &defaultAnalysisStore{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
// 门店账号密码授权用户
|
|
func (m *defaultAnalysisStore) StoreAuth(ctx context.Context, in *StoreAuthReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := analysis.NewAnalysisStoreClient(m.cli.Conn())
|
|
return client.StoreAuth(ctx, in, opts...)
|
|
}
|
|
|
|
// 门店获取扫码授权二维码
|
|
func (m *defaultAnalysisStore) StoreAuthQrcode(ctx context.Context, in *StoreAuthQrcodeReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := analysis.NewAnalysisStoreClient(m.cli.Conn())
|
|
return client.StoreAuthQrcode(ctx, in, opts...)
|
|
}
|