package cn.cslg.report.controller.InvalidReReport;

import cn.cslg.report.common.core.base.Constants;
import cn.cslg.report.common.model.dto.ProofAddNewDTO;
import cn.cslg.report.common.model.dto.ReportDTO;
import cn.cslg.report.common.model.dto.ShareReportDTO;
import cn.cslg.report.common.model.dto.invalidReReport.ProofQueryDTO;
import cn.cslg.report.common.utils.Response;
import cn.cslg.report.service.business.ExportArgumentsScenariosService;
import cn.cslg.report.service.business.InvalidReReport.ProofService;
import cn.cslg.report.service.business.asso.AssoReportPersonService;
import com.alibaba.fastjson.JSONObject;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
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;
import org.springframework.web.multipart.MultipartFile;

import javax.mail.Multipart;
import java.io.IOException;
import java.util.List;

/**
 * 文献证据的Controller层
 *
 * @Author lrj
 * @Data 2023/4/1
 */
@Tag(name = "exportArgumentsScenariosService")
@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping(Constants.REPORT_API + "/proof")
public class ProofController {
    private final ProofService proofService;
    private final ExportArgumentsScenariosService exportArgumentsScenariosService;
    @Operation(summary = "上传专利文献证据（文件）")
    @PostMapping("/addPatentProofByFile")
    public String addPatentProofByFile(@RequestBody ShareReportDTO shareReportDTO) throws IOException {
        exportArgumentsScenariosService.ExportToExcel( 437,null);
        return Response.success("flag");
    }

}
