---数据导入

develop
易大师 2021-06-28 22:25:19 +08:00
parent 3918f44d0c
commit 6ed7a49fa4
2 changed files with 25 additions and 0 deletions

View File

@ -1,4 +1,6 @@
using Microsoft.AspNetCore.Mvc;
using New_College.IServices;
using System.Threading.Tasks;
namespace New_College.Controllers
{
@ -9,6 +11,12 @@ namespace New_College.Controllers
[ApiController]
public class HealthCheckController : ControllerBase
{
private readonly IT_EnrollmentPlaneServices t_EnrollmentPlane;
public HealthCheckController(IT_EnrollmentPlaneServices t_EnrollmentPlaneServices)
{
t_EnrollmentPlane = t_EnrollmentPlaneServices;
}
/// <summary>
/// 健康检查接口
/// </summary>
@ -18,5 +26,16 @@ namespace New_College.Controllers
{
return Ok();
}
/// <summary>
///
/// </summary>
/// <returns></returns>
[HttpPost]
public Task<bool> Post()
{
return t_EnrollmentPlane.Import();
}
}
}

View File

@ -912,6 +912,12 @@
</summary>
<returns></returns>
</member>
<member name="M:New_College.Controllers.HealthCheckController.Post">
<summary>
</summary>
<returns></returns>
</member>
<member name="T:New_College.Controllers.ImgController">
<summary>
图片管理