1、去重

2、分享
3、视频播放
4、批量删除,重新下载
5、自定义标题(仅博主视频)
6、授权页面去掉博主添加,新增关注列表
7、图文视频合成优化
8、其他优化
This commit is contained in:
jianzhichu
2025-11-30 00:42:25 +08:00
parent 63b51d211e
commit e6e9ff3cc3
94 changed files with 8155 additions and 1544 deletions
File diff suppressed because it is too large Load Diff
+4 -2
View File
@@ -1259,7 +1259,8 @@ namespace dy.net.dto
/// <summary>
///
/// </summary>
//public int height { get; set; }
[JsonProperty("height")]
public int Height { get; set; }
///// <summary>
/////
///// </summary>
@@ -1272,7 +1273,8 @@ namespace dy.net.dto
/// <summary>
///
/// </summary>
//public int width { get; set; }
[JsonProperty("width")]
public int Width { get; set; }
}
+28 -3
View File
@@ -4,15 +4,19 @@ namespace dy.net.dto
{
public class DouyinVideoPageRequestDto : PageRequestDto
{
// 3. 引用类型(string)如果允许为null,显式声明为 string?
public string? Tag { get; set; }
/// <summary>
/// 标题查询。
/// </summary>
public string? Title { get; set; }
public string? Author { get; set; }
//public string? Name { get; set; }
public string? ViedoType { get; set; }
// 4. 泛型集合(List<string>)允许为null,声明为 List<string>?
public List<string>? Dates { get; set; }
public List<string>? Dates2 { get; set; }
}
@@ -23,4 +27,25 @@ namespace dy.net.dto
public int PageSize { get; set; } = 10;
}
public class FollowRequestDto: PageRequestDto
{
public string FollowUserName { get; set; }
public string MySelfId { get; set; }
}
public class FollowUpdateDto
{
public string Id { get; set; }
public bool OpenSync { get; set; }
public bool FullSync { get; set; }
public string SavePath { get; set; }
}
}
+36
View File
@@ -0,0 +1,36 @@
namespace dy.net.dto
{
/// <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; }
}
}
+31
View File
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace dy.net.dto
{
public class MediaMergeRequest
{
/// <summary>网络图片地址数组(必填)</summary>
public List<string> ImageUrls { get; set; }
/// <summary>网络MP3地址数组(必填)</summary>
public List<string> AudioUrls { get; set; }
/// <summary>每张图片显示时长(秒,默认3秒)</summary>
public int ImageDurationPerSecond { get; set; } = 3;
/// <summary>视频分辨率(格式:1920x1080,默认1920x1080</summary>
public int VideoWidth { get; set; } = 1080;
public int VideoHeight { get; set; } = 1920;
/// <summary>输出视频格式(默认mp4</summary>
public string OutputFormat { get; set; } = "mp4";
/// <summary>视频帧率(默认25</summary>
public int VideoFps { get; set; } = 25;
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace dy.net.dto
{
public class ReDownViedoDto
{
public List<string> Ids { get; set; }
}
}
+26
View File
@@ -0,0 +1,26 @@
namespace dy.net.dto
{
public class VideoTitleDataTemplate
{
/// <summary> 对应 {id} </summary>
public string Id { get; set; }
/// <summary> 对应 {VideoTitle} </summary>
public string VideoTitle { get; set; } = string.Empty;
/// <summary> 对应 {SyncTime}(同步时间) </summary>
//public DateTime? SyncTime { get; set; }
/// <summary> 对应 {ReleaseTime}(发布时间) </summary>
public DateTime? ReleaseTime { get; set; }
/// <summary> 对应 {FileHash}(文件哈希值) </summary>
public string FileHash { get; set; } = string.Empty;
/// <summary> 对应 {Resolution}(分辨率,如 1920x1080 </summary>
public string Resolution { get; set; } = string.Empty;
/// <summary> 对应 {FileSize}(文件大小,单位:字节) </summary>
//public long FileSize { get; set; } = 0;
}
}
+11
View File
@@ -13,4 +13,15 @@ namespace dy.net.dto
[Description("图片视频")]
ImageVideo = 4
}
public enum QuartzJobTypeEnum
{
[Description("[Favorite]")]
Favorite = 1,
[Description("[Collect]")]
Collect = 2,
[Description("[Followed]")]
Followed = 3
}
}