2024-06-07 11:04:26 +08:00
|
|
|
|
namespace ZR.Model.System
|
2021-08-23 16:57:25 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 文章目录
|
|
|
|
|
|
/// </summary>
|
2023-06-07 22:28:06 +08:00
|
|
|
|
[SugarTable("articleCategory", "文章目录")]
|
2021-11-27 09:43:04 +08:00
|
|
|
|
[Tenant("0")]
|
2021-08-23 16:57:25 +08:00
|
|
|
|
public class ArticleCategory
|
|
|
|
|
|
{
|
2022-05-13 21:46:27 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 目录id
|
|
|
|
|
|
/// </summary>
|
2023-06-07 22:28:06 +08:00
|
|
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "category_id")]
|
2022-05-13 21:46:27 +08:00
|
|
|
|
public int CategoryId { get; set; }
|
2023-06-07 22:28:06 +08:00
|
|
|
|
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "目录名", Length = 20, ExtendedAttribute = ProteryConstant.NOTNULL)]
|
2021-08-23 16:57:25 +08:00
|
|
|
|
public string Name { get; set; }
|
2023-06-07 22:28:06 +08:00
|
|
|
|
public int? ParentId { get; set; }
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "创建时间", ColumnName = "create_time")]
|
2023-05-23 16:21:04 +08:00
|
|
|
|
public DateTime? CreateTime { get; set; }
|
2021-08-23 16:57:25 +08:00
|
|
|
|
|
|
|
|
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
2021-11-27 09:43:04 +08:00
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
2021-08-23 16:57:25 +08:00
|
|
|
|
public List<ArticleCategory> Children { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|