feat: add total field to PostListResponse
This commit is contained in:
parent
b1385efd5e
commit
72c1efa566
@ -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)]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user