From a4954a6c1b9ba17c50dd53177314d483a9bfb569 Mon Sep 17 00:00:00 2001 From: xfy Date: Wed, 17 Jun 2026 11:39:12 +0800 Subject: [PATCH] refactor(comments): remove unused CommentCountResponse and PendingCommentsResponse --- src/api/comments/types.rs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/api/comments/types.rs b/src/api/comments/types.rs index 8cf4c7c..da0d677 100644 --- a/src/api/comments/types.rs +++ b/src/api/comments/types.rs @@ -32,30 +32,6 @@ pub struct CommentTreeResponse { pub count: i64, } -/// 评论计数响应。 -/// -/// 此类型仅在服务端函数体中构造;保留 `#[allow(dead_code)]` 以避免 WASM 构建中 -/// 因函数体被剥离而产生的未使用警告。 -#[derive(Debug, Clone, Serialize, Deserialize)] -#[allow(dead_code)] -pub struct CommentCountResponse { - /// 评论数量。 - pub count: i64, -} - -/// 待审核评论列表响应。 -/// -/// 当前前端未直接调用 `get_pending_comments`,此类型仅在服务端函数体中构造; -/// 保留 `#[allow(dead_code)]` 以避免 WASM 构建中因函数体被剥离而产生的未使用警告。 -#[derive(Debug, Clone, Serialize, Deserialize)] -#[allow(dead_code)] -pub struct PendingCommentsResponse { - /// 待审核评论列表。 - pub comments: Vec, - /// 总数。 - pub total: i64, -} - /// 全部评论列表响应。 #[derive(Debug, Clone, Serialize, Deserialize)] pub struct AllCommentsResponse {