package com.cmvr.evaluation.service.ex;

import com.alibaba.fastjson2.JSONObject;
import com.cmvr.evaluation.model.domain.AeEvaluation;
import com.cmvr.evaluation.service.IAeEvaluationService;
import com.cmvr.test.service.ex.ExAeEvaluationService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class ExAeEvaluationServiceImpl implements ExAeEvaluationService {

    private final IAeEvaluationService aeEvaluationService;

    @Override
    public void executeEvaluation(JSONObject body) {
        AeEvaluation aeEvaluation = body.toJavaObject(AeEvaluation.class);
        aeEvaluationService.executeEvaluation(aeEvaluation);
    }
}
