YaeBlog/YaeBlog.Core/Models/BlogEssay.cs

18 lines
359 B
C#
Raw Normal View History

2024-01-17 13:20:32 +08:00
namespace YaeBlog.Core.Models;
public class BlogEssay
{
public required string Title { get; init; }
public required DateTime PublishTime { get; init; }
2024-01-19 20:33:41 +08:00
public List<string> Tags { get; } = [];
2024-01-17 13:20:32 +08:00
public required string HtmlContent { get; init; }
2024-01-19 20:33:41 +08:00
public override string ToString()
{
return $"{Title}-{PublishTime}";
}
2024-01-17 13:20:32 +08:00
}