Add project files.

This commit is contained in:
2025-05-01 15:18:30 +03:00
parent e058ab8015
commit 774d695414
3094 changed files with 1336814 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using static ConstructorApp.EntityLayer.Entities.Project;
namespace ConstructorAppUI.Dtos.ProjectDtos
{
public class CreateProjectDto
{
public string? CoverUrl { get; set; }
public DateOnly Date { get; set; }
public string? Title { get; set; }
public string? Location { get; set; }
public string? ShortDescription { get; set; } //Exterior design
public string? LongDescription { get; set; }
public string? GoogleMapIFrame { get; set; }
public string? VideoUrl { get; set; }
public string? FloorPlanUrl { get; set; }
public IFormFile? ImageFile { get; set; } // Yüklenecek dosya
public bool IsActive { get; set; } //0=Pasif 1=Aktif
public string? Slug { get; set; }
public ProjectStatus Status { get; set; }
}
}

View File

@@ -0,0 +1,21 @@
using static ConstructorApp.EntityLayer.Entities.Project;
namespace ConstructorAppUI.Dtos.ProjectDtos
{
public class GetProjectDto
{
public int ProjectID { get; set; }
public string? CoverUrl { get; set; }
public DateOnly Date { get; set; }
public string? Title { get; set; }
public string? Location { get; set; }
public string? ShortDescription { get; set; } //Exterior design
public string? LongDescription { get; set; }
public string? GoogleMapIFrame { get; set; }
public string? VideoUrl { get; set; }
public string? FloorPlanUrl { get; set; }
public bool IsActive { get; set; } //0=Pasif 1=Aktif
public string? Slug { get; set; }
public ProjectStatus Status { get; set; }
}
}

View File

@@ -0,0 +1,30 @@
using ConstructorAppUI.Helpers;
using static ConstructorApp.EntityLayer.Entities.Project;
namespace ConstructorAppUI.Dtos.ProjectDtos
{
public class ResultProjectDto
{
public int ProjectID { get; set; }
public string? CoverUrl { get; set; }
public DateOnly Date { get; set; }
public string? Title { get; set; }
public string? Location { get; set; }
public string? ShortDescription { get; set; } //Exterior design
public string? LongDescription { get; set; }
public string? GoogleMapIFrame { get; set; }
public string? VideoUrl { get; set; }
public string? FloorPlanUrl { get; set; }
public bool IsActive { get; set; } //0=Pasif 1=Aktif
public string? Slug { get; set; }
public ProjectStatus Status { get; set; }
public List<string>? ImageUrls { get; set; }
// embed URL üretici
public string? EmbedVideoUrl =>
!string.IsNullOrEmpty(VideoUrl) ?
$"https://www.youtube.com/embed/{YouTubeHelper.ExtractVideoId(VideoUrl)}?autoplay=1" :
null;
}
}

View File

@@ -0,0 +1,21 @@
using static ConstructorApp.EntityLayer.Entities.Project;
namespace ConstructorAppUI.Dtos.ProjectDtos
{
public class UpdateProjectDto
{
public int ProjectID { get; set; }
public string? CoverUrl { get; set; }
public DateOnly Date { get; set; }
public string? Title { get; set; }
public string? Location { get; set; }
public string? ShortDescription { get; set; } //Exterior design
public string? LongDescription { get; set; }
public string? GoogleMapIFrame { get; set; }
public string? VideoUrl { get; set; }
public string? FloorPlanUrl { get; set; }
public bool IsActive { get; set; } //0=Pasif 1=Aktif
public string? Slug { get; set; }
public ProjectStatus Status { get; set; }
}
}