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