feat: add total field to PostListResponse

This commit is contained in:
xfy 2026-06-10 13:57:06 +08:00
parent b1385efd5e
commit 72c1efa566

View File

@ -23,6 +23,7 @@ pub struct CreatePostResponse {
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct PostListResponse {
pub posts: Vec<Post>,
pub total: i64,
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]