package com.cmvr.web.controller.evaluation;

import com.cmvr.common.core.controller.BaseController;
import com.cmvr.common.core.domain.AjaxResult;
import com.cmvr.evaluation.model.domain.AeEvaluation;
import com.cmvr.evaluation.service.AeCallbackService;
import com.cmvr.evaluation.service.IAeEvaluationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "AI评估")
@RestController
@RequestMapping("/evaluation")
@RequiredArgsConstructor
public class AeEvaluationController extends BaseController {

    private final IAeEvaluationService aeEvaluationService;
    private final AeCallbackService aeCallbackService;

    @ApiOperation("回调AI评估")
    @PostMapping("/callback")
    public AjaxResult list(@RequestBody AeEvaluation aeEvaluation) {
        aeCallbackService.callback(aeEvaluation);
        return AjaxResult.ok();
    }


}
