import HttpClient from '../Http' ; export const PlaylistCatlist = async ( ) : Promise < any > => { return await HttpClient . init ( "/playlist/catlist" , { method : "post" } ) . then ( res => res ) . catch ( err => err ) ; } ; param name param order export const TopPlaylist = async ( name = "全部" , limit , order ? ) : Promise < any > => { if ( ! order ) { return await HttpClient . init ( `/top/playlist?cat=${ name }&limit=${ limit }` , { method : "post" } ) . then ( res => res ) . catch ( err => err ) ; } return await HttpClient . init ( `/top/playlist?cat=${ name }&order=${ order }&limit=${ limit }` , { method : "post" } ) . then ( res => res ) . catch ( err => err ) ; } ; param limit param before param cat export const TopPlaylistHighquality = async ( limit , before , cat = "全部" ) => { const data = await HttpClient . init ( `/top/playlist/highquality?before=${ before }&cat=${ cat }&limit=${ limit }` , { method : "post" } ) . then ( res => Object . freeze ( res ) ) . catch ( err => err ) ; return data ; } ;