using HoneyBox.Admin.Business.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace HoneyBox.Admin.Business.Controllers;

/// <summary>
/// 业务模块健康检查控制器
/// </summary>
[ApiController]
[Route("api/admin/business/[controller]")]
public class HealthController : ControllerBase
{
    /// <summary>
    /// 健康检查端点
    /// </summary>
    [HttpGet]
    [AllowAnonymous]
    public IActionResult Get()
    {
        return Ok(ApiResponse.Success(new
        {
            Status = "Healthy",
            Module = "HoneyBox.Admin.Business",
            Timestamp = DateTime.UtcNow
        }));
    }
}
