pub async fn restore_post(
post_id: i32,
) -> Result<CreatePostResponse, ServerFnError>Expand description
恢复一篇已删除的文章(将 deleted_at 置空)。
若该文章原始 slug 已被其他未删除文章占用,自动追加数字后缀。
§Handler information
- Method:
post - Path:
<auto>
pub async fn restore_post(
post_id: i32,
) -> Result<CreatePostResponse, ServerFnError>恢复一篇已删除的文章(将 deleted_at 置空)。
若该文章原始 slug 已被其他未删除文章占用,自动追加数字后缀。
post<auto>