PageRepository.ets 390 Bytes
import { ResponseDTO, WDHttp } from 'wdNetwork';
import { NavigationBodyDTO } from './bean/NavigationBodyDTO';
import { PageDTO } from './bean/PageDTO';

export class PageRepository {

  static fetchNavigationDataApi(url: string) {
    return WDHttp.get<ResponseDTO<NavigationBodyDTO>>(url)
  };

  static fetchPageData(url: string) {
    return WDHttp.get<ResponseDTO<PageDTO>>(url)
  };
}