HtmlToPdf/mvp/HtmlToPdfService.Core/Options/StorageOptions.cs
2025-12-11 23:35:52 +08:00

34 lines
746 B
C#

namespace HtmlToPdfService.Core.Options;
/// <summary>
/// 存储配置选项
/// </summary>
public class StorageOptions
{
/// <summary>
/// 是否保存本地副本
/// </summary>
public bool SaveLocalCopy { get; set; } = true;
/// <summary>
/// 本地存储路径
/// </summary>
public string LocalPath { get; set; } = "/app/pdfs";
/// <summary>
/// 文件保留时间(小时)
/// </summary>
public int RetentionHours { get; set; } = 24;
/// <summary>
/// 自动清理过期文件
/// </summary>
public bool AutoCleanup { get; set; } = true;
/// <summary>
/// 清理检查间隔(秒)
/// </summary>
public int CleanupInterval { get; set; } = 3600;
}