mirror of https://github.com/abpframework/abp.git
committed by
GitHub
12 changed files with 112 additions and 142 deletions
@ -1,13 +1,14 @@ |
|||||
using System.ComponentModel.DataAnnotations; |
using System.ComponentModel.DataAnnotations; |
||||
|
using Volo.Abp.Content; |
||||
|
|
||||
namespace Volo.Blogging.Files |
namespace Volo.Blogging.Files |
||||
{ |
{ |
||||
public class FileUploadInputDto |
public class FileUploadInputDto |
||||
{ |
{ |
||||
[Required] |
[Required] |
||||
public byte[] Bytes { get; set; } |
public IRemoteStreamContent File { get; set; } |
||||
|
|
||||
[Required] |
[Required] |
||||
public string Name { get; set; } |
public string Name { get; set; } |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,12 +0,0 @@ |
|||||
namespace Volo.Blogging.Areas.Blog.Models |
|
||||
{ |
|
||||
public class FileUploadResult |
|
||||
{ |
|
||||
public string FileUrl { get; set; } |
|
||||
|
|
||||
public FileUploadResult(string fileUrl) |
|
||||
{ |
|
||||
FileUrl = fileUrl; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue