YaeBlog/YaeBlog.Core/Abstractions/IEssayContentService.cs
jackfiled 9111affeec
All checks were successful
Build blog docker image / Build-Blog-Image (push) Successful in 1m34s
feat: 添加内容热重载指令 (#4)
Reviewed-on: #4
2024-08-23 20:24:32 +08:00

23 lines
632 B
C#

using System.Diagnostics.CodeAnalysis;
using YaeBlog.Core.Models;
namespace YaeBlog.Core.Abstractions;
public interface IEssayContentService
{
public IReadOnlyDictionary<string, BlogEssay> Essays { get; }
public IReadOnlyDictionary<EssayTag, List<BlogEssay>> Tags { get; }
public IReadOnlyDictionary<string, BlogHeadline> Headlines { get; }
public bool TryAddHeadline(string filename, BlogHeadline headline);
public bool SearchByUrlEncodedTag(string tag, [NotNullWhen(true)] out List<BlogEssay>? result);
public bool TryAdd(BlogEssay essay);
public void RefreshTags();
public void Clear();
}