using Microsoft.AspNetCore.Mvc; using New_College.Common; using New_College.Common.Helper; using New_College.IServices; using New_College.Services; using System.IO; using System.Threading.Tasks; namespace New_College.Controllers { /// /// 健康检查 /// [Route("[controller]")] [ApiController] public class HealthCheckController : ControllerBase { private readonly IT_EnrollmentPlaneServices t_EnrollmentPlane; private readonly ID_LongIdMapServices d_LongIdMapServices; private readonly IV_CustomerInfoServices v_CustomerInfoServices; public HealthCheckController(IT_EnrollmentPlaneServices t_EnrollmentPlaneServices, ID_LongIdMapServices d_LongIdMapServices, IV_CustomerInfoServices _CustomerInfoServices) { t_EnrollmentPlane = t_EnrollmentPlaneServices; this.d_LongIdMapServices = d_LongIdMapServices; v_CustomerInfoServices = _CustomerInfoServices; } /// /// 健康检查接口 /// /// [HttpGet] public IActionResult Get() { return Ok(); } /// /// /// /// /// //[HttpGet("GetCode")] //public IActionResult GetCode([FromQuery] string code) //{ // var str = UniversityCodeConvertRules.UniversityCodeConvertRulesMap(code); // return Ok(str); //} /// /// /// /// [HttpPost] public async Task Post() { // return t_EnrollmentPlane.Import(); // return t_EnrollmentPlane.Importuniverbaseinfo(); // return t_EnrollmentPlane.universitydetailupdate(); //return t_EnrollmentPlane.tradeupadte(); // return t_EnrollmentPlane.categoryupdate(); //return d_LongIdMapServices.UpdateUniveristyInf(); //更新院校分数线 // await d_LongIdMapServices.UpdateSchoolScoreLine23("河南省","理科"); // await d_LongIdMapServices.PlanNeedProSync("山东省", 2024, "综合", "普通类二段"); //await d_LongIdMapServices.SyncnewNeedProSData("山东省", 2024, "综合", "普通类二段"); // await v_CustomerInfoServices.CustomeBillExport(); await d_LongIdMapServices.UpdatePlanProInf("山东省"); return true; } } }