1 parent
1a4fd54b68
commit
2542f6dcb6
4 files changed
+89
-6
No files matched your search
@@ -2681,4 +2681,26 @@ export function skinSiteWikiCategory(
|
||||
const query = new URLSearchParams({ name })
|
||||
if (before != null) query.set('before', String(before))
|
||||
return skinSiteRequest<SkinSiteWikiSearchPage>('wiki/category?' + query.toString())
|
||||
}
|
||||
}
|
||||
// ─── Wiki: 移动 / 关注 / 设首页 ─────────────────────────────────────────
|
||||
|
||||
export function skinSiteWikiMove(data: {
|
||||
title: string
|
||||
targetTitle: string
|
||||
leaveRedirect?: boolean
|
||||
}): Promise<SkinSiteResponse<SkinSiteWikiPageDetail>> {
|
||||
return skinSiteRequest<SkinSiteWikiPageDetail>('wiki/move', {
|
||||
method: 'POST',
|
||||
body: data,
|
||||
})
|
||||
}
|
||||
|
||||
export function skinSiteWikiWatch(
|
||||
title: string,
|
||||
watched: boolean,
|
||||
): Promise<SkinSiteResponse<boolean>> {
|
||||
return skinSiteRequest<boolean>('wiki/watch', {
|
||||
method: 'POST',
|
||||
body: { title, watched },
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user