import { Play } from '@root/src/models/play' ; import request from '@/utils/request' ; export const getPlays = ( params = { } ) => { return request . get < ResponseList < Play > > ( '/plays' , params ) ; } ; export const downloadPlay = ( id ) => { return `${ request . config . baseURL }/play/download/${ id }` ; } ;