library.js 431 B

1234567891011121314
  1. import APIConfig from './api.js';
  2. import efunRequest from '../utils/efunRequest'
  3. import request from '../utils/request'
  4. export default class LibraryUrl {
  5. static getIndex(ageGroup) {
  6. // return efunRequest.getHttpRequest().url(APIConfig.getLibraryUrl(`/category`)).params({
  7. // ageGroup
  8. // }).get();
  9. return request(APIConfig.getLibraryUrl(`/category?ageGroup=${ageGroup}`))
  10. }
  11. }