Skip to main content

list_posts

Function list_posts 

Source
pub async fn list_posts(
    page: i32,
    per_page: i32,
    search: Option<String>,
) -> Result<PostListResponse, ServerFnError>
Expand description

获取管理员视角的全部文章列表(含草稿与已发布)。

需要 admin 权限;结果按创建时间降序,不走缓存。

§Handler information

  • Method: post
  • Path: <auto>