1、删除视频,永不下载
2、去重-优先级 3、视频合成优化 4、其他优化
This commit is contained in:
+41
-24
@@ -3,34 +3,51 @@
|
||||
/// <summary>
|
||||
/// 任务配置实体
|
||||
/// </summary>
|
||||
//public class JobConfig
|
||||
//{
|
||||
// public JobConfig(Type jobType, string jobKey, string triggerKey, string description)
|
||||
// {
|
||||
// JobType = jobType ?? throw new ArgumentNullException(nameof(jobType));
|
||||
// JobKey = jobKey ?? throw new ArgumentNullException(nameof(jobKey));
|
||||
// TriggerKey = triggerKey ?? throw new ArgumentNullException(nameof(triggerKey));
|
||||
// Description = description ?? throw new ArgumentNullException(nameof(description));
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// 任务类型
|
||||
// /// </summary>
|
||||
// public Type JobType { get; }
|
||||
|
||||
// /// <summary>
|
||||
// /// 任务Key
|
||||
// /// </summary>
|
||||
// public string JobKey { get; }
|
||||
|
||||
// /// <summary>
|
||||
// /// 触发器Key
|
||||
// /// </summary>
|
||||
// public string TriggerKey { get; }
|
||||
|
||||
// /// <summary>
|
||||
// /// 任务描述
|
||||
// /// </summary>
|
||||
// public string Description { get; }
|
||||
//}
|
||||
|
||||
|
||||
public class JobConfig
|
||||
{
|
||||
public Type JobType { get; }
|
||||
public string JobKey { get; }
|
||||
public string TriggerKey { get; }
|
||||
public string Description { get; }
|
||||
|
||||
public JobConfig(Type jobType, string jobKey, string triggerKey, string description)
|
||||
{
|
||||
JobType = jobType ?? throw new ArgumentNullException(nameof(jobType));
|
||||
JobKey = jobKey ?? throw new ArgumentNullException(nameof(jobKey));
|
||||
TriggerKey = triggerKey ?? throw new ArgumentNullException(nameof(triggerKey));
|
||||
Description = description ?? throw new ArgumentNullException(nameof(description));
|
||||
JobType = jobType ?? throw new ArgumentNullException(nameof(jobType), "任务类型不能为空");
|
||||
JobKey = jobKey ?? throw new ArgumentNullException(nameof(jobKey), "任务Key不能为空");
|
||||
TriggerKey = triggerKey ?? throw new ArgumentNullException(nameof(triggerKey), "触发器Key不能为空");
|
||||
Description = description ?? throw new ArgumentNullException(nameof(description), "任务描述不能为空");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 任务类型
|
||||
/// </summary>
|
||||
public Type JobType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务Key
|
||||
/// </summary>
|
||||
public string JobKey { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 触发器Key
|
||||
/// </summary>
|
||||
public string TriggerKey { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务描述
|
||||
/// </summary>
|
||||
public string Description { get; }
|
||||
}
|
||||
}
|
||||
|
||||
+15
-13
@@ -4,24 +4,26 @@ namespace dy.net.dto
|
||||
{
|
||||
public enum VideoTypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
///喜欢的
|
||||
/// </summary>
|
||||
[Description("喜欢的")]
|
||||
Favorite = 1,
|
||||
dy_favorite = 1,
|
||||
/// <summary>
|
||||
///收藏的
|
||||
/// </summary>
|
||||
[Description("收藏的")]
|
||||
Collect = 2,
|
||||
dy_collects = 2,
|
||||
/// <summary>
|
||||
/// 关注的
|
||||
/// </summary>
|
||||
[Description("关注的")]
|
||||
UperPost = 3,
|
||||
dy_follows = 3,
|
||||
/// <summary>
|
||||
/// 图文视频,无用了,但是不能删...
|
||||
/// </summary>
|
||||
[Description("图片视频")]
|
||||
ImageVideo = 4
|
||||
}
|
||||
|
||||
|
||||
public enum QuartzJobTypeEnum
|
||||
{
|
||||
[Description("[Favorite]")]
|
||||
Favorite = 1,
|
||||
[Description("[Collect]")]
|
||||
Collect = 2,
|
||||
[Description("[Followed]")]
|
||||
Followed = 3
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user