sunty
2024-05-26 d6a49ae26c8723d737e36d1ee544b2edafdae501
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.Id)
    return &analysis.EmptyResponse{}, nil
}