Skip to main content

Module posts

Module posts 

Source
Expand description

MCP 写作用域工具:文章 CRUD。

镜像 src/api/posts/{create,update,trash,delete}.rs 的 server-fn 逻辑, 但用 bearer-token 鉴权(principal.user_id 作 author_id),不走 cookie。 每个写操作后执行与 web 后台完全一致的缓存失效(moka + SSR)。

本模块仅 feature = "server" 编译;server.rs 在最终装配时把 posts_router 组合进单一 ServerHandler

Structs§

CreatePostParams
PostIdParams
PostResult 🔒
UpdatePostParams

Functions§

default_status 🔒