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 PhotoItem
[Column("uid")]
[ForeignKey(nameof(Owner))]
[Required]
public required int OwnerId { get; set; }
public int OwnerId { get; set; }
/// <summary>
/// 关联人
@@ -63,21 +63,21 @@ public class PhotoItem
/// </summary>
[Column("filetype")]
[Required]
public required string FileType { get; set; }
public string FileType { get; set; } = null!;
/// <summary>
/// 文件名
/// </summary>
[Column("filename")]
[Required]
public required string FileName { get; set; }
public string FileName { get; set; } = null!;
/// <summary>
/// 文件路径
/// </summary>
[Column("path")]
[Required]
public required string Path { get; set; }
public string Path { get; set; } = null!;
/// <summary>
/// 上传时间
@@ -85,7 +85,7 @@ public class PhotoItem
[Column("dateupload")]
[Required]
[JsonPropertyName("dateUpload")]
public required long DateUploadUnixTime { get; set; }
public long DateUploadUnixTime { get; set; }
/// <summary>
/// 上传时间