feat(storage): refactor storage service and provider interface, support dynamic registration of storage providers

This commit is contained in:
ShiYu
2025-05-22 16:31:32 +08:00
parent cafe48402e
commit 9243a26189
15 changed files with 237 additions and 105 deletions

View File

@@ -1,18 +1,11 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json;
using Foxel.Services.Attributes;
using Vector = Pgvector.Vector;
namespace Foxel.Models.DataBase;
public enum StorageType
{
Local = 0,
Telegram = 1,
S3 = 2,
Cos = 3,
}
public class Picture : BaseModel
{
[StringLength(255)] public string Name { get; set; } = string.Empty;

View File

@@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations;
using Foxel.Models.DataBase;
using Foxel.Services.Attributes;
namespace Foxel.Models.Request.Picture;