import { HostConfig } from '../config/host.config'; import { Injectable } from '@angular/core'; import { HttpHandler } from './http-handler.service'; import { Page } from '../response/page.type'; @Injectable({ providedIn: 'root', }) export class YingshiyunService { static PATH = '/yingshiyun'; constructor(private httpHandler: HttpHandler) {} getToken(header?: any): Promise { return this.httpHandler.post(`${HostConfig.DEV_HOST}${YingshiyunService.PATH}/getToken`, header); } }