You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
1.0 KiB

var p=Object.defineProperty;var g=(s,t,r)=>t in s?p(s,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[t]=r;var e=(s,t,r)=>(g(s,typeof t!="symbol"?t+"":t,r),r);var u=(s,t,r)=>new Promise((m,o)=>{var E=a=>{try{i(r.next(a))}catch(n){o(n)}},h=a=>{try{i(r.throw(a))}catch(n){o(n)}},i=a=>a.done?m(a.value):Promise.resolve(a.value).then(E,h);i((r=r.apply(s,t)).next())});import y from"./Request-a8cd92a3.js";import{c}from"./ParamsUtils-3cbc5822.js";import{ag as l}from"./index-f4658ae7.js";import"./Events-141c34ea.js";import"./form-77f01638.js";class N{constructor(t,...r){e(this,"EnsName","");e(this,"queryArgs",[]);e(this,"data",[]);this.EnsName=t,this.queryArgs=r}Retrieve(...t){return u(this,null,function*(){if(t.length%2===1)throw new Error("\u67E5\u8BE2\u6761\u4EF6\u4E0D\u5339\u914D");this.queryArgs=t,yield this.Init()})}Init(){return u(this,null,function*(){this.data=yield y.post(l,null,{params:{DoType:"Entities_Init",EnsName:this.EnsName,Paras:c(this.queryArgs)}})})}isEmpty(){return this.data.length===0}getData(){return this.data}}export{N as default};