feat: analysis user auth and ws
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user