pub async fn create_post(
title: String,
slug: Option<String>,
summary: Option<String>,
content_md: String,
status: String,
tags: Vec<String>,
cover_image: Option<String>,
) -> Result<CreatePostResponse, ServerFnError>Expand description
创建一篇新文章。
校验标题与内容非空、slug 格式合法;未提供 slug 时从标题自动生成。 首次发布时填充 published_at,并同步标签与缓存失效。
§Handler information
- Method:
post - Path:
<auto>