完成博客权限修改

This commit is contained in:
2025-06-23 00:07:23 +08:00
parent ad0a152bd8
commit e9feb1f8ca
10 changed files with 178 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
import fetcher from "@/lib/api/fetcher";
export async function setPassword(id: string, password: string) {
return fetcher<boolean>(`/api/admin/web/blog/${id}/password`, {
method: 'POST',
body: JSON.stringify({
password,
})
})
}