Quanxue.Zhanghao.Daochu/LearningOfficer.OA.Common/Dtos/Video/VideoCollectionDetai.cs

245 lines
6.9 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using LearningOfficer.OA.Common.Dtos.Video.ljzk;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Video
{
/// <summary>
/// 课程详情返回数据
/// </summary>
public class GetCourseDetailRsp
{
/// <summary>
/// 视频合集详情
/// </summary>
public VideoCollectionDetai VideoCollectionDetai { get; set; } = null;
/// <summary>
/// 课程-节id默认展开的并选中的节有浏览记录来自浏览记录没有来自第一章第一节
/// </summary>
public long SectionId { get; set; } = 0;
/// <summary>
/// 上次看到字符串格式00:00:00
/// </summary>
public string LastSee { get; set; } = "";
/// <summary>
/// 视频Code默认选中并播放的视频有浏览记录来自浏览记录没有来自第一章第一节第一个视频
///</summary>
public string VideoCode { get; set; } = "";
/// <summary>
/// 视频名称
///</summary>
public string VideoName { get; set; } = "";
/// <summary>
/// 视频总时长(秒)
///</summary>
public decimal VideoSecond { get; set; } = 0;
/// <summary>
/// 视频播放地址
///</summary>
public string VideoUrl { get; set; } = "";
/// <summary>
/// 观看进度时长(秒)
///</summary>
public int SeeSecond { get; set; } = 0;
public long ViewUserCount { get; set; } = 0;
}
/// <summary>
/// 请求蓝鲸智库的视频合集详情(合集)
/// </summary>
public class VideoCollectionDetai
{
///// <summary>
///// 请求蓝鲸智库的视频合集详情(合集)
///// </summary>
///// <param name="request"></param>
///// <returns></returns>
//public Task<VideoCollectionDetai> GetVideoCollectionDetai(CourseDetailRequest request);
///// <summary>
///// 请求蓝鲸智库的内容(节)详情(章节-节)
///// </summary>
///// <param name="request"></param>
///// <returns></returns>
//public Task<VideoSectionDetai> GetVideoSectionDetai(SectionRequest request);
/// <summary>
/// 课程(合集)id
/// </summary>
public long CourseId { get; set; }
/// <summary>
/// 课程(合集)名称
/// </summary>
public string CourseName { get; set; } = null!;
/// <summary>
/// 课程(合集)封面
/// </summary>
public string? CourseCoverUrl { get; set; }
/// <summary>
/// 课程列表
/// </summary>
public List<CourseChapterDetai> CourseChapterDetais { get; set; }
}
/// <summary>
/// 请求蓝鲸智库的视频合集详情(合集-章节)
/// </summary>
public class CourseChapterDetai
{
/// <summary>
/// 章id
/// </summary>
public long ChapterId { get; set; }
/// <summary>
/// 章名称
/// </summary>
public string ChapterName { get; set; } = null!;
/// <summary>
/// 节列表
/// </summary>
public List<CourseSectionDetai> CourseSectionDetais { get; set; }
}
/// <summary>
/// 蓝鲸智库节详情(章节-节)
/// </summary>
public class CourseSectionDetai
{
/// <summary>
/// 节id
/// </summary>
public long SectionId { get; set; }
/// <summary>
/// 节名称
/// </summary>
public string SectionName { get; set; } = null!;
/// <summary>
/// 节视频列表
/// </summary>
public List<SectionVideoList>? sectionVideoLists { get; set; }
/// <summary>
/// 节文件列表
/// </summary>
public List<SectionFilesList>? sectionFilesLists { get; set; }
}
/// <summary>
/// 节视频列表
/// </summary>
public class SectionVideoList
{
/// <summary>
/// 视频id
/// </summary>
public string VideoCode { get; set; }
/// <summary>
/// 视频名称
/// </summary>
public string VideoName { get; set; } = null!;
/// <summary>
/// 视频时长(秒)
/// </summary>
public decimal VideoDuration { get; set; }
/// <summary>
/// 视频播放地址
/// </summary>
public string VideoUrl { get; set; }
/// <summary>
/// 视频封面
/// </summary>
public string VideoCoverUrl { get; set; }
}
/// <summary>
/// 节文件列表
/// </summary>
public class SectionFilesList
{
/// <summary>
/// 文件id
/// </summary>
public long FileId { get; set; }
/// <summary>
/// 文件名称
/// </summary>
public string FileName { get; set; } = null!;
/// <summary>
/// 文件大小kb
/// </summary>
public decimal FileSize { get; set; }
/// <summary>
/// 文件下载地址
/// </summary>
public string FileUrl { get; set; } = null!;
/// <summary>
/// 文件类型 文件 图片 视频 蓝鲸智库返回这三种.具体类型根据文件后缀区分
/// </summary>
public string FileType { get; set; } = null!;
/// <summary>
/// 文件后缀
/// </summary>
public string Exend { get; set; }
}
public partial class PalyInfoResult
{
/// <summary>
/// 播放地址
/// </summary>
public string Url { get; set; }
/// <summary>
/// 时长
/// </summary>
public string Duration { get; set; }
/// <summary>
/// 封面
/// </summary>
public string CoverURL { get; set; }
public List<VideoList> Videos { get; set; }
}
public class VideoList
{
/// <summary>
/// 播放地址
/// </summary>
public string Url { get; set; }
/// <summary>
/// 时长
/// </summary>
public string Duration { get; set; }
/// <summary>
/// 视频流清晰度定义。 FD流畅。
/// LD标清。
/// SD高清。
/// HD超清。
/// OD原画。
/// 2K2K。
/// 4K4K。
/// AUTO自适应码流。
/// </summary>
public string Definition { get; set; }
/// <summary>
/// 视频流清晰度定义
/// </summary>
public string DefinitionName { get; set; }
/// <summary>
/// 视频流格式 mp4 m3u8。
/// </summary>
public string Format { get; set; }
}
}