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