import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CallLogComponent } from './call-log/call-log.component';
import { DetailComponent } from './call-log/detail/detail.component';
import { ChatComponent } from './chat/chat.component';
import { LinkPageComponent } from './link-page/link-page.component';
import { RoomManageComponent } from './room-manage/room-manage.component';
import { SearchComponent } from './search/search.component';
const routes: Routes = [
  {
    path: 'chat/:id',//聊天
    component: ChatComponent,
  },
  {
    path: 'search',//搜索
    component: SearchComponent,
  },
  {
    path: 'link-room/:rid',//直播页
    component: LinkPageComponent,
  },
  {
    path: 'room-manage',//直播房间管理
    component: RoomManageComponent,
  },
  {
    path: 'call-log',//直播通话记录
    component: CallLogComponent,
  },
  {
    path: 'call-log/detail/:id',//直播通话详情
    component: DetailComponent,
  },
]
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class LiveRoutingModule { }
