package com.friday.operation.api.executor.service;

import com.friday.base.common.response.DubboResult;
import com.friday.operation.api.distributor.dto.FileInfoDto;

/**
 * @Author YaoYao
 * @Date Created In 14:45 2023/4/4
 * @Description 文件相关接口
 * @Modified By
 */

public interface IFileService {
    /**
     * @Description 文件上传
     * @param localFile 文件信息
     * @return 文件key
     */
    DubboResult<String> upload(FileInfoDto localFile);

    /**
     * @Description 文件下载
     * @param fileInfo 文件信息
     * @return 本地文件路径
     */
    DubboResult<String> download(FileInfoDto fileInfo);
}
