pub async fn list_published_posts(
page: i32,
per_page: i32,
) -> Result<PostListResponse, ServerFnError>Expand description
获取已发布文章分页列表。
优先命中缓存;未命中时查询总数与分页记录,并按 published_at 降序排列。
§Handler information
- Method:
post - Path:
<auto>
pub async fn list_published_posts(
page: i32,
per_page: i32,
) -> Result<PostListResponse, ServerFnError>获取已发布文章分页列表。
优先命中缓存;未命中时查询总数与分页记录,并按 published_at 降序排列。
post<auto>