Create app CDN
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 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; }
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using VizhTalk.BuildingBlocks.Domain;
|
||||
using VizhTalk.BuildingBlocks.Domain.Guards;
|
||||
|
||||
namespace Vizhtalk.CDN.Presentation.ValueObjects
|
||||
{
|
||||
public class MediaClientName : ValueObject
|
||||
{
|
||||
public MediaClientName(string value)
|
||||
{
|
||||
Guard.NullOrEmpty(value, nameof(MediaClientName));
|
||||
Guard.MaxLength(value, nameof(MediaClientName), 150);
|
||||
|
||||
Value = value;
|
||||
}
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
|
||||
Reference in New Issue
Block a user