From 19d7d099b1ca0dacad0e416ce7bb716870080efa Mon Sep 17 00:00:00 2001 From: fgy Date: Tue, 7 Jan 2025 11:42:38 +0800 Subject: [PATCH] feat: easy_note to rust, hertz_handler package --- go_to_rust/easy_note/src/cmd/api/hertz_handler/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/go_to_rust/easy_note/src/cmd/api/hertz_handler/mod.rs b/go_to_rust/easy_note/src/cmd/api/hertz_handler/mod.rs index 0e416ab..9bf67ed 100644 --- a/go_to_rust/easy_note/src/cmd/api/hertz_handler/mod.rs +++ b/go_to_rust/easy_note/src/cmd/api/hertz_handler/mod.rs @@ -7,6 +7,7 @@ use volo_http::request::ServerRequest; use volo_http::response::ServerResponse; use volo_http::server::response::IntoResponse; use volo_http::json::Json; +use serde_json; // Ping函数用于处理传入的HTTP请求,并返回一个JSON响应。 pub async fn ping(