feat:全基础流程跑通

This commit is contained in:
橙子
2023-04-15 22:44:33 +08:00
parent 9b1a978cb5
commit 1655870d4d
151 changed files with 3120 additions and 209 deletions

View File

@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
namespace Yi.Furion.Core.Bbs.Dtos.Comment
{
/// <summary>
/// Comment输入创建对象
/// </summary>
public class CommentCreateInputVo
{
/// <summary>
/// 评论id
/// </summary>
public string Content { get; set; }
/// <summary>
/// 主题id
/// </summary>
public long DiscussId { get; set; }
/// <summary>
/// 第一层评论id第一层为0
/// </summary>
public long RootId { get; set; }
/// <summary>
/// 被回复的CommentId第一层为0
/// </summary>
public long ParentId { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using System;
namespace Yi.Furion.Core.Bbs.Dtos.Comment
{
public class CommentGetListInputVo
{
public DateTime? creationTime { get; set; }
public string Content { get; set; }
//应该选择具体莫个主题查询
public long? DiscussId { get; set; }
}
}

View File

@@ -0,0 +1,49 @@
using System;
using System.Collections.Generic;
using Yi.Framework.Infrastructure.Ddd.Dtos.Abstract;
using Yi.Furion.Core.Rbac.Dtos.User;
namespace Yi.Furion.Core.Bbs.Dtos.Comment
{
/// <summary>
/// 评论多反
/// </summary>
public class CommentGetListOutputDto : IEntityDto<long>
{
public long Id { get; set; }
public DateTime? CreationTime { get; set; }
public string Content { get; set; }
/// <summary>
/// 主题id
/// </summary>
public long DiscussId { get; set; }
public long ParentId { get; set; }
public long 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,36 @@
using System;
using Yi.Framework.Infrastructure.Ddd.Dtos.Abstract;
using Yi.Furion.Core.Rbac.Dtos.User;
namespace Yi.Furion.Core.Bbs.Dtos.Comment
{
/// <summary>
/// 单返回,返回单条评论即可
/// </summary>
public class CommentGetOutputDto : IEntityDto<long>
{
public long Id { get; set; }
public DateTime? CreateTime { get; set; }
public string Content { get; set; }
public long DiscussId { get; set; }
/// <summary>
/// 用户id联表为用户对象
/// </summary>
public UserGetOutputDto User { get; set; }
/// <summary>
/// 根节点的评论id
/// </summary>
public long RootId { get; set; }
/// <summary>
/// 被回复的CommentId
/// </summary>
public long ParentId { get; set; }
}
}

View File

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