添加项目文件。
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using QYZH.InteractiveMagazine.Models.Dto;
|
||||
|
||||
namespace QYZH.InteractiveMagazine.WebApi.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// 健康检查控制器
|
||||
/// </summary>
|
||||
[Route("api/[controller]")]
|
||||
[ApiController]
|
||||
public class HealthController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 健康检查
|
||||
/// </summary>
|
||||
/// <returns>pong</returns>
|
||||
[HttpGet("ping")]
|
||||
public BaseResponse<string> Ping()
|
||||
{
|
||||
return Success("pong");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user