feat:完成评论功能

This commit is contained in:
橙子
2023-03-23 00:08:55 +08:00
parent 30329ea4db
commit 8213f6f8d7
13 changed files with 240 additions and 32 deletions

View File

@@ -24,6 +24,71 @@
Comment输入创建对象
</summary>
</member>
<member name="P:Yi.BBS.Application.Contracts.Forum.Dtos.CommentCreateInputVo.Content">
<summary>
评论id
</summary>
</member>
<member name="P:Yi.BBS.Application.Contracts.Forum.Dtos.CommentCreateInputVo.DiscussId">
<summary>
主题id
</summary>
</member>
<member name="P:Yi.BBS.Application.Contracts.Forum.Dtos.CommentCreateInputVo.RootId">
<summary>
第一层评论id第一层为0
</summary>
</member>
<member name="P:Yi.BBS.Application.Contracts.Forum.Dtos.CommentCreateInputVo.ParentId">
<summary>
被回复的CommentId第一层为0
</summary>
</member>
<member name="T:Yi.BBS.Application.Contracts.Forum.Dtos.CommentGetListOutputDto">
<summary>
评论多反
</summary>
</member>
<member name="P:Yi.BBS.Application.Contracts.Forum.Dtos.CommentGetListOutputDto.DiscussId">
<summary>
主题id
</summary>
</member>
<member name="P:Yi.BBS.Application.Contracts.Forum.Dtos.CommentGetListOutputDto.CreateUser">
<summary>
用户,评论人用户信息
</summary>
</member>
<member name="P:Yi.BBS.Application.Contracts.Forum.Dtos.CommentGetListOutputDto.CommentedUser">
<summary>
被评论的用户信息
</summary>
</member>
<member name="P:Yi.BBS.Application.Contracts.Forum.Dtos.CommentGetListOutputDto.Children">
<summary>
这个不是一个树形而是存在一个二维数组该Children只有在顶级时候只有一层
</summary>
</member>
<member name="T:Yi.BBS.Application.Contracts.Forum.Dtos.CommentGetOutputDto">
<summary>
单返回,返回单条评论即可
</summary>
</member>
<member name="P:Yi.BBS.Application.Contracts.Forum.Dtos.CommentGetOutputDto.User">
<summary>
用户id联表为用户对象
</summary>
</member>
<member name="P:Yi.BBS.Application.Contracts.Forum.Dtos.CommentGetOutputDto.RootId">
<summary>
根节点的评论id
</summary>
</member>
<member name="P:Yi.BBS.Application.Contracts.Forum.Dtos.CommentGetOutputDto.ParentId">
<summary>
被回复的CommentId
</summary>
</member>
<member name="T:Yi.BBS.Application.Contracts.Forum.Dtos.Discuss.DiscussCreateInputVo">
<summary>
Discuss输入创建对象

View File

@@ -51,12 +51,12 @@
</member>
<member name="T:Yi.BBS.Application.Forum.CommentService">
<summary>
Comment服务实现
评论
</summary>
</member>
<member name="M:Yi.BBS.Application.Forum.CommentService.GetDiscussIdAsync(System.Int64,Yi.BBS.Application.Contracts.Forum.Dtos.CommentGetListInputVo)">
<summary>
获取改主题下的评论
获取改主题下的评论,结构为二维列表,该查询无分页
</summary>
<param name="discussId"></param>
<param name="input"></param>

View File

@@ -21,6 +21,31 @@
<param name="entities"></param>
<returns></returns>
</member>
<member name="T:Yi.BBS.Domain.Forum.Entities.CommentEntity">
<summary>
评论表
</summary>
</member>
<member name="M:Yi.BBS.Domain.Forum.Entities.CommentEntity.#ctor">
<summary>
采用二维数组方式,不使用树形方式
</summary>
</member>
<member name="P:Yi.BBS.Domain.Forum.Entities.CommentEntity.ParentId">
<summary>
被回复的CommentId
</summary>
</member>
<member name="P:Yi.BBS.Domain.Forum.Entities.CommentEntity.CreateUser">
<summary>
用户,评论人用户信息
</summary>
</member>
<member name="P:Yi.BBS.Domain.Forum.Entities.CommentEntity.CommentedUser">
<summary>
被评论的用户信息
</summary>
</member>
<member name="T:Yi.BBS.Domain.Forum.ForumManager">
<summary>
论坛模块的领域服务