using System; using System.Collections.Generic; using Volo.Abp.Application.Dtos; namespace Kurs.Platform.Blog; public class BlogPostDto : FullAuditedEntityDto { public Guid? TenantId { get; set; } public string Title { get; set; } public string Slug { get; set; } public string ContentTr { get; set; } public string ContentEn { get; set; } public string Summary { get; set; } public string CoverImage { get; set; } public Guid CategoryId { get; set; } public BlogCategoryDto Category { get; set; } public AuthorDto Author { get; set; } public int ViewCount { get; set; } public int LikeCount { get; set; } public int CommentCount { get; set; } public bool IsPublished { get; set; } public DateTime? PublishedAt { get; set; } public List Tags { get; set; } public bool IsLiked { get; set; } public BlogPostDto() { Tags = []; } } public class AuthorDto { public Guid Id { get; set; } public string Name { get; set; } public string Avatar { get; set; } } public class CreateUpdateBlogPostDto { public Guid? TenantId { get; set; } public string Title { get; set; } public string Slug { get; set; } public string ContentTr { get; set; } public string ContentEn { get; set; } public string Summary { get; set; } public string ReadTime { get; set; } public string CoverImage { get; set; } public Guid CategoryId { get; set; } public List Tags { get; set; } public bool IsPublished { get; set; } public CreateUpdateBlogPostDto() { Tags = []; } } public class BlogPostListDto : EntityDto { public Guid? TenantId { get; set; } public string Title { get; set; } public string Slug { get; set; } public string Summary { get; set; } public string ReadTime { get; set; } public string CoverImage { get; set; } public string ContentTr { get; set; } public string ContentEn { get; set; } public BlogCategoryDto Category { get; set; } public AuthorDto Author { get; set; } public int ViewCount { get; set; } public int LikeCount { get; set; } public int CommentCount { get; set; } public bool IsPublished { get; set; } public DateTime? PublishedAt { get; set; } public DateTime CreationTime { get; set; } public List Tags { get; set; } public BlogPostListDto() { Tags = []; } }