From 72c1efa566d9c2c13aceae2ac8e8eb443ffe1b75 Mon Sep 17 00:00:00 2001 From: xfy Date: Wed, 10 Jun 2026 13:57:06 +0800 Subject: [PATCH] feat: add total field to PostListResponse --- src/api/posts/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/posts/types.rs b/src/api/posts/types.rs index 769fe3d..94d6aaa 100644 --- a/src/api/posts/types.rs +++ b/src/api/posts/types.rs @@ -23,6 +23,7 @@ pub struct CreatePostResponse { #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct PostListResponse { pub posts: Vec, + pub total: i64, } #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]