Merge pull request #1 from HosseinJavadi/fit/master/Hassanzadeh

Fit/master/hassanzadeh
This commit is contained in:
pns-hassanzadeh
2025-09-05 16:02:43 +03:30
committed by GitHub
4 changed files with 27 additions and 5 deletions
@@ -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 MediaName Name { get; set; }
public ContentType ContentType { get; private set; }
public int Size { get; set; }
public string Path { get; private set; }
@@ -1,10 +1,12 @@
using Vizhtalk.CDN.Presentation.TypeIds;
using Vizhtalk.CDN.Presentation.ValueObjects;
using VizhTalk.BuildingBlocks.Domain;
namespace Vizhtalk.CDN.Presentation.Entities
{
public class MediaClient : Entity<MediaClientId>
{
public MediaClientName Name { get; set; }
public MediaId MediaId { get; set; }
public ClientId ClientId { get; set; }
public MediaGroupMediaId MediaGroup { get; set; }
@@ -3,12 +3,12 @@ using VizhTalk.BuildingBlocks.Domain.Guards;
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.MaxLength(value, nameof(MediaName), 150);
Guard.NullOrEmpty(value, nameof(MediaClientName));
Guard.MaxLength(value, nameof(MediaClientName), 150);
Value = value;
}