feat: analysis user auth and ws
This commit is contained in:
@@ -28,6 +28,21 @@ func (s *UserServer) Login(ctx context.Context, in *user.LoginReq) (*user.Respon
|
||||
return l.Login(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) GenerateQrcode(ctx context.Context, in *user.GenerateQrcodeReq) (*user.Response, error) {
|
||||
l := logic.NewGenerateQrcodeLogic(ctx, s.svcCtx)
|
||||
return l.GenerateQrcode(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) QrcodeScan(ctx context.Context, in *user.QrcodeScanReq) (*user.Response, error) {
|
||||
l := logic.NewQrcodeScanLogic(ctx, s.svcCtx)
|
||||
return l.QrcodeScan(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) QrcodeLogin(ctx context.Context, in *user.QrcodeLoginReq) (*user.Response, error) {
|
||||
l := logic.NewQrcodeLoginLogic(ctx, s.svcCtx)
|
||||
return l.QrcodeLogin(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) Info(ctx context.Context, in *user.InfoReq) (*user.Response, error) {
|
||||
l := logic.NewInfoLogic(ctx, s.svcCtx)
|
||||
return l.Info(in)
|
||||
@@ -97,3 +112,8 @@ func (s *UserServer) InternalGetUserInfo(ctx context.Context, in *user.InternalG
|
||||
l := logic.NewInternalGetUserInfoLogic(ctx, s.svcCtx)
|
||||
return l.InternalGetUserInfo(in)
|
||||
}
|
||||
|
||||
func (s *UserServer) InternalVerifyPassword(ctx context.Context, in *user.InternalVerifyPasswordReq) (*user.InternalVerifyPasswordData, error) {
|
||||
l := logic.NewInternalVerifyPasswordLogic(ctx, s.svcCtx)
|
||||
return l.InternalVerifyPassword(in)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user