feat(storage): implement storage management API and enhance storage mode handling

This commit is contained in:
shiyu
2025-06-09 12:12:15 +08:00
parent 4ef4b2056b
commit 0a6fe70537
43 changed files with 2449 additions and 907 deletions

View File

@@ -0,0 +1,15 @@
using Foxel.Services.Attributes; // For StorageType enum
namespace Foxel.Models.Response.Storage;
public class StorageModeResponse
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public StorageType StorageType { get; set; }
public string StorageTypeName => StorageType.ToString();
public string? ConfigurationJson { get; set; } // Consider if this should be exposed or masked/summarized
public bool IsEnabled { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
}