using Microsoft.AspNetCore.Mvc; namespace LingAdmin.AuthorizationService.Controllers; /// /// 健康检查控制器 /// [ApiController] [Route("api/[controller]")] public class HealthController : ControllerBase { private readonly ILogger _logger; public HealthController(ILogger logger) { _logger = logger; } /// /// 健康检查 /// [HttpGet] public ActionResult GetHealth() { return Ok(new { Status = "Healthy", Service = "Authorization Service", Timestamp = DateTime.UtcNow, Version = "1.0.0" }); } /// /// 就绪检查 /// [HttpGet("ready")] public ActionResult GetReadiness() { return Ok(new { Status = "Ready", Timestamp = DateTime.UtcNow }); } /// /// 存活检查 /// [HttpGet("live")] public ActionResult GetLiveness() { return Ok(new { Status = "Alive", Timestamp = DateTime.UtcNow }); } }