import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '@shared';
import { StaffManagementComponent } from './components/staff-management/staff-management.component';
import { SysSettingRoutingModule } from './sys-setting-routing.module';
import { BuyerTranspowerComponent } from './components/staff-management/transpower/transpower.component';
import { SystemStaffStaffModalComponent } from './components/staff-management/staff-modal/staff-modal.component';
import { RoleManagementComponent } from './components/role-management/role-management.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';
import { BasicConfigComponent } from './components/basic-config/basic-config.component';
import { AuditReasonConfigComponent } from './components/audit-reason-config/audit-reason-config.component';
import { BasicConfigActionModalComponent } from './components/basic-config/basic-config-action-modal/basic-config-action-modal.component';
import { AuditResonConfigActionModalComponent } from './components/audit-reason-config/audit-reson-config-action-modal/audit-reson-config-action-modal.component';
import { CartConfigComponent } from './components/cart-config/cart-config.component';
import { CartConfigActionModalComponent } from './components/cart-config/cart-config-action-modal/cart-config-action-modal.component';
import { AgreementConfigComponentsBaseComponent } from './components/agreement-config/agreement-config.component';
import { BasicSettingComponent } from './components/basic-setting/basic-setting.component';
import { SystemConfigComponent } from './components/system-config/system-config.component';
import { SettingRoleEditComponent } from './components/role-management/edit/edit.component';
import { SettingMenuComponent } from './components/role-management/menu/menu.component';
import { GoodsNameConfigComponent } from './components/goods-name-config/goods-name-config.component';

const COMPONENTS = [
  StaffManagementComponent,
  RoleManagementComponent,
  BasicConfigComponent,
  SystemLogsComponent,
  UserLogsComponent,
  VersionLogsComponent,
  AuditReasonConfigComponent,
  CartConfigComponent,
  AgreementConfigComponentsBaseComponent,
  BasicSettingComponent,
  SystemConfigComponent,
  GoodsNameConfigComponent
];
const NOTROUTECOMPONENTS = [
  BuyerTranspowerComponent,
  SystemStaffStaffModalComponent,
  BasicConfigActionModalComponent,
  AuditResonConfigActionModalComponent,
  CartConfigActionModalComponent,
  SettingRoleEditComponent,
  SettingMenuComponent
];
@NgModule({
  declarations: [...COMPONENTS, ...NOTROUTECOMPONENTS],
  imports: [CommonModule, SysSettingRoutingModule, SharedModule]
})
export class SysSettingModule {}
