|
|
-import{aL as o,ar as c,aM as i}from"./index-N5LR26Ju.js";const r="/dictData",a=new i,D=o("dictData",()=>({query:async({skip:t=0,limit:e=void 0,...n}={})=>{let s={};return t&&(s.skip=t),e&&(s.limit=e),s={...s,...n},await a.$get(`${r}`,s)},fetch:async t=>await a.$get(`${r}/${t}`),create:async t=>await a.$post(`${r}`,t),update:async t=>{const e=c(t,"id",c(t,"_id"));return await a.$post(`${r}/${e}`,t)},del:async t=>await a.$delete(`${r}/${t}`)}));export{D};
|