using SqlSugar; namespace dy.net.model { [SugarTable(TableName = "dy_collect_video")] public class DyCollectVideo { /// /// /// [SugarColumn(IsPrimaryKey = true)] public string Id { get; set; } [SugarColumn(Length =200,IsNullable =true)] public string DyUserId { get; set; } [SugarColumn(IsIgnore =true)] public string DyUser { get; set; } [SugarColumn(Length =200,IsNullable =true)] public string CookieId { get; set; } /// /// aweme_id /// [SugarColumn(Length =200,IsNullable =true)] public string AwemeId { get; set; } public DateTime SyncTime { get; set; } public DateTime CreateTime { get; set; } /// /// 视频标题 /// [SugarColumn(Length =2000,IsNullable =true)] public string VideoTitle { get; set; } /// /// 标签(分类) /// [SugarColumn(Length =200,IsNullable =true)] public string Tag1 { get; set; } /// /// 标签(分类) /// [SugarColumn(Length =200,IsNullable =true)] public string Tag2 { get; set; } [SugarColumn(Length =200,IsNullable =true)] public string Tag3 { get; set; } ///// ///// 视频描述 ///// //public string VideoDesc { get; set; } /// /// 视频地址(解析会有多个取第一个) /// [SugarColumn(Length =0200,IsNullable =true)] public string VideoUrl { get; set; } /// /// 视频下载后保存路径 /// [SugarColumn(Length =2000,IsNullable =true)] public string VideoSavePath { get; set; } /// /// 视频封面地址 /// [SugarColumn(Length =2000,IsNullable =true)] public string VideoCoverUrl { get; set; } /// /// 视频封面保存路径 /// [SugarColumn(Length =2000,IsNullable =true)] public string VideoCoverSavePath { get; set; } /// /// 作者 /// [SugarColumn(Length =200,IsNullable =true)] public string Author { get; set; } /// /// 作者ID /// [SugarColumn(Length =200,IsNullable =true)] public string AuthorId { get; set; } /// /// 作者头像 /// [SugarColumn(Length =2000,IsNullable =true)] public string AuthorAvatar { get; set; } [SugarColumn(Length =2000,IsNullable =true)] public string AuthorAvatarUrl { get; set; } /// /// 文件hash值唯一值 /// [SugarColumn(Length =200,IsNullable =true)] public string FileHash { get; set; } /// /// 文件大小(字节) /// [SugarColumn(Length =200,IsNullable =true)] public long FileSize { get; set; } /// /// 分辨率(如1920x1080, 3840x2160等) /// [SugarColumn(Length =200,IsNullable =true)] public string Resolution { get; set; } /// /// 作者发布视频日期 /// [SugarColumn(IsIgnore = true)] public string createTimeStr => SyncTime.ToString("yyyy-MM-dd HH:mm:ss"); [SugarColumn(IsIgnore = true)] public string SyncTimeStr => SyncTime.ToString("yyyy-MM-dd HH:mm:ss"); [SugarColumn(Length =200,IsNullable =true)] public string ViedoType { get; set; } [SugarColumn(IsIgnore = true)] public string ViedoTypeStr => ViedoType == "1" ? "喜欢的" : (ViedoType == "2"? "收藏的":"关注的"); [SugarColumn(IsIgnore = true)] public string ViedoCate =>(string.IsNullOrWhiteSpace(Tag1) ? "" : Tag1) + "/" + (string.IsNullOrWhiteSpace(Tag2) ? "" : Tag2); } }