library.js 471 B

12345678910111213141516
  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. method: "get",
  11. })
  12. }
  13. }