57 lines
1.8 KiB
C#
57 lines
1.8 KiB
C#
|
|
using VideoAnalysisCore.Common;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System.Reflection;
|
|
using MapsterMapper;
|
|
using Mapster;
|
|
using VideoAnalysisCore.AICore.SherpaOnnx;
|
|
using UserCenter.Model.Enum;
|
|
using VideoAnalysisCore.AICore.GPT.ChatGPT;
|
|
using VideoAnalysisCore.AICore.GPT;
|
|
using System.Text.Json;
|
|
using VideoAnalysisCore.Model.Enum;
|
|
using Yitter.IdGenerator;
|
|
using VideoAnalysisCore.Model;
|
|
using Microsoft.AspNetCore.Http;
|
|
using VideoAnalysisCore.Model.Dto;
|
|
using VideoAnalysisCore.Controllers.Dto;
|
|
using VideoAnalysisCore.Common.Expand;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using System.Threading.Tasks;
|
|
using VideoAnalysisCore.Model.À¶¾¨ÖÇ¿â;
|
|
using VideoAnalysisCore.Model.Interface;
|
|
using System.Security.Claims;
|
|
using UserCenter.Model;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using SqlSugar;
|
|
|
|
namespace VideoAnalysisCore.Controllers
|
|
{
|
|
[ApiController]
|
|
[Route("[controller]/[action]")]
|
|
[Authorize(AuthenticationSchemes = Authentication.vdAdmin)]
|
|
public class ApiController : ControllerBase
|
|
{
|
|
private readonly IMapper mp;
|
|
private readonly Repository<VideoTask> videoTaskDB;
|
|
private readonly RedisManager redisManager;
|
|
private readonly Repository<VideoKonwPoint> videoKonwDB;
|
|
private readonly Repository<CourseInfo> courseInfoDB;
|
|
public readonly SenseVoice senseVoice;
|
|
public ApiController(Repository<VideoTask> videoTaskDB,
|
|
IMapper mp, Repository<VideoKonwPoint> videoKonwDB, Repository<CourseInfo> courseInfoDB, RedisManager redisManager, SenseVoice senseVoice)
|
|
{
|
|
this.videoTaskDB = videoTaskDB;
|
|
this.mp = mp;
|
|
this.videoKonwDB = videoKonwDB;
|
|
this.courseInfoDB = courseInfoDB;
|
|
this.redisManager = redisManager;
|
|
this.senseVoice = senseVoice;
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|