Skip to main content

purge_post

Function purge_post 

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

彻底删除一篇已删除的文章(物理删除,不可恢复)。

注意:仅删除数据库记录,不删除已上传的图片文件。 post_tags 关联因外键 ON DELETE CASCADE 自动清理。

§Handler information

  • Method: post
  • Path: <auto>