mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-14 15:47:36 +08:00
feat(storage): implement storage management API and enhance storage mode handling
This commit is contained in:
21
Models/Request/Storage/UpdateStorageModeRequest.cs
Normal file
21
Models/Request/Storage/UpdateStorageModeRequest.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Foxel.Services.Attributes; // For StorageType enum
|
||||
|
||||
namespace Foxel.Models.Request.Storage;
|
||||
|
||||
public class UpdateStorageModeRequest
|
||||
{
|
||||
[Required]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(100)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public StorageType StorageType { get; set; }
|
||||
|
||||
public string? ConfigurationJson { get; set; }
|
||||
|
||||
public bool IsEnabled { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user