comment system

This commit is contained in:
2023-08-09 17:34:18 +08:00
parent ce94a401d3
commit 7a44b7fd9c
17 changed files with 1152 additions and 65 deletions

View File

@@ -24,7 +24,7 @@ public class RecordItem : ILocation
[Column("uid")]
[ForeignKey(nameof(Owner))]
[Required]
public required int OwnerId { get; set; }
public int OwnerId { get; set; }
/// <summary>
/// 关联人
@@ -38,7 +38,7 @@ public class RecordItem : ILocation
[Column("fid")]
[ForeignKey(nameof(Flower))]
[Required]
public required int FlowerId { get; set; }
public int FlowerId { get; set; }
/// <summary>
/// 关联花草
@@ -51,7 +51,7 @@ public class RecordItem : ILocation
/// </summary>
[Column("eid")]
[Required]
public required int EventId { get; set; }
public int EventId { get; set; }
/// <summary>
/// 操作时间
@@ -59,7 +59,7 @@ public class RecordItem : ILocation
[Column("date")]
[Required]
[JsonPropertyName("date")]
public required long DateUnixTime { get; set; }
public long DateUnixTime { get; set; }
/// <summary>
/// 是否为私有记录
@@ -114,4 +114,22 @@ public class RecordItem : ILocation
/// </summary>
[Column("longitude")]
public double? Longitude { get; set; }
/// <summary>
/// 点赞数
/// </summary>
[Column("likes")]
public int? LikeCount { get; set; }
/// <summary>
/// 收藏数
/// </summary>
[Column("favs")]
public int? FavoriteCount { get; set; }
/// <summary>
/// 评论数
/// </summary>
[Column("comments")]
public int? CommentCount { get; set; }
}