|
|
|
@ -2,7 +2,7 @@ import {Component, OnInit} from '@angular/core'; |
|
|
|
|
import {Router} from '@angular/router'; |
|
|
|
|
import {ForumService} from '../forum.service'; |
|
|
|
|
import {Result} from '../../interface/Result'; |
|
|
|
|
import {Active, Complaint, Forum, Score} from '../../interface/ForumType'; |
|
|
|
|
import {Active, Complaint, Forum, ForumContent, Score} from '../../interface/ForumType'; |
|
|
|
|
import {Notice} from '../../interface/Notice'; |
|
|
|
|
import {MessageInterface, MessageUtil} from '../../message/message.service'; |
|
|
|
|
import {NoticeService} from '../notice/notice.service'; |
|
|
|
@ -68,6 +68,10 @@ export class ForumComponent implements OnInit, MessageInterface { |
|
|
|
|
return this.posts.forumList.list[this.currentIndex]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getContent(): ForumContent { |
|
|
|
|
return this.getForum().detailContent; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getActive(): Active { |
|
|
|
|
return this.getForum().activeDto; |
|
|
|
|
} |
|
|
|
|