23 lines
477 B
C#
23 lines
477 B
C#
|
|
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");
|
||
|
|
}
|
||
|
|
}
|