collectionService.js
506 Bytes
import BaseService from '../../../libs/services/baseService.js';
const UFO_COLLECTION_LIST = 'ufo.user.favoriteList';
export default class CollectionService extends BaseService {
async fetchCollectionList(params, complete) {
return await this.GET(
{
...params,
method: UFO_COLLECTION_LIST
},
{
complete
}
).then((data) => {
return data;
}).catch((error) => {
// 这里请抛出异常,不要return
throw error;
})
}
}