chore: 完成个人页面改造

This commit is contained in:
陈淳
2024-01-17 11:47:36 +08:00
parent 3d5aff3e29
commit 0d5c196f39
3 changed files with 135 additions and 27 deletions

View File

@@ -5,6 +5,8 @@ namespace Yi.Framework.Bbs.Application.Contracts.Dtos.Discuss
{
public class DiscussGetListInputVo : PagedAndSortedResultRequestDto
{
public Guid? UserId { get; set; }
public string? Title { get; set; }
public Guid? PlateId { get; set; }

View File

@@ -110,6 +110,7 @@ namespace Yi.Framework.Bbs.Application.Services.Forum
.WhereIF(!string.IsNullOrEmpty(input.Title), x => x.Title.Contains(input.Title))
.WhereIF(input.PlateId is not null, x => x.PlateId == input.PlateId)
.WhereIF(input.IsTop is not null, x => x.IsTop == input.IsTop)
.WhereIF(input.UserId is not null,x=>x.CreatorId==input.UserId)
.LeftJoin<UserEntity>((discuss, user) => discuss.CreatorId == user.Id)
.LeftJoin<BbsUserExtraInfoEntity>((discuss, user, info) => user.Id == info.UserId)