package com.sqx.modules.file;

import com.sqx.modules.file.service.NewFileService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 阿里云文件上传
 * @author fang
 * @date 2020/7/13
 */
@Slf4j
@Api(value = "阿里云文件上传(即将删除)", tags = {"阿里云文件上传"})
@RestController
@RequestMapping(value = "/alioss")
@RequiredArgsConstructor
public class AliFileUploadController {

    private final NewFileService newFileService;

    // @RequestMapping(value = "/upload", method = RequestMethod.POST)
    // @ApiOperation("文件上传")
    // @ResponseBody
    // public Result upload(@DecryptParam("file") MultipartFile file){
    //     String src = newFileService.upload(file);
    //     return Result.success().put("data",src);
    // }
}
