feat: 新增评论举报接口 && bump 4.32.1

This commit is contained in:
MoeFurina
2026-05-16 10:21:46 +08:00
parent 15fa49a2e8
commit a366983e99
14 changed files with 324 additions and 285 deletions
+16 -37
View File
@@ -5128,43 +5128,6 @@ let data = encodeURIComponent(
**调用例子 :** `/voicelist/my/created`
### 发布评论
说明 : 登录后调用此接口, 传入评论线程 id, 评论内容等信息, 发布评论
**必选参数 :**
`id`: 歌曲id
`content`: 评论内容
**接口地址 :** `/comment/add`
**调用例子 :** `/comment/add?id=2058263032&content=这首歌太棒了!`
### 删除评论
说明 : 登录后调用此接口, 传入评论 id, 删除评论
**必选参数 :**
`cid`: 评论 id
`id`: 歌曲id
**接口地址 :** `/comment/delete`
**调用例子 :** `/comment/delete?threadId=2058263032&commentId=123456789`
### 回复评论
说明 : 登录后调用此接口, 传入歌曲 id, 回复内容等信息, 回复评论
**必选参数 :**
`id`: 歌曲id
`commentId`: 被回复的评论 id
`content`: 回复内容
**接口地址 :** `/comment/reply`
**调用例子 :** `/comment/reply?id=2058263032&commentId=123456789&content=我也觉得这首歌很棒!`
### DIFM电台 - 分类
@@ -5330,6 +5293,22 @@ let data = encodeURIComponent(
**调用例子 :** `/song/copyright/rcmd?songid=27946878`
### 举报评论
说明 : 登录后调用此接口, 传入歌曲 id 和评论 id, 举报评论
**必选参数 :**
`id`: 歌曲 id
`cid`: 评论 id
`reason`: 举报理由
**接口地址 :** `/comment/report`
**调用例子 :* `/comment/report?id=2058263032&cid=123456789&reason=人身攻击`
## 离线访问此文档
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问
+83 -1
View File
@@ -9,7 +9,50 @@
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta name="referrer" content="never">
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css" id="theme-css">
<style>
.theme-toggle {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 999;
width: 44px;
height: 44px;
border-radius: 50%;
border: 1px solid rgba(255,255,255,0.1);
background: rgba(30,30,46,0.75);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: #fff;
font-size: 20px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 12px rgba(0,0,0,0.15);
transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
outline: none;
padding: 0;
line-height: 1;
user-select: none;
}
.theme-toggle:hover {
transform: scale(1.12) rotate(12deg);
box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.theme-toggle:active {
transform: scale(0.92);
}
.theme-toggle.light {
background: rgba(255,255,255,0.85);
color: #333;
border-color: rgba(0,0,0,0.08);
}
html, body, .sidebar, .content, .markdown-section,
.sidebar-nav, .search, .docsify-pagination-container {
transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
</style>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
@@ -20,7 +63,46 @@
</head>
<body>
<div id="app"></div>
<button class="theme-toggle" id="themeToggle" aria-label="Toggle theme">🌙</button>
</body>
<script>
(function() {
var STORAGE_KEY = 'docsify-theme';
var link = document.getElementById('theme-css');
var btn = document.getElementById('themeToggle');
var LIGHT_URL = '//unpkg.com/docsify/lib/themes/vue.css';
var DARK_URL = '//unpkg.com/docsify/lib/themes/dark.css';
function setTheme(theme) {
link.href = theme === 'dark' ? DARK_URL : LIGHT_URL;
btn.textContent = theme === 'dark' ? '☀️' : '🌙';
btn.className = 'theme-toggle' + (theme === 'dark' ? '' : ' light');
localStorage.setItem(STORAGE_KEY, theme);
}
function toggleTheme() {
var isDark = link.href.includes('dark');
setTheme(isDark ? 'light' : 'dark');
}
var saved = localStorage.getItem(STORAGE_KEY);
if (saved) {
setTheme(saved);
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
setTheme('dark');
}
btn.addEventListener('click', toggleTheme);
try {
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function(e) {
if (!localStorage.getItem(STORAGE_KEY)) {
setTheme(e.matches ? 'dark' : 'light');
}
});
} catch(e) {}
})();
</script>
<script>
window.$docsify = {
name: '网易云音乐 API Enhanced',
Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 992 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 KiB