using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using TEAMModelOS.Models;
using TEAMModelOS.SDK.DI;
using System.Text.Json;
using TEAMModelOS.SDK.Models;
using Microsoft.AspNetCore.Http;
using TEAMModelOS.SDK.Extension;
using Azure.Cosmos;
using System.Text;
using TEAMModelOS.SDK.DI.AzureCosmos.Inner;
using Microsoft.Extensions.Options;
using Azure.Messaging.ServiceBus;
using Microsoft.Extensions.Configuration;
using HTEXLib.COMM.Helpers;
using TEAMModelOS.SDK;
using System.IdentityModel.Tokens.Jwt;
using TEAMModelOS.Services;
using TEAMModelOS.SDK.Models.Service;
using System.IO;
using System.Dynamic;
using Microsoft.AspNetCore.Authorization;
using Azure.Storage.Blobs.Models;
using static TEAMModelOS.SDK.Models.Teacher;
using System.Web;
using static TEAMModelOS.Controllers.FixDataController;
using static TEAMModelOS.SDK.SchoolService;
using Microsoft.AspNetCore.Hosting;
using TEAMModelOS.Filter;
using TEAMModelOS.Controllers.Third.Xkw;
using Microsoft.Extensions.Primitives;
using System.Net.Http;
using TEAMModelOS.Controllers.Third.Xkw.Sdk;
using TEAMModelOS.SDK.Models.Table;
namespace TEAMModelOS.Controllers.Third.Xkw
{
//
/// 标准OAuth2
///
///
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
//
//[Route("")]
[Route("xkw")]
[ApiController]
public class XkwServiceController: ControllerBase
{
private readonly SnowflakeId _snowflakeId;
private readonly AzureCosmosFactory _azureCosmos;
private readonly DingDing _dingDing;
private readonly Option _option;
private readonly AzureStorageFactory _azureStorage;
private readonly AzureServiceBusFactory _serviceBus;
private readonly AzureRedisFactory _azureRedis;
private readonly CoreAPIHttpService _coreAPIHttpService;
private readonly ThirdApisService _scsApisService;
private readonly HttpTrigger _httpTrigger;
private readonly IWebHostEnvironment _environment;
private readonly XkwAPIHttpService _xkwAPIHttpService;
public IConfiguration _configuration { get; set; }
public XkwServiceController(XkwAPIHttpService xkwAPIHttpService, IWebHostEnvironment environment, AzureCosmosFactory azureCosmos, SnowflakeId snowflakeId, DingDing dingDing, IOptionsSnapshot