pub async fn delete_post(
post_id: i32,
) -> Result<CreatePostResponse, ServerFnError>Expand description
删除指定文章。
仅 admin 可调用;通过设置 deleted_at 实现软删除, 成功后按影响范围失效文章列表、标签云、统计、slug 及相关标签文章缓存。
§Handler information
- Method:
post - Path:
<auto>
pub async fn delete_post(
post_id: i32,
) -> Result<CreatePostResponse, ServerFnError>删除指定文章。
仅 admin 可调用;通过设置 deleted_at 实现软删除, 成功后按影响范围失效文章列表、标签云、统计、slug 及相关标签文章缓存。
post<auto>