Files
StopShopping/StopShopping.Services/IFileService.cs
2026-03-25 14:55:34 +08:00

26 lines
664 B
C#

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);
}