fix: topic pinned

This commit is contained in:
zzc
2026-06-25 07:16:35 +08:00
parent 1361bf34f8
commit 93da905e1d
2 changed files with 40 additions and 2 deletions

View File

@@ -66,3 +66,17 @@ export function toggleEnable(id, isEnabled) {
data: { isEnabled },
})
}
/**
* 置顶话题置顶状态
* @param {id: string} id 话题 id
* @param {isPinned: boolean} 是否置顶话题
* @returns
*/
export function pinnedTopic(id, isPinned) {
return request({
url: `/management/api/rating/topic/pinned/${id}`,
method: 'patch',
data: { isPinned },
})
}