YaeBlog/YaeBlog.Core/Models/BlogEssay.cs
2024-01-19 20:33:41 +08:00

18 lines
359 B
C#

namespace YaeBlog.Core.Models;
public class BlogEssay
{
public required string Title { get; init; }
public required DateTime PublishTime { get; init; }
public List<string> Tags { get; } = [];
public required string HtmlContent { get; init; }
public override string ToString()
{
return $"{Title}-{PublishTime}";
}
}