优化 补全部分注入的注释
This commit is contained in:
parent
d52504a3a0
commit
cf44785ae9
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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 =>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ namespace VideoAnalysisCore.Common.Expand
|
|||
public static class AliyunOSSExpand
|
||||
{
|
||||
/// <summary>
|
||||
/// 使用阿里云 vod拓展
|
||||
/// 使用阿里云 OSS拓展
|
||||
/// </summary>
|
||||
/// <param name="service"></param>
|
||||
/// <returns></returns>
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue