| | |
| | | |
| | | import ( |
| | | "basic.com/CloudAI/protomsg.git/analysis" |
| | | "basic.com/valib/logger.git" |
| | | "context" |
| | | "ruleModelEngine/task" |
| | | ) |
| | |
| | | analysis.UnimplementedAnalysisServiceServer |
| | | } |
| | | |
| | | func (s *Server) GetCodeList(ctx context.Context, params *analysis.SendAnalysisRequest) (*analysis.EmptyResponse, error) { |
| | | go task.TaskAnalysisService(params.DocumentNumber) |
| | | func (s *Server) TaskAnalysis(ctx context.Context, params *analysis.SendAnalysisRequest) (*analysis.EmptyResponse, error) { |
| | | logger.Info("grpc params: ", params) |
| | | go task.TaskAnalysisService(params.Id) |
| | | return &analysis.EmptyResponse{}, nil |
| | | } |