新增 视频任务[视频类型]字段

This commit is contained in:
小肥羊 2025-05-26 17:59:32 +08:00
parent 8fd3d4ef4b
commit 2d1c3de69b
6 changed files with 15 additions and 18 deletions

View File

@ -317,8 +317,8 @@ namespace VideoAnalysisCore.AICore.GPT.DeepSeek
Course_Id = 27;
break;
}
//AnalysisVideoQuestions(taskInfo,)
if(taskInfo.VideoType == AttachmentsInfoType.Review)
await AnalysisVideoQuestions(taskInfo);
var captionsArr = JsonSerializer.Deserialize<SenseVoiceRes[]>(taskInfo.Captions);

View File

@ -1,15 +0,0 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VideoAnalysisCore.Common.Expand
{
public static class StartUpExpand
{
}
}

View File

@ -168,6 +168,7 @@ namespace VideoAnalysisCore.Controllers
TagId = req.TagId,
MediaName = req.Name,
PPTVideoCode = req.PPTVideoCode,
VideoType=req.VideoType
};
//Èë¿â
var hashEntries = task.GetType()

View File

@ -121,6 +121,10 @@ namespace VideoAnalysisCore.Controllers.Dto
/// </summary>
public TaskTypeEnum? Type { get; set; }
/// <summary>
/// 视频类型
/// </summary>
public AttachmentsInfoType? VideoType { get; set; }
/// <summary>
/// 自定义值 任务完成后附带通知
/// </summary>
public string Tag { get; set; } = string.Empty;

View File

@ -95,7 +95,7 @@ namespace VideoAnalysisCore.Controllers
TaskType = req.TaskType,
SubjectType = req.SubjectType,
VideoUrl =s.VideoUrl,
CallBackUrl=s.CallBackUrl
CallBackUrl=s.CallBackUrl,
};
nodePackages.Add(np);
if (s.AttachmentsInfoType == AttachmentsInfoType.PPT)
@ -117,6 +117,7 @@ namespace VideoAnalysisCore.Controllers
MediaUrl =s.VideoUrl,
MediaName = s.VideoName,
PPTVideoCode = pptCode,
VideoType =s.AttachmentsInfoType
});
}
await nodePackageInfoDB.InsertRangeAsync(nodePackages);

View File

@ -59,6 +59,12 @@ namespace VideoAnalysisCore.Model
[SugarColumn(IsNullable = true)]
public TaskTypeEnum? Type { get; set; }
/// <summary>
/// 视频类型
/// <para>常规,教研,PPT...</para>
/// </summary>
[SugarColumn(IsNullable = true)]
public AttachmentsInfoType? VideoType { get; set; }
/// <summary>
/// 自定义值 任务完成后附带通知
/// </summary>
[SugarColumn(Length = 500, IsNullable = true)]