feat: 添加子文章crud
This commit is contained in:
Binary file not shown.
@@ -14,5 +14,7 @@ namespace Yi.BBS.Application.Contracts.Forum.Dtos
|
||||
public string Name { get; set; }
|
||||
public long DiscussId { get; set; }
|
||||
public long ParentId { get; set; }
|
||||
|
||||
public List<ArticleAllOutputDto> Children { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ namespace Yi.BBS.Application.Contracts.Forum.Dtos
|
||||
{
|
||||
public class ArticleUpdateInputVo
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Content { get; set; }
|
||||
public string Name { get; set; }
|
||||
public long DiscussId { get; set; }
|
||||
|
||||
@@ -41,8 +41,8 @@ namespace Yi.BBS.Application.Forum
|
||||
}
|
||||
|
||||
var entities = await _articleRepository.GetTreeAsync(x => x.DiscussId == discussId);
|
||||
var result = entities.Tile();
|
||||
var items = _mapper.Map<List<ArticleAllOutputDto>>(result);
|
||||
//var result = entities.Tile();
|
||||
var items = _mapper.Map<List<ArticleAllOutputDto>>(entities);
|
||||
return items;
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user