import { HttpClient , HttpResponse } from '@angular/common/http' ; import { Injectable } from '@angular/core' ; import { Observable } from 'rxjs/Observable' ; import { Params } from '@utils/params.service' ; @ Injectable ( ) export class DashBoardService { constructor ( private params , private http ) { } public getSystemLogChina ( source ) { return this . http . get ( '/chart/syslogchina?' + this . params . fmtpages ( { source } ) ) ; } }