import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';

const routes: Routes = [
  {
    path: '',
    loadChildren: () => import('./tabs/tabs.module').then(m => m.TabsPageModule)
  },
  {
    path: 'user',
    loadChildren: () => import('../../../src/app/user/user.module').then(m => m.UserModule)
  },
  {
    path:"study",
    children:[
      {
        path: 'tsdatatype',
        loadChildren: () => import('../modules/study/case-angular/pages/tsdatatype/tsdatatype.module').then( m => m.TsdatatypePageModule)
      },
      {
        path: 'slider',
        loadChildren: () => import('../modules/study/case-js-module/pages/slider/slider.module').then( m => m.SliderPageModule)
      },
      {
        path: 'case-edit',
        loadChildren: () => import('../modules/study/case-angular/pages/case-edit/case-edit.module').then( m => m.CaseEditPageModule)
      },
      {
        path: 'echarts',
        loadChildren: () => import('../modules/study/case-echarts/case-echarts.module').then( m => m.CaseEchartsPageModule)
      },
      {
        path: 'babylon',
        loadChildren: () => import('../modules/babylon/pages/case-babylon/case-babylon.module').then( m => m.CaseBabylonPageModule)
      },
      {
        path: 'parse',
        loadChildren: () => import('../modules/study/case-js-module/case-parse/case-parse.module').then( m => m.CaseParsePageModule)
      },
      {
        path: 'case-petmarket',
        loadChildren: () => import('../modules/study/case-js-module/case-parse-petmarket/case-parse-petmarket.module').then( m => m.CaseParsePetmarketPageModule)
      },
      {
        path: 'pet/:id',
        loadChildren: () => import('../modules/study/case-js-module/case-pet-detail/case-pet-detail.module').then( m => m.CasePetDetailPageModule)
      },
      {
        path: 'pet/edit/:id', // 编辑宠物
        loadChildren: () => import('../modules/study/case-js-module/case-pet-edit/case-pet-edit.module').then( m => m.CasePetEditPageModule)
      },
    ]
  },
  {
    path: 'aigc',
    loadChildren: () => import('../modules/aigc/aigc.module').then(m => m.AigcModule)
  },
 



 

  

 
];
@NgModule({
  imports: [
    RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  ],
  exports: [RouterModule]
})
export class AppRoutingModule {}
