package com.ruoyi.ibs.visit.controller;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.ibs.visit.domain.dto.VisitQualityReportDTO;
import com.ruoyi.ibs.visit.service.VisitQualityReportService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author 吴凯程
 * @Date 2025/11/21
 **/
@Api(tags = "智能体报告接口")
@RestController
@RequestMapping("/bot/report")
public class VisitQualityReportController {
    @Resource
    private VisitQualityReportService visitQualityReportService;

    @PostMapping("/upload")
    @Anonymous
    @ApiOperation("上传质量报告")
    public AjaxResult uploadVisitReport(VisitQualityReportDTO visitQualityReportDTO) {
        return AjaxResult.success(visitQualityReportService.uploadVisitReport(visitQualityReportDTO));
    }


}
