using Microsoft.AspNetCore.Mvc; using New_College.Common; using New_College.Common.Helper; using New_College.IServices; 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; public HealthCheckController(IT_EnrollmentPlaneServices t_EnrollmentPlaneServices, ID_LongIdMapServices d_LongIdMapServices) { t_EnrollmentPlane = t_EnrollmentPlaneServices; this.d_LongIdMapServices = d_LongIdMapServices; } /// /// 健康检查接口 /// /// [HttpGet] public IActionResult Get() { return Ok(); } /// /// /// /// /// //[HttpGet("GetCode")] //public IActionResult GetCode([FromQuery] string code) //{ // var str = UniversityCodeConvertRules.UniversityCodeConvertRulesMap(code); // return Ok(str); //} /// /// /// /// [HttpPost] public 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.Import(); // return d_LongIdMapServices.UpdateUniveristyInf(); } } }