2023-12-15 00:11:08 +08:00
|
|
|
|
using Microsoft.AspNetCore.Http;
|
2024-12-21 18:00:43 +08:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2023-12-15 00:11:08 +08:00
|
|
|
|
using Volo.Abp.Application.Services;
|
2024-01-11 18:51:53 +08:00
|
|
|
|
using Yi.Framework.Rbac.Application.Contracts.Dtos.FileManager;
|
2023-12-15 00:11:08 +08:00
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.Rbac.Application.Contracts.IServices
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IFileService : IApplicationService
|
|
|
|
|
|
{
|
2024-12-21 18:00:43 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 下载文件,支持缩略图
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task<IActionResult> Get([FromRoute] Guid code, [FromRoute] bool? isThumbnail);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 上传文件
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
Task<List<FileGetListOutputDto>> Post([FromForm] IFormFileCollection file);
|
2023-12-15 00:11:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|