完成合集、短剧

This commit is contained in:
jianzhichu
2026-01-22 08:33:59 +08:00
parent 7175b3858a
commit e270397334
51 changed files with 3502 additions and 1411 deletions
+4
View File
@@ -19,6 +19,10 @@ namespace dy.net.model.dto
public string? Tag { get; set; }
public string? SortField { get; set; }
public string? SortOrder { get; set; }
}
+40
View File
@@ -0,0 +1,40 @@
namespace dy.net.model.dto
{
public class VideoChartItemDto
{
/// <summary>
/// 日期,格式MM-DD(如01-21
/// </summary>
public string Date { get; set; } = string.Empty;
/// <summary>
/// 我喜欢的数量
/// </summary>
public int Favorite { get; set; }
/// <summary>
/// 我收藏的数量
/// </summary>
public int Collect { get; set; }
/// <summary>
/// 我关注的数量
/// </summary>
public int Follow { get; set; }
/// <summary>
/// 图文视频数量
/// </summary>
public int Graphic { get; set; }
/// <summary>
/// 合集数量
/// </summary>
public int Mix { get; set; }
/// <summary>
/// 短剧数量
/// </summary>
public int Series { get; set; }
}
}
+5
View File
@@ -31,11 +31,16 @@
public string VideoFollowSize { get; set; }
public string VideoFavoriteSize { get; set; }
public string VideoMixSize { get; set; }
public string VideoSeriesSize { get; set; }
public long CollectCount { get; set; }
public long FavoriteCount { get; set; }
public long FollowCount { get; set; }
public long MixCount { get; set; }
public long SeriesCount { get; set; }
public long GraphicVideoCount { get; set; }
public string GraphicVideoSize { get; set; }
+2 -2
View File
@@ -33,7 +33,7 @@ namespace dy.net.model.entity
/// <summary>
/// 是否博主视频直接放一个根目录,不另外按名字建文件夹
/// </summary>
public bool UperSaveTogether { get; set; }
//public bool UperSaveTogether { get; set; }
/// <summary>
/// 是否下载图片视频
/// </summary>
@@ -68,7 +68,7 @@ namespace dy.net.model.entity
/// <summary>
/// 图文视频是否单独存放,否的话则按原类型存储位置存放,比如收藏夹、喜欢等
/// </summary>
public bool ImageViedoSaveAlone { get; set; }
//public bool ImageViedoSaveAlone { get; set; }
+9 -1
View File
@@ -35,10 +35,12 @@ namespace dy.net.model.entity
/// <summary>
/// 封面
/// </summary>
[SugarColumn(Length =500,IsNullable =true)]
public string CoverUrl { get; set; }
/// <summary>
/// 保存文件夹
/// </summary>
[SugarColumn(Length =500,IsNullable =true)]
public string SaveFolder { get; set; }
/// <summary>
/// 是否开启同步
@@ -52,10 +54,16 @@ namespace dy.net.model.entity
public DateTime CreateTime { get; set; }
public DateTime UpdateTime { get; set; }
[SugarColumn(IsNullable =true)]
public DateTime? UpdateTime { get; set; }
/// <summary>
/// 是否已完结
/// </summary>
public bool IsEnd { get; set; }
/// <summary>
/// 总集数
/// </summary>
public int Total { get; set; }
}
}
+24 -12
View File
@@ -12,7 +12,7 @@ namespace dy.net.model.entity
/// <summary>
/// 用户抖音ID,对应我关注信息里面的myself_user_id
/// </summary>
[SugarColumn(Length =500,IsNullable =true)]
[SugarColumn(Length = 500, IsNullable = true)]
public string MyUserId { get; set; }
/// <summary>
/// 用户描述
@@ -21,42 +21,42 @@ namespace dy.net.model.entity
/// <summary>
/// 用户抖音Cookie
/// </summary>
[SugarColumn(Length =-1,IsNullable =true)]
[SugarColumn(Length = -1, IsNullable = true)]
public string Cookies { get; set; }
/// <summary>
/// 存储路径(收藏视频的存储路径)
/// </summary>
[SugarColumn(Length =255,IsNullable =true)]
[SugarColumn(Length = 255, IsNullable = true)]
public string SavePath { get; set; }
/// <summary>
/// 是否按收藏夹文件夹来存储视频
/// </summary>
public bool UseCollectFolder { get; set; }
public bool UseCollectFolder { get; set; }
/// <summary>
/// 是否下载合集
/// </summary>
public bool DownMix { get; set; }
public bool DownMix { get; set; }
/// <summary>
/// 是否下载短剧
/// </summary>
public bool DownSeries { get; set; }
public bool DownSeries { get; set; }
/// <summary>
/// 1 开启同步 0 关闭同步
/// </summary>
public int Status { get; set; }
public int Status { get; set; }
/// <summary>
/// 同步喜欢的视频需要sec_user_id
/// </summary>
[SugarColumn(Length =500,IsNullable =true)]
[SugarColumn(Length = 500, IsNullable = true)]
public string SecUserId { get; set; }
/// <summary>
/// 喜欢的视频存储路径
/// </summary>
[SugarColumn(Length =500,IsNullable =true)]
[SugarColumn(Length = 500, IsNullable = true)]
public string FavSavePath { get; set; }
///// <summary>
@@ -95,8 +95,8 @@ namespace dy.net.model.entity
/// <summary>
/// 图片视频存储路径
/// </summary>
[SugarColumn(Length = 500, IsNullable = true)]
public string ImgSavePath { get; set; }
//[SugarColumn(Length = 500, IsNullable = true)]
//public string ImgSavePath { get; set; }
/// <summary>
/// 抖音返回的状态码,主要用于判断Cookie是否有效
@@ -109,11 +109,23 @@ namespace dy.net.model.entity
/// </summary>
[SugarColumn(Length = 100, IsNullable = true)]
public string StatusMsg { get; set; }
/// <summary>
/// 是否统一一个路径(savepath)
/// </summary>
public bool useSinglePath { get; set; }
[SugarColumn(Length = 100, IsNullable = true, ColumnName = "useSinglePath")]
public bool UseSinglePath { get; set; } = true;//默认true
///// <summary>
///// 合集存储路径
///// </summary>
//[SugarColumn(Length = 500, IsNullable = true)]
//public string MixPath { get; set; }
///// <summary>
///// 短剧存储路径
///// </summary>
//[SugarColumn(Length = 500, IsNullable = true)]
//public string SeriesPath { get; set; }
}
}
+6
View File
@@ -165,5 +165,11 @@ namespace dy.net.model.entity
/// </summary>
[SugarColumn(Length =200,IsNullable =true)]
public string CateId { get; set; }
/// <summary>
/// 自定义收藏夹、合集、短剧 绑定的XId
/// </summary>
[SugarColumn(Length = 200, IsNullable = true)]
public string CateXId { get; set; }
}
}
+5 -5
View File
@@ -169,11 +169,11 @@ namespace dy.net.model.response
//[JsonProperty("share_info")]
//public DouyinShareInfo ShareInfo { get; set; }
///// <summary>
///// 统计信息
///// </summary>
//[JsonProperty("statis")]
//public DouyinMixStatis Statis { get; set; }
/// <summary>
/// 统计信息
/// </summary>
[JsonProperty("statis")]
public DouyinMixStatis Statis { get; set; }
///// <summary>
///// 状态信息
+17 -17
View File
@@ -167,8 +167,8 @@ namespace dy.net.model.response
//[JsonProperty("share_info")]
//public DouyinDramaShareInfo ShareInfo { get; set; }
//[JsonProperty("stats")]
//public DouyinDramaStats Stats { get; set; }
[JsonProperty("stats")]
public DouyinDramaStats Stats { get; set; }
//[JsonProperty("status")]
//public DouyinDramaStatus DramaStatus { get; set; }
@@ -1087,26 +1087,26 @@ namespace dy.net.model.response
/// <summary>
/// 抖音短剧统计信息
/// </summary>
//public class DouyinDramaStats
//{
// [JsonProperty("collect_vv")]
// public int CollectViewCount { get; set; }
public class DouyinDramaStats
{
[JsonProperty("collect_vv")]
public int CollectViewCount { get; set; }
// [JsonProperty("current_episode")]
// public int CurrentEpisode { get; set; }
[JsonProperty("current_episode")]
public int CurrentEpisode { get; set; }
// [JsonProperty("last_added_item_time")]
// public long LastEpisodeAddTimestamp { get; set; }
[JsonProperty("last_added_item_time")]
public long LastEpisodeAddTimestamp { get; set; }
// [JsonProperty("play_vv")]
// public long TotalPlayViewCount { get; set; }
[JsonProperty("play_vv")]
public long TotalPlayViewCount { get; set; }
// [JsonProperty("total_episode")]
// public int TotalEpisodeCount { get; set; }
[JsonProperty("total_episode")]
public int TotalEpisodeCount { get; set; }
// [JsonProperty("updated_to_episode")]
// public int LatestEpisodeCount { get; set; }
//}
[JsonProperty("updated_to_episode")]
public int LatestEpisodeCount { get; set; }
}
/// <summary>
/// 抖音短剧状态信息
+53 -53
View File
@@ -2,7 +2,6 @@
using System.Collections.Generic;
namespace dy.net.model.response
{
/// <summary>
/// 视频列表
@@ -245,8 +244,8 @@ namespace dy.net.model.response
//[JsonProperty("media_type")]
//public int MediaType { get; set; }
//[JsonProperty("mix_info")]
//public MixInfo MixInfo { get; set; }
[JsonProperty("mix_info")]
public MixInfo MixInfo { get; set; }
[JsonProperty("music")]
public Music Music { get; set; }
@@ -619,59 +618,59 @@ namespace dy.net.model.response
// public int Type { get; set; }
//}
//public class MixInfo
//{
// [JsonProperty("cover_url")]
// public ImageInfo CoverUrl { get; set; }
public class MixInfo
{
[JsonProperty("cover_url")]
public ImageInfo CoverUrl { get; set; }
// [JsonProperty("create_time")]
// public long CreateTime { get; set; }
//[JsonProperty("create_time")]
//public long CreateTime { get; set; }
// [JsonProperty("desc")]
// public string Desc { get; set; }
//[JsonProperty("desc")]
//public string Desc { get; set; }
// [JsonProperty("enable_ad")]
// public int EnableAd { get; set; }
//[JsonProperty("enable_ad")]
//public int EnableAd { get; set; }
// [JsonProperty("extra")]
// public string Extra { get; set; }
//[JsonProperty("extra")]
//public string Extra { get; set; }
// [JsonProperty("ids")]
// public object Ids { get; set; }
//[JsonProperty("ids")]
//public object Ids { get; set; }
// [JsonProperty("is_iaa")]
// public int IsIaa { get; set; }
//[JsonProperty("is_iaa")]
//public int IsIaa { get; set; }
// [JsonProperty("is_serial_mix")]
// public int IsSerialMix { get; set; }
//[JsonProperty("is_serial_mix")]
//public int IsSerialMix { get; set; }
// [JsonProperty("mix_id")]
// public string MixId { get; set; }
//[JsonProperty("mix_id")]
//public string MixId { get; set; }
// [JsonProperty("mix_name")]
// public string MixName { get; set; }
//[JsonProperty("mix_name")]
//public string MixName { get; set; }
// [JsonProperty("mix_pic_type")]
// public int MixPicType { get; set; }
//[JsonProperty("mix_pic_type")]
//public int MixPicType { get; set; }
// [JsonProperty("mix_type")]
// public int MixType { get; set; }
//[JsonProperty("mix_type")]
//public int MixType { get; set; }
// [JsonProperty("share_info")]
// public MixShareInfo ShareInfo { get; set; }
//[JsonProperty("share_info")]
//public MixShareInfo ShareInfo { get; set; }
// [JsonProperty("statis")]
// public MixStatis Statis { get; set; }
[JsonProperty("statis")]
public MixStatis Statis { get; set; }
// [JsonProperty("status")]
// public MixStatus Status { get; set; }
//[JsonProperty("status")]
//public MixStatus Status { get; set; }
// [JsonProperty("update_time")]
// public long UpdateTime { get; set; }
//[JsonProperty("update_time")]
//public long UpdateTime { get; set; }
// [JsonProperty("watched_item")]
// public string WatchedItem { get; set; }
//}
//[JsonProperty("watched_item")]
//public string WatchedItem { get; set; }
}
//public class MixShareInfo
//{
@@ -697,20 +696,20 @@ namespace dy.net.model.response
// public string ShareWeiboDesc { get; set; }
//}
//public class MixStatis
//{
// [JsonProperty("collect_vv")]
// public int CollectVv { get; set; }
public class MixStatis
{
[JsonProperty("collect_vv")]
public int CollectVv { get; set; }
// [JsonProperty("current_episode")]
// public int CurrentEpisode { get; set; }
[JsonProperty("current_episode")]
public int CurrentEpisode { get; set; }
// [JsonProperty("play_vv")]
// public int PlayVv { get; set; }
[JsonProperty("play_vv")]
public int PlayVv { get; set; }
// [JsonProperty("updated_to_episode")]
// public int UpdatedToEpisode { get; set; }
//}
[JsonProperty("updated_to_episode")]
public int UpdatedToEpisode { get; set; }
}
//public class MixStatus
//{
@@ -765,8 +764,8 @@ namespace dy.net.model.response
//[JsonProperty("collect_stat")]
//public int CollectStat { get; set; }
//[JsonProperty("cover_hd")]
//public ImageInfo CoverHd { get; set; }
[JsonProperty("cover_hd")]
public ImageInfo CoverHd { get; set; }
//[JsonProperty("cover_large")]
//public ImageInfo CoverLarge { get; set; }
@@ -1285,4 +1284,5 @@ namespace dy.net.model.response
}
}