forked from xxhjsb/hbt-prevention-ui
15 lines
497 B
TypeScript
15 lines
497 B
TypeScript
import BaseService from "hbt-common/service/base.service"
|
|
import type { AxiosResponse } from 'axios'
|
|
import { ActionResult } from "hbt-common/models/actionResult";
|
|
export default class commonService extends BaseService<any>{
|
|
constructor(){
|
|
super()
|
|
}
|
|
public downloadFile(params?:any): Promise<AxiosResponse<ActionResult<any>>> {
|
|
const url = params.url;
|
|
return this.service.get(url, {
|
|
timeout:120000,
|
|
responseType:'blob'
|
|
})
|
|
}
|
|
} |