import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AgreementConfigComponentsBaseComponent } from './components/agreement-config/agreement-config.component';
import { AuditReasonConfigComponent } from './components/audit-reason-config/audit-reason-config.component';
import { BasicConfigComponent } from './components/basic-config/basic-config.component';
import { BasicSettingComponent } from './components/basic-setting/basic-setting.component';
import { CartConfigComponent } from './components/cart-config/cart-config.component';
import { GoodsNameConfigComponent } from './components/goods-name-config/goods-name-config.component';
import { RoleManagementComponent } from './components/role-management/role-management.component';
import { StaffManagementComponent } from './components/staff-management/staff-management.component';
import { SystemConfigComponent } from './components/system-config/system-config.component';
import { SystemLogsComponent } from './components/system-logs/system-logs.component';
import { UserLogsComponent } from './components/user-logs/user-logs.component';
import { VersionLogsComponent } from './components/version-logs/version-logs.component';

const routes: Routes = [
  { path: 'staff-management', component: StaffManagementComponent },
  { path: 'role-management', component: RoleManagementComponent },
  { path: 'basic-setting', component: BasicSettingComponent },
  { path: 'basic-config', component: BasicConfigComponent },
  { path: 'system-logs', component: SystemLogsComponent },
  { path: 'user-logs', component: UserLogsComponent },
  { path: 'version-logs', component: VersionLogsComponent },
  { path: 'audit-reason-config', component: AuditReasonConfigComponent },
  { path: 'cart-config', component: CartConfigComponent },
  { path: 'agreement-config', component: AgreementConfigComponentsBaseComponent },
  { path: 'system-config', component: SystemConfigComponent },
  { path: 'goods-name-config', component: GoodsNameConfigComponent },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class SysSettingRoutingModule {}
