b328e82eb2
- 新增视频预览:VideoPlayer 组件、VideoController/DyCollectVideoService/Repository、VideoPageRequestDTO 对应后端改动 - 新增数据看板:workplace/statics.vue、RecordTable、相关 store/http/axios 改动 - 新增下载配置:DownloadConfigService、ConfigController、AppSet.vue、AppConfig - 其他:DyHttpClientService / 同步 Job(Collect, Favorit) / Cookie 表 / CommonService / ServiceExtension 的配套调整 - 仓库卫生:.gitignore 追加 feiniu 过滤;运维脚本归档到 docs/scripts/
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace dy.net.dto
|
|
{
|
|
public class VideoPageRequestDTO: PageRequestDto
|
|
{
|
|
// 3. 引用类型(string)如果允许为null,显式声明为 string?
|
|
public string? Tag { get; set; }
|
|
|
|
// 支持多个标签筛选
|
|
public List<string>? Tags { get; set; }
|
|
|
|
public string? Author { get; set; }
|
|
|
|
public string? ViedoType { get; set; }
|
|
|
|
// 4. 泛型集合(List<string>)允许为null,声明为 List<string>?
|
|
public List<string>? Dates { get; set; }
|
|
|
|
/// <summary>
|
|
/// 删除状态筛选:null=全部,true=已删除(videoSavePath为空),false=未删除(videoSavePath不为空)
|
|
/// </summary>
|
|
public bool? IsDeleted { get; set; }
|
|
|
|
/// <summary>
|
|
/// 排序字段:syncTime-同步时间, viedoType-同步类型, viedoCate-视频类型, author-作者, videoTitle-视频名称, dyUser-用户
|
|
/// </summary>
|
|
public string? SortField { get; set; }
|
|
|
|
/// <summary>
|
|
/// 排序方向:asc-升序, desc-降序
|
|
/// </summary>
|
|
public string? SortOrder { get; set; }
|
|
}
|
|
|
|
|
|
public class PageRequestDto
|
|
{
|
|
|
|
public int PageIndex { get; set; }
|
|
|
|
public int PageSize { get; set; } = 10;
|
|
}
|
|
}
|