import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { environment } from '../../../../environments/environment'; import { MatResponse } from './../../../shared/shared.model'; @Injectable() export class PlatformService { constructor(private http: HttpClient) { } getSystemList() { return this.http.get(`${environment.url}/custom/system_index`); } getTableList(systemId: number) { return this.http.get(`${environment.url}/database/${systemId}/table`); } login(body: any) { return this.http.post(`${environment.url}/login`, body); } logout() { return this.http.get(`${environment.url}/logout`); } }