新增 视频任务[视频类型]字段
This commit is contained in:
parent
8fd3d4ef4b
commit
2d1c3de69b
|
|
@ -317,8 +317,8 @@ namespace VideoAnalysisCore.AICore.GPT.DeepSeek
|
||||||
Course_Id = 27;
|
Course_Id = 27;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if(taskInfo.VideoType == AttachmentsInfoType.Review)
|
||||||
//AnalysisVideoQuestions(taskInfo,)
|
await AnalysisVideoQuestions(taskInfo);
|
||||||
|
|
||||||
|
|
||||||
var captionsArr = JsonSerializer.Deserialize<SenseVoiceRes[]>(taskInfo.Captions);
|
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,
|
TagId = req.TagId,
|
||||||
MediaName = req.Name,
|
MediaName = req.Name,
|
||||||
PPTVideoCode = req.PPTVideoCode,
|
PPTVideoCode = req.PPTVideoCode,
|
||||||
|
VideoType=req.VideoType
|
||||||
};
|
};
|
||||||
//Èë¿â
|
//Èë¿â
|
||||||
var hashEntries = task.GetType()
|
var hashEntries = task.GetType()
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,10 @@ namespace VideoAnalysisCore.Controllers.Dto
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public TaskTypeEnum? Type { get; set; }
|
public TaskTypeEnum? Type { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// 视频类型
|
||||||
|
/// </summary>
|
||||||
|
public AttachmentsInfoType? VideoType { get; set; }
|
||||||
|
/// <summary>
|
||||||
/// 自定义值 任务完成后附带通知
|
/// 自定义值 任务完成后附带通知
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string Tag { get; set; } = string.Empty;
|
public string Tag { get; set; } = string.Empty;
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ namespace VideoAnalysisCore.Controllers
|
||||||
TaskType = req.TaskType,
|
TaskType = req.TaskType,
|
||||||
SubjectType = req.SubjectType,
|
SubjectType = req.SubjectType,
|
||||||
VideoUrl =s.VideoUrl,
|
VideoUrl =s.VideoUrl,
|
||||||
CallBackUrl=s.CallBackUrl
|
CallBackUrl=s.CallBackUrl,
|
||||||
};
|
};
|
||||||
nodePackages.Add(np);
|
nodePackages.Add(np);
|
||||||
if (s.AttachmentsInfoType == AttachmentsInfoType.PPT)
|
if (s.AttachmentsInfoType == AttachmentsInfoType.PPT)
|
||||||
|
|
@ -117,6 +117,7 @@ namespace VideoAnalysisCore.Controllers
|
||||||
MediaUrl =s.VideoUrl,
|
MediaUrl =s.VideoUrl,
|
||||||
MediaName = s.VideoName,
|
MediaName = s.VideoName,
|
||||||
PPTVideoCode = pptCode,
|
PPTVideoCode = pptCode,
|
||||||
|
VideoType =s.AttachmentsInfoType
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
await nodePackageInfoDB.InsertRangeAsync(nodePackages);
|
await nodePackageInfoDB.InsertRangeAsync(nodePackages);
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,12 @@ namespace VideoAnalysisCore.Model
|
||||||
[SugarColumn(IsNullable = true)]
|
[SugarColumn(IsNullable = true)]
|
||||||
public TaskTypeEnum? Type { get; set; }
|
public TaskTypeEnum? Type { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// 视频类型
|
||||||
|
/// <para>常规,教研,PPT...</para>
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(IsNullable = true)]
|
||||||
|
public AttachmentsInfoType? VideoType { get; set; }
|
||||||
|
/// <summary>
|
||||||
/// 自定义值 任务完成后附带通知
|
/// 自定义值 任务完成后附带通知
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(Length = 500, IsNullable = true)]
|
[SugarColumn(Length = 500, IsNullable = true)]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue