import service, { ApiResult } from "../configs/axiosUpload";

export interface HttpResponse {
    status: number
    statusText: string
    data: Result
}

export interface Result {
    resultCode: ApiResult
    message: string
    data: any
    [key: string]: any
}

class Api{
    constructor(){ }
    static Post = (path:string,base64Str:any): Promise<HttpResponse>=>{
        return service.post(path,base64Str)
    }
}

export default Api;
