Files
douyin/model/entity/OpenListSettings.cs

42 lines
1.5 KiB
C#

using SqlSugar;
namespace dy.net.model.entity
{
[SugarTable(TableName = "dy_openlist_settings")]
public class OpenListSettings
{
[SugarColumn(IsPrimaryKey = true, Length = 50)]
public string Id { get; set; } = "default";
[SugarColumn(Length = 1000, IsNullable = true)]
public string Endpoint { get; set; }
[SugarColumn(Length = 1000, IsNullable = true)]
public string BasePath { get; set; } = "/dysync";
/// <summary>本应用写入中转文件的本地绝对路径。</summary>
[SugarColumn(Length = 1000, IsNullable = true)]
public string LocalStagingPath { get; set; } = string.Empty;
/// <summary>OpenList 中映射到 LocalStagingPath 的源挂载根目录。</summary>
[SugarColumn(Length = 1000, IsNullable = true)]
public string SourcePath { get; set; } = string.Empty;
/// <summary>旧草稿字段,仅用于平滑升级;新版本统一使用 BasePath 作为目标目录。</summary>
[SugarColumn(Length = 1000, IsNullable = true)]
public string DestinationPath { get; set; } = string.Empty;
[SugarColumn(Length = 500, IsNullable = true)]
public string UserName { get; set; }
[SugarColumn(Length = -1, IsNullable = true)]
public string ProtectedPassword { get; set; }
[SugarColumn(IsNullable = true)]
public DateTime? LastTestedAt { get; set; }
[SugarColumn(Length = 1000, IsNullable = true)]
public string LastTestMessage { get; set; }
}
}