24 lines
517 B
C#
24 lines
517 B
C#
namespace YaeBlog.Core.Models;
|
|
|
|
public class BlogEssay
|
|
{
|
|
public required string Title { get; init; }
|
|
|
|
public required string FileName { get; init; }
|
|
|
|
public required DateTime PublishTime { get; init; }
|
|
|
|
public required string Description { get; init; }
|
|
|
|
public required uint WordCount { get; init; }
|
|
|
|
public List<string> Tags { get; } = [];
|
|
|
|
public required string HtmlContent { get; init; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{Title}-{PublishTime}";
|
|
}
|
|
}
|