erp-platform/api/src/Kurs.Platform.Application.Contracts/Forum/ForumPostDto.cs
2025-06-19 17:51:10 +03:00

44 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using Volo.Abp.Application.Dtos;
namespace Kurs.Platform.Forum
{
public class ForumPostDto : FullAuditedEntityDto<Guid>
{
public Guid? TopicId { get; set; }
public Guid? CategoryId { get; set; }
public string Title { get; set; }
public string Content { get; set; }
public Guid AuthorId { get; set; }
public AuthorDto Author { get; set; }
public Guid? ParentId { get; set; }
public int LikeCount { get; set; }
public int ViewCount { get; set; }
public int ReplyCount { get; set; }
public bool IsLiked { get; set; }
public bool IsBestAnswer { get; set; }
public bool IsEdited { get; set; }
public DateTime? EditedAt { get; set; }
public List<string> Tags { get; set; }
public LastReplyDto LastReply { get; set; }
public List<ForumPostDto> Replies { get; set; }
}
public class CreatePostRequest
{
public Guid? TopicId { get; set; }
public Guid? CategoryId { get; set; }
public string Title { get; set; }
public string Content { get; set; }
public Guid? ParentId { get; set; }
public List<string> Tags { get; set; }
}
public class LastReplyDto
{
public Guid Id { get; set; }
public AuthorDto Author { get; set; }
public DateTime CreationTime { get; set; }
}
}