Skip to main content

Module update

Module update 

Source
Expand description

更新文章接口。

校验管理员权限与文章归属,重新生成唯一 slug、渲染 Markdown, 在事务中更新 posts 表并同步标签,最后失效相关缓存。 Dioxus server function,注册在 /api 路径下。 仅在 feature = "server" 启用的服务端构建中写入数据库。

Functions§

update_post
更新指定文章。