added pagination to a given authors page
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
pub mod datetime;
|
||||
pub mod pagination;
|
||||
pub mod rss;
|
||||
pub mod sitemap;
|
||||
|
13
backend/public/src/utils/pagination.rs
Normal file
13
backend/public/src/utils/pagination.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct PaginationQuery {
|
||||
pub page: Option<i64>,
|
||||
pub limit: Option<i64>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct Pagination {
|
||||
pub page: i64,
|
||||
pub limit: i64,
|
||||
}
|
Reference in New Issue
Block a user