Initial commit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user