chore: 构建
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user