|
@@ -27,12 +27,10 @@ public class ContentServiceImpl implements ContentService {
|
|
|
private PipelineService pipelineService;
|
|
|
|
|
|
@Override
|
|
|
- public void analyse(CommonRequest<ContentAnalyseParam> request) {
|
|
|
- if (Objects.isNull(request) || Objects.isNull(request.getParams())
|
|
|
- || Objects.isNull(request.getParams().getPipelineId()) || Objects.isNull(request.getParams().getType())) {
|
|
|
+ public void analyse(ContentAnalyseParam param) {
|
|
|
+ if (Objects.isNull(param) || Objects.isNull(param.getPipelineId()) || Objects.isNull(param.getType())) {
|
|
|
throw new CommonException(ExceptionEnum.PARAMS_INVALID);
|
|
|
}
|
|
|
- ContentAnalyseParam params = request.getParams();
|
|
|
- pipelineService.execute(params);
|
|
|
+ pipelineService.execute(param);
|
|
|
}
|
|
|
}
|