feat(background): add visual recognition task and refactor picture processing

This commit is contained in:
ShiYu
2025-06-08 15:40:08 +08:00
parent 7ad8b6c826
commit 39c40d2746
17 changed files with 473 additions and 269 deletions

View File

@@ -9,8 +9,16 @@ public class Picture : BaseModel
{
[StringLength(255)] public string Name { get; set; } = string.Empty;
/// <summary>
/// Path to the high-definition (possibly format-converted) image.
/// </summary>
[StringLength(1024)] public string Path { get; set; } = string.Empty;
/// <summary>
/// Path to the original, untouched uploaded file.
/// </summary>
[StringLength(1024)] public string OriginalPath { get; set; } = string.Empty;
[StringLength(1024)] public string? ThumbnailPath { get; set; } = string.Empty;
[StringLength(2000)] public string Description { get; set; } = string.Empty;