import { Http, HttpHeaderType } from "../uni/uni_http"; import { Resonpse } from "./data_types"; export class BaseModel { public http: Http constructor(http: Http) { this.http = http } public httpGet(url: string, data: any = {}, header?: Record) { return this.http.get>(url, data, header) } public httpListGet(url: string, data: any = {}, header?: Record) { return this.http.get>(url, data, header) } public httpPost(url: string, data: any = {}, header?: Record) { return this.http.post>(url, data, header) } public httpPostJson(url: string, data: any = {}, header?: Record) { return this.http.postJson>(url, data, header) } }