Skip to main content

get_post_by_id

Function get_post_by_id 

Source
pub async fn get_post_by_id(
    post_id: i32,
) -> Result<SinglePostResponse, ServerFnError>
Expand description

根据文章 id 获取详情。

需要 admin 权限;不缓存,用于管理后台编辑等场景。

§Handler information

  • Method: post
  • Path: <auto>