committed by
GitHub
17 changed files with 167 additions and 338 deletions
@ -1,11 +1,11 @@ |
|||
using System.IO; |
|||
using System.Threading.Tasks; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Services; |
|||
using Volo.Abp.Content; |
|||
|
|||
namespace LINGYUN.Abp.OssManagement |
|||
{ |
|||
public interface IStaticFilesAppService: IApplicationService |
|||
{ |
|||
Task<Stream> GetAsync(GetStaticFileInput input); |
|||
Task<IRemoteStreamContent> GetAsync(GetStaticFileInput input); |
|||
} |
|||
} |
|||
|
|||
@ -1,37 +0,0 @@ |
|||
using Microsoft.AspNetCore.Http; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace LINGYUN.Abp.OssManagement |
|||
{ |
|||
public class UploadOssObjectInput : UploadFile |
|||
{ |
|||
public string Bucket { get; set; } |
|||
public string Path { get; set; } |
|||
|
|||
#region 配合Uplaoder 分块传输
|
|||
/// <summary>
|
|||
/// 常规块大小
|
|||
/// </summary>
|
|||
[Required] |
|||
public long ChunkSize { get; set; } |
|||
/// <summary>
|
|||
/// 当前块大小
|
|||
/// </summary>
|
|||
[Required] |
|||
public long CurrentChunkSize { get; set; } |
|||
/// <summary>
|
|||
/// 当前上传中块的索引
|
|||
/// </summary>
|
|||
[Required] |
|||
public int ChunkNumber { get; set; } |
|||
/// <summary>
|
|||
/// 块总数
|
|||
/// </summary>
|
|||
[Required] |
|||
public int TotalChunks { get; set; } |
|||
|
|||
#endregion
|
|||
|
|||
public IFormFile File { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue