pub async fn get_post_by_id(
post_id: i32,
) -> Result<SinglePostResponse, ApiError>Expand description
根据文章 id 获取详情。
需要 admin 权限;不缓存,用于管理后台编辑等场景。
pub async fn get_post_by_id(
post_id: i32,
) -> Result<SinglePostResponse, ApiError>根据文章 id 获取详情。
需要 admin 权限;不缓存,用于管理后台编辑等场景。