50 lines
1.3 KiB
C#
50 lines
1.3 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("tasklog")]
|
|
public class TaskLog : IDB
|
|
{
|
|
/// <summary>
|
|
/// id
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
public long Id { get; set; }
|
|
/// <summary>
|
|
/// 视频任务id
|
|
/// </summary>
|
|
public long VideoTaskId { get; set; }
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
public DateTime CreateTime { get; set; }
|
|
/// <summary>
|
|
/// 内容
|
|
/// </summary>
|
|
[SugarColumn(ColumnDataType ="text",IsNullable = true)]
|
|
public string? Message { get; set; }
|
|
/// <summary>
|
|
/// 设备id
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public int? DeviceId { get; set; }
|
|
/// <summary>
|
|
/// 工作流名称
|
|
/// </summary>
|
|
[SugarColumn(Length = 50, IsNullable = true)]
|
|
public string? WorkflowName { get; set; }
|
|
}
|
|
}
|