Files
lone-services/services/analysis/internal/server/analysis/analysisServer.go
T
2026-10-21 13:29:03 +08:00

50 lines
1.5 KiB
Go

// 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) InternalSetRegistered(ctx context.Context, in *analysis.InternalSetRegisteredReq) (*analysis.InternalSetRegisteredData, error) {
l := analysislogic.NewInternalSetRegisteredLogic(ctx, s.svcCtx)
return l.InternalSetRegistered(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)
}
func (s *AnalysisServer) QrcodeInfo(ctx context.Context, in *analysis.QrcodeInfoReq) (*analysis.Response, error) {
l := analysislogic.NewQrcodeInfoLogic(ctx, s.svcCtx)
return l.QrcodeInfo(in)
}