feat: analysis user auth and ws
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
// goctl 1.10.1
|
||||
// Source: analysis.proto
|
||||
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"lone-services/rpc/analysis/pb"
|
||||
"lone-services/services/analysis/internal/logic/analysisstore"
|
||||
"lone-services/services/analysis/internal/svc"
|
||||
)
|
||||
|
||||
type AnalysisStoreServer struct {
|
||||
svcCtx *svc.ServiceContext
|
||||
analysis.UnimplementedAnalysisStoreServer
|
||||
}
|
||||
|
||||
func NewAnalysisStoreServer(svcCtx *svc.ServiceContext) *AnalysisStoreServer {
|
||||
return &AnalysisStoreServer{
|
||||
svcCtx: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
// 门店账号密码授权用户
|
||||
func (s *AnalysisStoreServer) StoreAuth(ctx context.Context, in *analysis.StoreAuthReq) (*analysis.Response, error) {
|
||||
l := analysisstorelogic.NewStoreAuthLogic(ctx, s.svcCtx)
|
||||
return l.StoreAuth(in)
|
||||
}
|
||||
|
||||
// 门店获取扫码授权二维码
|
||||
func (s *AnalysisStoreServer) StoreAuthQrcode(ctx context.Context, in *analysis.StoreAuthQrcodeReq) (*analysis.Response, error) {
|
||||
l := analysisstorelogic.NewStoreAuthQrcodeLogic(ctx, s.svcCtx)
|
||||
return l.StoreAuthQrcode(in)
|
||||
}
|
||||
Reference in New Issue
Block a user