package com.cmvr.web.controller.test;

import com.cmvr.common.core.controller.BaseController;
import com.cmvr.common.core.domain.AjaxResult;
import com.cmvr.test.model.domain.TeAiEvaluation;
import com.cmvr.test.service.ITeAiEvaluationService;
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("/test/evaluation")
@RequiredArgsConstructor
public class TeAiEvaluationController extends BaseController {

    private final ITeAiEvaluationService teAiEvaluationService;

    @ApiOperation("回调AI评估")
    @PostMapping("/callback")
    public AjaxResult list(@RequestBody TeAiEvaluation teAiEvaluation) {
        return AjaxResult.ok(teAiEvaluationService.edit(teAiEvaluation));
    }

}