mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 14:41:23 +08:00
docs: 更新文档
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// 对某一首歌曲发表评论
|
||||
|
||||
const createOption = require('../util/option.js')
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
threadId: 'R_SO_4_' + query.id,
|
||||
content: query.content,
|
||||
resourceType: '0',
|
||||
resourceId: '0',
|
||||
expressionPicId: '-1',
|
||||
bubbleId: '-1',
|
||||
checkToken: '',
|
||||
}
|
||||
return request('/api/resource/comments/add', data, createOption(query))
|
||||
}
|
||||
@@ -3,8 +3,8 @@
|
||||
const createOption = require('../util/option.js')
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
commentId: query.commentId,
|
||||
threadId: query.threadId,
|
||||
commentId: query.cid,
|
||||
threadId: 'R_SO_4_' + query.id,
|
||||
}
|
||||
return request(`/api/resource/comments/delete`, data, createOption(query))
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
const createOption = require('../util/option.js')
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
threadId: query.threadId,
|
||||
threadId: query.id,
|
||||
commentId: query.commentId,
|
||||
content: query.content,
|
||||
resourceType: '0',
|
||||
|
||||
@@ -5,7 +5,7 @@ module.exports = (query, request) => {
|
||||
const data = {
|
||||
userId: query.uid,
|
||||
time: '0',
|
||||
limit: query.limit || 30,
|
||||
limit: query.limit || 20,
|
||||
offset: query.offset || 0,
|
||||
getcounts: 'true',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user