mirror of https://github.com/abpframework/abp.git
committed by
GitHub
14 changed files with 115 additions and 133 deletions
@ -1,15 +1,16 @@ |
|||||
using System.IO; |
using System; |
||||
|
using System.IO; |
||||
|
|
||||
namespace Volo.Abp.Content |
namespace Volo.Abp.Content |
||||
{ |
{ |
||||
public interface IRemoteStreamContent |
public interface IRemoteStreamContent : IDisposable |
||||
{ |
{ |
||||
|
string FileName { get; } |
||||
|
|
||||
string ContentType { get; } |
string ContentType { get; } |
||||
|
|
||||
long? ContentLength { get; } |
long? ContentLength { get; } |
||||
|
|
||||
string FileName { get; } |
|
||||
|
|
||||
Stream GetStream(); |
Stream GetStream(); |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,23 +0,0 @@ |
|||||
using System.ComponentModel.DataAnnotations; |
|
||||
using System.IO; |
|
||||
using Volo.Abp.Content; |
|
||||
using Volo.Abp.Validation; |
|
||||
using Volo.CmsKit.MediaDescriptors; |
|
||||
|
|
||||
namespace Volo.CmsKit.Admin.MediaDescriptors |
|
||||
{ |
|
||||
public class CreateMediaInputStream : RemoteStreamContent |
|
||||
{ |
|
||||
[Required] |
|
||||
[DynamicStringLength(typeof(MediaDescriptorConsts), nameof(MediaDescriptorConsts.MaxEntityTypeLength))] |
|
||||
public string EntityType { get; set; } |
|
||||
|
|
||||
[Required] |
|
||||
[DynamicStringLength(typeof(MediaDescriptorConsts), nameof(MediaDescriptorConsts.MaxNameLength))] |
|
||||
public string Name { get; set; } |
|
||||
|
|
||||
public CreateMediaInputStream(Stream stream) : base(stream) |
|
||||
{ |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue