chore: 构建稳定版本

This commit is contained in:
陈淳
2023-12-11 09:55:12 +08:00
parent 098d4bc85f
commit 769a6a9c63
756 changed files with 10431 additions and 19867 deletions

View File

@@ -0,0 +1,29 @@
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Comment
{
/// <summary>
/// Comment输入创建对象
/// </summary>
public class CommentCreateInputVo
{
/// <summary>
/// 评论id
/// </summary>
public string? Content { get; set; }
/// <summary>
/// 主题id
/// </summary>
public Guid DiscussId { get; set; }
/// <summary>
/// 第一层评论id第一层为0
/// </summary>
public Guid RootId { get; set; }
/// <summary>
/// 被回复的CommentId第一层为0
/// </summary>
public Guid ParentId { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Comment
{
public class CommentGetListInputVo
{
public DateTime? creationTime { get; set; }
public string? Content { get; set; }
//应该选择具体莫个主题查询
public Guid? DiscussId { get; set; }
}
}

View File

@@ -0,0 +1,45 @@
using Volo.Abp.Application.Dtos;
using Yi.Framework.Rbac.Application.Contracts.Dtos.User;
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Comment
{
/// <summary>
/// 评论多反
/// </summary>
public class CommentGetListOutputDto : EntityDto<Guid>
{
public DateTime? CreationTime { get; set; }
public string Content { get; set; }
/// <summary>
/// 主题id
/// </summary>
public Guid DiscussId { get; set; }
public Guid ParentId { get; set; }
public Guid RootId { get; set; }
/// <summary>
/// 用户,评论人用户信息
/// </summary>
public UserGetOutputDto CreateUser { get; set; }
/// <summary>
/// 被评论的用户信息
/// </summary>
public UserGetOutputDto CommentedUser { get; set; }
/// <summary>
/// 这个不是一个树形而是存在一个二维数组该Children只有在顶级时候只有一层
/// </summary>
public List<CommentGetListOutputDto> Children { get; set; } = new List<CommentGetListOutputDto>();
}
}

View File

@@ -0,0 +1,34 @@
using Volo.Abp.Application.Dtos;
using Yi.Framework.Rbac.Application.Contracts.Dtos.User;
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Comment
{
/// <summary>
/// 单返回,返回单条评论即可
/// </summary>
public class CommentGetOutputDto : EntityDto<Guid>
{
public DateTime? CreateTime { get; set; }
public string Content { get; set; }
public Guid DiscussId { get; set; }
/// <summary>
/// 用户id联表为用户对象
/// </summary>
public UserGetOutputDto User { get; set; }
/// <summary>
/// 根节点的评论id
/// </summary>
public Guid RootId { get; set; }
/// <summary>
/// 被回复的CommentId
/// </summary>
public Guid ParentId { get; set; }
}
}

View File

@@ -0,0 +1,10 @@
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Comment
{
public class CommentUpdateInputVo
{
public string Content { get; set; }
//更新不能将评论转移
}
}