b328e82eb2
- 新增视频预览:VideoPlayer 组件、VideoController/DyCollectVideoService/Repository、VideoPageRequestDTO 对应后端改动 - 新增数据看板:workplace/statics.vue、RecordTable、相关 store/http/axios 改动 - 新增下载配置:DownloadConfigService、ConfigController、AppSet.vue、AppConfig - 其他:DyHttpClientService / 同步 Job(Collect, Favorit) / Cookie 表 / CommonService / ServiceExtension 的配套调整 - 仓库卫生:.gitignore 追加 feiniu 过滤;运维脚本归档到 docs/scripts/
61 lines
1.9 KiB
C#
61 lines
1.9 KiB
C#
using SqlSugar;
|
|
|
|
namespace dy.net.model
|
|
{
|
|
|
|
[SugarTable(TableName = "dy_app_config")]
|
|
public class AppConfig
|
|
{
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true,Length =100)]
|
|
public string Id { get; set; }
|
|
|
|
[SugarColumn(Length =200,IsNullable =true)]
|
|
public string Cron { get; set; }
|
|
|
|
/// <summary>
|
|
/// 每次查询数量
|
|
/// </summary>
|
|
public int BatchCount { get; set; } = 10;
|
|
|
|
/// <summary>
|
|
/// 是否启用自动下载(默认false,不自动下载)
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public bool? EnableAutoDownload { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// 下载时间范围(天数,例如:30表示只下载最近30天的视频,0表示不限制)
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public int? DownloadDaysRange { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 作者白名单(JSON数组,例如:["作者1","作者2"],为空则不限制)
|
|
/// </summary>
|
|
[SugarColumn(Length = 2000, IsNullable = true)]
|
|
public string AuthorWhitelist { get; set; }
|
|
|
|
/// <summary>
|
|
/// 作者黑名单(JSON数组,例如:["作者1","作者2"],为空则不限制)
|
|
/// </summary>
|
|
[SugarColumn(Length = 2000, IsNullable = true)]
|
|
public string AuthorBlacklist { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否下载喜欢的视频(默认false)
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public bool? DownloadFavorite { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// 是否下载收藏的视频(默认false)
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public bool? DownloadCollect { get; set; } = false;
|
|
}
|
|
}
|