feat: analysis user auth and ws

This commit is contained in:
zzw
2026-10-15 09:23:07 +08:00
parent 6fa185003d
commit a65b6d2803
102 changed files with 4966 additions and 786 deletions
@@ -0,0 +1,39 @@
// 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/analysis"
"lone-services/services/analysis/internal/svc"
)
type AnalysisServer struct {
svcCtx *svc.ServiceContext
analysis.UnimplementedAnalysisServer
}
func NewAnalysisServer(svcCtx *svc.ServiceContext) *AnalysisServer {
return &AnalysisServer{
svcCtx: svcCtx,
}
}
func (s *AnalysisServer) InternalCreateUser(ctx context.Context, in *analysis.InternalCreateUserReq) (*analysis.InternalCreateUserData, error) {
l := analysislogic.NewInternalCreateUserLogic(ctx, s.svcCtx)
return l.InternalCreateUser(in)
}
func (s *AnalysisServer) AgreementInfo(ctx context.Context, in *analysis.AgreementInfoReq) (*analysis.Response, error) {
l := analysislogic.NewAgreementInfoLogic(ctx, s.svcCtx)
return l.AgreementInfo(in)
}
func (s *AnalysisServer) Switch(ctx context.Context, in *analysis.SwitchReq) (*analysis.Response, error) {
l := analysislogic.NewSwitchLogic(ctx, s.svcCtx)
return l.Switch(in)
}