import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AlbumComponent } from './album/album.component';
import { AnchorComponent } from './anchor/anchor.component';
import { BrowseComponent } from './browse/browse.component';
import { CertificationComponent } from './certification/certification.component';
import { FeedbackComponent } from './feedback/feedback.component';
import { ProfileComponent } from './profile/profile.component';
import { ReleaseComponent } from './release/release.component';
import { SettingComponent } from './setting/setting.component';
import { ShareComponent } from './share/share.component';
import { CommentComponent } from './comment/comment.component';
import { GiftIncomeComponent } from './gift-income/gift-income.component';
import { RankingComponent } from './ranking/ranking.component';
import { FriendsComponent } from './friends/friends.component';
import { GiftLogComponent } from './gift-log/gift-log.component';
import { OnlineServiceComponent } from './online-service/online-service.component';
import { RelationComponent } from './relation/relation.component';
const routes: Routes = [
  {
    path: 'profile/:id',//主页
    component: ProfileComponent,
  },
  {
    path: 'certification',//实名
    component: CertificationComponent,
  },
  {
    path: 'album',//相册
    component: AlbumComponent,
  },
  {
    path: 'anchor',//主播认证
    component: AnchorComponent,
  },
  {
    path: 'feedback',//意见反馈
    component: FeedbackComponent,
  },
  {
    path: 'share',//分享
    component: ShareComponent,
  },

  {
    path: 'browse',//访客
    component: BrowseComponent,
  },
  {
    path: 'setting',//设置
    component: SettingComponent,
  },
  {
    path: 'release',//设置
    component: ReleaseComponent,
  },
  {
    path:'comment',
    component:CommentComponent
  },
  {
    path:'income',
    component:GiftIncomeComponent
  },
  {
    path: 'ranking', //排名
    component: RankingComponent,
  },
  {
    path: 'friends', //粉丝和关注
    component: FriendsComponent,
  },
  {
    path: 'giftlog', //礼物记录
    component: GiftLogComponent,
  },
  {
    path: 'service', //小客服
    component: OnlineServiceComponent,
  },
  {
    path: 'relation', //请密度
    component: RelationComponent,
  },
]
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class UserRoutingModule { }
