YaeBlog/YaeBlog.Core/Models/BlogEssay.cs

20 lines
411 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; }
2024-01-23 14:33:35 +08:00
public required string FileName { get; init; }
2024-01-17 13:20:32 +08:00
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
}