sunty
2024-05-26 ae0b323f39448a61caa359222c033e509d5c6054
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
}