Initial commit

This commit is contained in:
2026-05-05 10:39:43 +02:00
commit b590ecdc35
87 changed files with 3934 additions and 0 deletions
@@ -0,0 +1,8 @@
namespace MetaCourse.Api.DTOs.Courses;
public class CreateCourseDto
{
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public Guid CreatorId { get; set; }
}
@@ -0,0 +1,16 @@
using MetaCourse.Api.DTOs.Topics;
namespace MetaCourse.Api.DTOs.Courses;
public class GetCourseDetailsDto
{
public Guid Id { get; set; }
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string Status { get; set; } = string.Empty;
public string CreatorName { get; set; } = string.Empty;
public Guid CreatorId { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
public List<GetTopicDto> Topics { get; set; } = new();
}
@@ -0,0 +1,16 @@
using MetaCourse.Api.Entities;
namespace MetaCourse.Api.DTOs.Courses;
public class GetCourseDto
{
public Guid Id { get; set; }
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string Status { get; set; } = string.Empty;
public string CreatorName { get; set; } = string.Empty;
public Guid CreatorId { get; set; }
public int TopicCount { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
}
@@ -0,0 +1,8 @@
namespace MetaCourse.Api.DTOs.Courses;
public class UpdateCourseDto
{
public Guid Id { get; set; }
public string Title { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
}