🆕 新增热榜功能

This commit is contained in:
李寻欢
2024-07-15 14:14:24 +08:00
parent 24ddb1befe
commit 3c92f83745
15 changed files with 283 additions and 5 deletions

View File

@@ -99,6 +99,25 @@ function changeUserNewsStatus(wxId) {
})
}
// 修改用户热搜开启状态
function changeUserHotTopStatus(wxId) {
axios({
method: 'put',
url: '/api/hot-top/status',
data: {
wxId: wxId
}
}).then(function (response) {
console.log(`返回结果: ${JSON.stringify(response)}`);
alert(`${response.data}`)
}).catch(function (error) {
console.log(`错误信息: ${error}`);
alert("修改失败")
}).finally(function () {
window.location.reload();
})
}
// 修改指令权限启用状态
function changeCommandEnableStatus(wxId) {
axios({