Learn.VideoAnalysis/VideoAnalysisCore/Model/VideoQuestion.cs

67 lines
1.9 KiB
C#

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.Enum;
using VideoAnalysisCore.Model.Interface;
using Whisper.net;
namespace VideoAnalysisCore.Model
{
/// <summary>
/// 视频片段试题
/// </summary>
[SugarTable("videoquestion")]
public class VideoQuestion : IDB
{
/// <summary>
/// id
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
/// <summary>
/// 视频任务id
/// </summary>
public long VideoTaskId { get; set; }
/// <summary>
/// 视频阶段id
/// <para>隶属于<see cref="VideoKonwPoint.StageId"/></para>
/// </summary>
public long StageId { get; set; }
/// <summary>
/// 题干id
/// <para>[用于多个一个题干多个问题]</para>
/// </summary>
public long TopicId { get; set; }
/// <summary>
/// PPT切图地址
/// </summary>
[SugarColumn(Length =100)]
public string? PPTImageUrl { get; set; }
/// <summary>
/// 题干
/// </summary>
[SugarColumn(ColumnDataType ="text")]
public string? TopicStem { get; set; }
/// <summary>
/// 问题(设问)
/// </summary>
public string? Question { get; set; }
/// <summary>
/// 试题类型
/// <para>[填空题/判断题/选择题/解答题]</para>
/// </summary>
[SugarColumn(Length = 10,IsNullable =true)]
public string? Type { get; set; }
/// <summary>
/// 试题开始时间
/// </summary>
public int StartTime { get; set; }
}
}