using Azure.Messaging.ServiceBus; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.Cosmos; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Options; using StackExchange.Redis; using System; using System.Collections.Generic; using System.Net.Http; using System.Text.Json; using System.Threading.Tasks; using TEAMModelBI.Tool; using TEAMModelOS.Models; using TEAMModelOS.SDK; using TEAMModelOS.SDK.DI; using TEAMModelOS.SDK.Extension; using TEAMModelOS.SDK.Models; using TEAMModelOS.SDK.Models.Cosmos.Teacher; using TEAMModelOS.SDK.Models.Service; using static TEAMModelOS.SDK.Models.Teacher; namespace TEAMModelBI.Controllers.BITest { [Route("ies5test")] [ApiController] public class Ies5TestController : ControllerBase { private readonly AzureCosmosFactory _azureCosmos; private readonly AzureRedisFactory _azureRedis; private readonly AzureServiceBusFactory _serviceBus; private readonly DingDing _dingDing; private readonly Option _option; private readonly AzureStorageFactory _azureStorage; private readonly IWebHostEnvironment _environment; //读取文件 //读取配置文件 private readonly IConfiguration _configuration; private readonly CoreAPIHttpService _coreAPIHttpService; private readonly IHttpClientFactory _httpClient; public Ies5TestController(AzureCosmosFactory azureCosmos, AzureRedisFactory azureRedis, DingDing dingDing, AzureStorageFactory azureStorage, IOptionsSnapshot