package cn.cslg.report.controller;

import cn.cslg.report.common.core.base.Constants;
import cn.cslg.report.common.utils.Response;
import cn.cslg.report.entity.ReportFiles;
import cn.cslg.report.entity.Template;
import cn.cslg.report.service.business.TemplateService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

@Tag(name = "文件")
@RestController
@RequestMapping(Constants.REPORT_API + "/reportFile")
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
public class ReportFileController {
    public final TemplateService templateService;
    @RequestMapping(value = "/add", method = RequestMethod.POST)
    @Operation(summary = "添加文件")
    public  String getTemplateByType(ReportFiles reportFiles,MultipartFile file) throws IOException{
        return Response.success();
    }

}
