chore: 构建

This commit is contained in:
陈淳
2023-12-26 10:17:21 +08:00
parent c9c97e8a4e
commit fb5bcac2d7

View File

@@ -144,6 +144,7 @@ namespace Yi.Framework.Bbs.Application.Services
.Select((top, discuss, user, info) => new DiscussGetListOutputDto .Select((top, discuss, user, info) => new DiscussGetListOutputDto
{ {
Id = discuss.Id, Id = discuss.Id,
IsAgree = SqlFunc.Subqueryable<AgreeEntity>().WhereIF(CurrentUser.Id != null, x => x.CreatorId == CurrentUser.Id && x.DiscussId == discuss.Id).Any(),
User = new BbsUserGetListOutputDto User = new BbsUserGetListOutputDto
{ {
Id = user.Id, Id = user.Id,
@@ -153,7 +154,7 @@ namespace Yi.Framework.Bbs.Application.Services
Address = user.Address, Address = user.Address,
Age = user.Age, Age = user.Age,
CreationTime = user.CreationTime, CreationTime = user.CreationTime,
IsAgree = SqlFunc.Subqueryable<AgreeEntity>().WhereIF(CurrentUser.Id != null, x => x.CreatorId == CurrentUser.Id && x.DiscussId == discuss.Id).Any(),
Level =info.Level, Level =info.Level,
Introduction = user.Introduction, Introduction = user.Introduction,
Icon= user.Icon, Icon= user.Icon,