refact: Rewrite essay scan service and interface.

This commit is contained in:
2024-08-22 22:37:34 +08:00
parent e6ed407285
commit 6cc74bf1e3
133 changed files with 270 additions and 177 deletions

View File

@@ -4,5 +4,7 @@ public class BlogContent
{
public required string FileName { get; init; }
public required MarkdownMetadata Metadata { get; init; }
public required string FileContent { get; set; }
}

View File

@@ -0,0 +1,10 @@
using System.Collections.Concurrent;
namespace YaeBlog.Core.Models;
public sealed class BlogContents(ConcurrentBag<BlogContent> drafts, ConcurrentBag<BlogContent> posts)
{
public ConcurrentBag<BlogContent> Drafts { get; } = drafts;
public ConcurrentBag<BlogContent> Posts { get; } = posts;
}