import{s as l}from"./request.e6b427ef.js";class s{getParam(e){let t="";for(let n in e){let o=e[n]!==void 0?e[n]:"";o!==void 0&&o!==""&&o!==null&&(t+=`&${n}=${encodeURIComponent(o)}`)}return t?t.substring(1):""}getUrl(e,t){return e+=(e.indexOf("?")<0?"?":"")+this.getParam(t)}}const i=function(r,e){let n=new s().getUrl(r,e);return l({url:n,method:"GET"})},m=function(r,e){return l({url:r,method:"POST",data:e})};export{s as U,i as g,m as p};
