sunty
2024-05-24 de37adb6dec5e9da70f9cc11b234176ee6fda986
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package analysisApi
 
import (
    "basic.com/CloudAI/protomsg.git/analysis"
    "context"
    "ruleModelEngine/task"
)
 
type Server struct {
    analysis.UnimplementedAnalysisServiceServer
}
 
func (s *Server) GetCodeList(ctx context.Context, params *analysis.SendAnalysisRequest) (*analysis.EmptyResponse, error) {
    go task.TaskAnalysisService(params.DocumentNumber)
    return &analysis.EmptyResponse{}, nil
}