Merge pull request #1 from HosseinJavadi/fit/master/Hassanzadeh
Fit/master/hassanzadeh
This commit is contained in:
@@ -0,0 +1,21 @@
|
|||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using Vizhtalk.CDN.Presentation.TypeIds;
|
||||||
|
|
||||||
|
namespace Vizhtalk.CDN.Presentation.Controllers
|
||||||
|
{
|
||||||
|
[Route("api/[controller]")]
|
||||||
|
[ApiController]
|
||||||
|
public class FileController : ControllerBase
|
||||||
|
{
|
||||||
|
|
||||||
|
[HttpGet("{id}")]
|
||||||
|
public IActionResult Get(MediaGroupMediaId id)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return Unauthorized();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,7 +6,6 @@ namespace Vizhtalk.CDN.Presentation.Entities
|
|||||||
{
|
{
|
||||||
public class Media : Entity<MediaId>
|
public class Media : Entity<MediaId>
|
||||||
{
|
{
|
||||||
public MediaName Name { get; set; }
|
|
||||||
public ContentType ContentType { get; private set; }
|
public ContentType ContentType { get; private set; }
|
||||||
public int Size { get; set; }
|
public int Size { get; set; }
|
||||||
public string Path { get; private set; }
|
public string Path { get; private set; }
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
using Vizhtalk.CDN.Presentation.TypeIds;
|
using Vizhtalk.CDN.Presentation.TypeIds;
|
||||||
|
using Vizhtalk.CDN.Presentation.ValueObjects;
|
||||||
using VizhTalk.BuildingBlocks.Domain;
|
using VizhTalk.BuildingBlocks.Domain;
|
||||||
|
|
||||||
namespace Vizhtalk.CDN.Presentation.Entities
|
namespace Vizhtalk.CDN.Presentation.Entities
|
||||||
{
|
{
|
||||||
public class MediaClient : Entity<MediaClientId>
|
public class MediaClient : Entity<MediaClientId>
|
||||||
{
|
{
|
||||||
|
public MediaClientName Name { get; set; }
|
||||||
public MediaId MediaId { get; set; }
|
public MediaId MediaId { get; set; }
|
||||||
public ClientId ClientId { get; set; }
|
public ClientId ClientId { get; set; }
|
||||||
public MediaGroupMediaId MediaGroup { get; set; }
|
public MediaGroupMediaId MediaGroup { get; set; }
|
||||||
|
|||||||
+4
-4
@@ -3,12 +3,12 @@ using VizhTalk.BuildingBlocks.Domain.Guards;
|
|||||||
|
|
||||||
namespace Vizhtalk.CDN.Presentation.ValueObjects
|
namespace Vizhtalk.CDN.Presentation.ValueObjects
|
||||||
{
|
{
|
||||||
public class MediaName : ValueObject
|
public class MediaClientName : ValueObject
|
||||||
{
|
{
|
||||||
public MediaName(string value)
|
public MediaClientName(string value)
|
||||||
{
|
{
|
||||||
Guard.NullOrEmpty(value, nameof(MediaName));
|
Guard.NullOrEmpty(value, nameof(MediaClientName));
|
||||||
Guard.MaxLength(value, nameof(MediaName), 150);
|
Guard.MaxLength(value, nameof(MediaClientName), 150);
|
||||||
|
|
||||||
Value = value;
|
Value = value;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user