package com.template.api;

import com.template.model.result.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;


@RequestMapping("/api/file")
@Api(tags = {"FileControllerAPI"}, value = "文件")
public interface FileControllerAPI {

    @PostMapping(value = "/uploadFile")
    @ApiOperation(value = "文件上传", notes = "文件上传", httpMethod = "POST")
    CommonResult uploadFile(@RequestParam("file") MultipartFile file, String name) throws Exception;

}
