import"./index-IP_FWtso.js";import{a as e}from"./vendor-utils-BveVE6Uf.js";class n{constructor(){this.addAsync=async a=>{const t=await e.post("ServiceResult",a);return t==null?void 0:t.data},this.updateAsync=async a=>{const t=await e.put(`ServiceResult/${a.id}`,a);return t==null?void 0:t.data},this.deleteAsync=async a=>{const t=await e.delete(`ServiceResult/${a}`);return t==null?void 0:t.data},this.toggleAsync=async a=>{const t=await e.post(`ServiceResult/${a}/Toggle`);return t==null?void 0:t.data},this.getAsync=async a=>{const t=await e.get("ServiceResult",{params:a});return t==null?void 0:t.data},this.getByIdAsync=async a=>{const t=await e.get(`ServiceResult/${a}`);return t==null?void 0:t.data},this.getSelectListAsync=async a=>{const t=await e.get("ServiceResult/SelectList",{params:a});return t==null?void 0:t.data},this.getTypesAsync=async()=>{const a=await e.get("ServiceResult/Type");return a==null?void 0:a.data}}}export{n as S};
