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 WxMaMediaService { static PATH = '/wx/media/{appid}'; constructor(private httpHandler: HttpHandler) {} uploadMedia(appid: string,request: HttpServletRequest, header?: any): Promise> { return this.httpHandler.>(`${HostConfig.DEV_HOST}${WxMaMediaService.PATH}`, header); } getMedia(appid: string,mediaId: string, header?: any): Promise { return this.httpHandler.(`${HostConfig.DEV_HOST}${WxMaMediaService.PATH}`, header); } }