mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-04-06 17:26:35 +08:00
feat:完善bbs用户信息
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using Yi.Framework.Rbac.Application.Contracts.Dtos.User;
|
||||||
|
|
||||||
|
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.BbsUser
|
||||||
|
{
|
||||||
|
public class BbsUserGetOutputDto: UserGetOutputDto
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
using Volo.Abp.Application.Dtos;
|
using Volo.Abp.Application.Dtos;
|
||||||
|
using Yi.Framework.Bbs.Application.Contracts.Dtos.BbsUser;
|
||||||
using Yi.Framework.Rbac.Application.Contracts.Dtos.User;
|
using Yi.Framework.Rbac.Application.Contracts.Dtos.User;
|
||||||
|
|
||||||
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Comment
|
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Comment
|
||||||
@@ -29,12 +30,12 @@ namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Comment
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 用户,评论人用户信息
|
/// 用户,评论人用户信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public UserGetOutputDto CreateUser { get; set; }
|
public BbsUserGetOutputDto CreateUser { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 被评论的用户信息
|
/// 被评论的用户信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public UserGetOutputDto CommentedUser { get; set; }
|
public BbsUserGetOutputDto CommentedUser { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using Volo.Abp.Application.Dtos;
|
using Volo.Abp.Application.Dtos;
|
||||||
|
using Yi.Framework.Bbs.Application.Contracts.Dtos.BbsUser;
|
||||||
using Yi.Framework.Rbac.Application.Contracts.Dtos.User;
|
using Yi.Framework.Rbac.Application.Contracts.Dtos.User;
|
||||||
|
|
||||||
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Comment
|
namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Comment
|
||||||
@@ -19,7 +20,7 @@ namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Comment
|
|||||||
/// 用户id联表为用户对象
|
/// 用户id联表为用户对象
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
||||||
public UserGetOutputDto User { get; set; }
|
public BbsUserGetOutputDto User { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根节点的评论id
|
/// 根节点的评论id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -90,6 +90,8 @@ namespace Yi.Framework.Bbs.Application.Services
|
|||||||
|
|
||||||
//获取全量主题评论, 先获取顶级的,将其他子组合到顶级下,形成一个二维,先转成dto
|
//获取全量主题评论, 先获取顶级的,将其他子组合到顶级下,形成一个二维,先转成dto
|
||||||
List<CommentGetListOutputDto> items = await MapToGetListOutputDtosAsync(outPut);
|
List<CommentGetListOutputDto> items = await MapToGetListOutputDtosAsync(outPut);
|
||||||
|
//最后将用户信息进行补全即可
|
||||||
|
|
||||||
return new PagedResultDto<CommentGetListOutputDto>(entities.Count(), items);
|
return new PagedResultDto<CommentGetListOutputDto>(entities.Count(), items);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user