优化 补全部分注入的注释

This commit is contained in:
小肥羊 2026-01-13 17:49:37 +08:00
parent d52504a3a0
commit cf44785ae9
7 changed files with 24 additions and 4 deletions

View File

@ -10,6 +10,11 @@ namespace Learn.VideoAnalysis.Expand
{
public static class AuthorizeExpand
{
/// <summary>
/// 框架API授权
/// </summary>
/// <param name="services"></param>
/// <returns></returns>
public static IServiceCollection AddPermissionAuthentication(this IServiceCollection services)
{
services.AddAuthentication()

View File

@ -46,18 +46,20 @@ namespace Learn.VideoAnalysis
builder.Services.AddPermissionAuthentication();
builder.Services.AddSqlSugarExpand();
builder.Services.AddRedisExpand();
//工作流
builder.Services.AddSimpleTexOcrClient();
builder.Services.AddDownloadFileExpand();
builder.Services.AddFFMPGEExpand();
builder.Services.AddAlibabaCloudVod();
builder.Services.AddAliyunOSS();
//语音转写
builder.Services.AddSenseVoiceExpand();
builder.Services.AddFunASRNanoExpand();
builder.Services.AddSherpaVadExpand();
//builder.Services.AddSpeakerAI();
//定时任务
builder.Services.AddCoravel();
//SenseVoice.Init();
//Òì³£¹ýÂËÆ÷
builder.Services.AddControllersWithViews(options =>
{

View File

@ -22,7 +22,7 @@ namespace VideoAnalysisCore.AICore.FFMPGE
public static class FFMPGEExpand
{
/// <summary>
/// 添加跨域拓展
/// 添加FFPMPEG拓展
/// </summary>
/// <param name="services"></param>
public static void AddFFMPGEExpand(this IServiceCollection services)

View File

@ -51,7 +51,7 @@ namespace VideoAnalysisCore.Common.Expand
public static class AliyunOSSExpand
{
/// <summary>
/// 使用阿里云 vod拓展
/// 使用阿里云 OSS拓展
/// </summary>
/// <param name="service"></param>
/// <returns></returns>

View File

@ -221,6 +221,11 @@ namespace VideoAnalysisCore.Common.Expand
/// </summary>
public static class SSimpLetexExtensions
{
/// <summary>
/// 公式图片识别
/// </summary>
/// <param name="services"></param>
/// <returns></returns>
public static IServiceCollection AddSimpleTexOcrClient(this IServiceCollection services)
{
services.AddSingleton<SimpLetexClient>();

View File

@ -19,6 +19,10 @@ namespace VideoAnalysisCore.Common.Expand
public static class SqlSugarExpand
{
public static bool ShowSQL = false;
/// <summary>
/// 数据库ORM拓展
/// </summary>
/// <param name="services"></param>
public static void AddSqlSugarExpand(this IServiceCollection services)
{

View File

@ -88,6 +88,10 @@ namespace VideoAnalysisCore.Common
Console.WriteLine($"{DateTime.Now}=>初始化 Redis任务队列");
service.AddSingleton<RedisInit>();
}
/// <summary>
/// redis连接拓展(包含消息队列任务)
/// </summary>
/// <param name="service"></param>
public static void AddRedisExpand(this IServiceCollection service)
{
Console.WriteLine($"{DateTime.Now}=>初始化 Redis");