视频增加tag查询

This commit is contained in:
jianzhichu
2026-01-05 21:50:46 +08:00
parent b866cab3d8
commit 4e0169da90
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -17,6 +17,8 @@ namespace dy.net.dto
public List<string>? Dates { get; set; }
public List<string>? Dates2 { get; set; }
public string? Tag { get; set; }
}
+1
View File
@@ -45,6 +45,7 @@ namespace dy.net.repository
//.WhereIF(!string.IsNullOrWhiteSpace(title), x => x.VideoTitle.Contains(title))
.WhereIF(!string.IsNullOrWhiteSpace(dto.Title), x => x.VideoTitle.Contains(dto.Title))
.WhereIF(!string.IsNullOrWhiteSpace(dto.Author), x => x.Author.Contains(dto.Author))
.WhereIF(!string.IsNullOrWhiteSpace(dto.Tag), x => x.Tag1==dto.Tag)
.WhereIF(start.HasValue, x => x.SyncTime >= start.Value)
.WhereIF(end.HasValue, x => x.SyncTime <= end.Value)
.WhereIF(start2.HasValue, x => x.CreateTime >= start2.Value)