mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 20:24:46 +08:00
parent
dd315e573d
commit
12cae1b921
|
@ -87,17 +87,18 @@ export function dailySignin(type = 0) {
|
||||||
/**
|
/**
|
||||||
* 获取收藏的专辑(需要登录)
|
* 获取收藏的专辑(需要登录)
|
||||||
* 说明 : 调用此接口可获取到用户收藏的专辑
|
* 说明 : 调用此接口可获取到用户收藏的专辑
|
||||||
* - limit : 返回数量 , 默认为 30
|
* - limit : 返回数量 , 默认为 25
|
||||||
* - offset : 偏移数量,用于分页 , 如 :( 页数 -1)*30, 其中 30 为 limit 的值 , 默认为 0
|
* - offset : 偏移数量,用于分页 , 如 :( 页数 -1)*25, 其中 25 为 limit 的值 , 默认为 0
|
||||||
* @param {Object} params
|
* @param {Object} params
|
||||||
* @param {number} params.limit
|
* @param {number} params.limit
|
||||||
* @param {number=} params.offset
|
* @param {number=} params.offset
|
||||||
*/
|
*/
|
||||||
export function likedAlbums() {
|
export function likedAlbums(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/album/sublist',
|
url: '/album/sublist',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
|
limit: params.limit,
|
||||||
timestamp: new Date().getTime(),
|
timestamp: new Date().getTime(),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -107,11 +108,12 @@ export function likedAlbums() {
|
||||||
* 获取收藏的歌手(需要登录)
|
* 获取收藏的歌手(需要登录)
|
||||||
* 说明 : 调用此接口可获取到用户收藏的歌手
|
* 说明 : 调用此接口可获取到用户收藏的歌手
|
||||||
*/
|
*/
|
||||||
export function likedArtists() {
|
export function likedArtists(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/artist/sublist',
|
url: '/artist/sublist',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
|
limit: params.limit,
|
||||||
timestamp: new Date().getTime(),
|
timestamp: new Date().getTime(),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -121,11 +123,12 @@ export function likedArtists() {
|
||||||
* 获取收藏的MV(需要登录)
|
* 获取收藏的MV(需要登录)
|
||||||
* 说明 : 调用此接口可获取到用户收藏的MV
|
* 说明 : 调用此接口可获取到用户收藏的MV
|
||||||
*/
|
*/
|
||||||
export function likedMVs() {
|
export function likedMVs(params) {
|
||||||
return request({
|
return request({
|
||||||
url: '/mv/sublist',
|
url: '/mv/sublist',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
|
limit: params.limit,
|
||||||
timestamp: new Date().getTime(),
|
timestamp: new Date().getTime(),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -129,7 +129,7 @@ export default {
|
||||||
},
|
},
|
||||||
fetchLikedArtists: ({ commit }) => {
|
fetchLikedArtists: ({ commit }) => {
|
||||||
if (!isAccountLoggedIn()) return;
|
if (!isAccountLoggedIn()) return;
|
||||||
return likedArtists().then(result => {
|
return likedArtists({ limit: 2000 }).then(result => {
|
||||||
if (result.data) {
|
if (result.data) {
|
||||||
commit('updateLikedXXX', {
|
commit('updateLikedXXX', {
|
||||||
name: 'artists',
|
name: 'artists',
|
||||||
|
@ -140,7 +140,7 @@ export default {
|
||||||
},
|
},
|
||||||
fetchLikedMVs: ({ commit }) => {
|
fetchLikedMVs: ({ commit }) => {
|
||||||
if (!isAccountLoggedIn()) return;
|
if (!isAccountLoggedIn()) return;
|
||||||
return likedMVs().then(result => {
|
return likedMVs({ limit: 2000 }).then(result => {
|
||||||
if (result.data) {
|
if (result.data) {
|
||||||
commit('updateLikedXXX', {
|
commit('updateLikedXXX', {
|
||||||
name: 'mvs',
|
name: 'mvs',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user