新增 视频任务[视频类型]字段
This commit is contained in:
parent
8fd3d4ef4b
commit
2d1c3de69b
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -168,6 +168,7 @@ namespace VideoAnalysisCore.Controllers
|
|||
TagId = req.TagId,
|
||||
MediaName = req.Name,
|
||||
PPTVideoCode = req.PPTVideoCode,
|
||||
VideoType=req.VideoType
|
||||
};
|
||||
//Èë¿â
|
||||
var hashEntries = task.GetType()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Reference in New Issue