mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
18 lines
400 B
JavaScript
18 lines
400 B
JavaScript
// 电台节目列表
|
|
const { toBoolean } = require('../util')
|
|
const createOption = require('../util/option.js')
|
|
module.exports = (query, request) => {
|
|
const data = {
|
|
radioId: query.rid,
|
|
limit: query.limit || 30,
|
|
offset: query.offset || 0,
|
|
asc: toBoolean(query.asc),
|
|
}
|
|
return request(
|
|
'POST',
|
|
`/api/dj/program/byradio`,
|
|
data,
|
|
createOption(query, 'weapi'),
|
|
)
|
|
}
|