添加qiming-rcoder模块

This commit is contained in:
Codex
2026-06-01 13:54:52 +08:00
parent 8092c4b1f8
commit 4b1a580132
539 changed files with 151650 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
//! 健康检查处理器
use axum::Json;
use chrono::Utc;
use utoipa::ToSchema;
/// 健康检查响应结构
#[derive(serde::Serialize, ToSchema)]
pub struct HealthResponse {
/// 服务状态
pub status: String,
/// 时间戳
pub timestamp: chrono::DateTime<chrono::Utc>,
/// 服务名称
pub service: String,
}
/// 健康检查端点
///
/// 检查服务的健康状态
#[utoipa::path(
get,
path = "/health",
responses(
(status = 200, description = "服务健康状态", body = HealthResponse)
),
tag = "system"
)]
pub async fn health_check() -> Json<HealthResponse> {
Json(HealthResponse {
status: "healthy".to_string(),
timestamp: Utc::now(),
service: "rcoder-ai-service".to_string(),
})
}

View File

@@ -0,0 +1,4 @@
//! HTTP 路由和处理器模块
mod health_handler;
pub use health_handler::*;