✨
This commit is contained in:
25
StopShopping.Services/IFileService.cs
Normal file
25
StopShopping.Services/IFileService.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using StopShopping.Services.Models;
|
||||
using StopShopping.Services.Models.Req;
|
||||
using StopShopping.Services.Models.Resp;
|
||||
|
||||
namespace StopShopping.Services;
|
||||
|
||||
/// <summary>
|
||||
/// 文件服务
|
||||
/// </summary>
|
||||
public interface IFileService
|
||||
{
|
||||
/// <summary>
|
||||
/// 上传文件
|
||||
/// </summary>
|
||||
/// <param name="payload"></param>
|
||||
/// <returns></returns>
|
||||
Task<ApiResponse<FileUpload>> UploadFileAsync(UploadParams payload);
|
||||
/// <summary>
|
||||
/// 获取文件链接
|
||||
/// </summary>
|
||||
/// <param name="scences"></param>
|
||||
/// <param name="fileName"></param>
|
||||
/// <returns></returns>
|
||||
string GetFileUrl(UploadScences scences, string fileName);
|
||||
}
|
||||
Reference in New Issue
Block a user