using Foxel.Models.DataBase;
namespace Foxel.Services.Attributes;
public enum StorageType
{
Local = 0,
Telegram = 1,
S3 = 2,
Cos = 3,
}
///
/// 标记存储提供者类的特性
///
[AttributeUsage(AttributeTargets.Class)]
public class StorageProviderAttribute : Attribute
{
///
/// 存储类型
///
public StorageType StorageType { get; }
///
/// 构造函数
///
/// 存储类型
public StorageProviderAttribute(StorageType storageType)
{
StorageType = storageType;
}
}