fix: topic pinned
This commit is contained in:
@@ -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 },
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user