using SqlSugar; using System.ComponentModel.DataAnnotations; using System.Net; using System.Text.Json; using UserCenter.Model.Enum; using VideoAnalysisCore.AICore.GPT.Dto; using VideoAnalysisCore.AICore.SherpaOnnx; using VideoAnalysisCore.Model.Interface; using Whisper.net; namespace VideoAnalysisCore.Model { /// /// 视频片段知识点 /// [SugarTable("videokonwpoint")] public class VideoKonwPoint : IDB { /// /// id /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public long Id { get; set; } /// /// 视频任务id /// public long VideoTaskId { get; set; } /// /// 自定义Id [任务视频自定义id] /// /// [SugarColumn(Length = 500, IsNullable = true)] public string? TagId { get; set; } /// /// 开始时间 /// [SugarColumn( IsNullable = true)] public float? StartTime { get; set; } /// /// 结束时间 /// [SugarColumn(IsNullable = true)] public float? EndTime { get; set; } /// /// 持续时间 /// [SugarColumn(IsIgnore = true)] public float? KeepTime => (EndTime ?? 0) - StartTime ?? 0; /// /// 主题 /// public string? Theme { get; set; } /// /// 知识点 /// public string? KnowPoint { get; set; } /// /// 知识点ID /// public string? KnowPointId { get; set; } /// /// 内容总结 /// public string? Content { get; set; } } }