import sendHttp from './HttpClient';
export default sendHttp;
export function fetch(options) {
    return new Promise((resolve, reject)=>{
        sendHttp(options, (result)=>{
            if(result.success){
                resolve(result.data);
            }
            else{
                resolve(result)
            }
        })
    });
}