package com.sckw.example.service;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;


/**
 * @author lfdc
 * @version 1.0
 * @className FileService
 * @description 文件上传下载service
 * @company sckw
 * @date 2023-06-02 16:06:46
 */
@Slf4j
@Service
public class FileService {


    /**
     * 上传文件至OSS
     *
     * @param file
     * @return
     */
    public String uploadFile(MultipartFile file) {
        //
//        String url = FileUtils.uploadFile(file, FileEnum.DOCUMENT_ADDRESS);
        //
        return "url";
    }


    /**
     * OSS下载文件/获取文件地址
     *
     * @return
     */
    public String fileDownload(String fileName) {
//        FileUtils.downloadByObjectName(RequestHolder.getResponse(),fileName);
        return null;
    }
}
