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 videoTaskDB; private readonly RedisManager redisManager; private readonly Repository videoKonwDB; private readonly Repository courseInfoDB; public readonly SenseVoice senseVoice; public ApiController(Repository videoTaskDB, IMapper mp, Repository videoKonwDB, Repository courseInfoDB, RedisManager redisManager, SenseVoice senseVoice) { this.videoTaskDB = videoTaskDB; this.mp = mp; this.videoKonwDB = videoKonwDB; this.courseInfoDB = courseInfoDB; this.redisManager = redisManager; this.senseVoice = senseVoice; } } }