//! HTTP 请求处理器模块 pub mod user; pub mod admin; pub mod role; pub mod monitoring; use axum::{response::Json, http::StatusCode}; use serde_json::{json, Value}; /// 根路径处理器 pub async fn root() -> Json { Json(json!({ "message": "欢迎使用 Rust User API", "version": "0.1.0" })) } /// 健康检查处理器 pub async fn health_check() -> (StatusCode, Json) { (StatusCode::OK, Json(json!({ "status": "healthy", "timestamp": chrono::Utc::now() }))) }