添加项目文件。
This commit is contained in:
27
system/Tnb.Systems.Interfaces/Common/IFileService.cs
Normal file
27
system/Tnb.Systems.Interfaces/Common/IFileService.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using OnceMi.AspNetCore.OSS;
|
||||
|
||||
namespace JNPF.Systems.Interfaces.Common;
|
||||
|
||||
/// <summary>
|
||||
/// 通用控制器.
|
||||
/// </summary>
|
||||
public interface IFileService
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 根据类型获取文件存储路径.
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns></returns>
|
||||
string GetPathByType(string type);
|
||||
|
||||
/// <summary>
|
||||
/// 根据存储类型上传文件.
|
||||
/// </summary>
|
||||
/// <param name="uploadFilePath">上传文件地址.</param>
|
||||
/// <param name="directoryPath">保存文件夹.</param>
|
||||
/// <param name="fileName">新文件名.</param>
|
||||
/// <returns></returns>
|
||||
Task UploadFileByType(string uploadFilePath, string directoryPath, string fileName);
|
||||
}
|
||||
Reference in New Issue
Block a user