2 lines
702 B
JavaScript
2 lines
702 B
JavaScript
import{aq as s,ap as e}from"./Cbt2tPBc.js";const n=async t=>await e.get(`/order/${t}`),c=async(t=1,r=10)=>await e.post("/order/get-orders",{page:t,limit:r}),d=async(t,r=1,a=10)=>await e.post(`/order/get-user-orders/${t}`,{page:r,limit:a}),i=async(t=1,r=10)=>await e.post("/order/get-store-orders",{page:t,limit:r}),u=async t=>await e.post("/order",t),y=async(t,r)=>await e.post(`/order/start-transaction/${t}`,{method:r}),p=async(t,r)=>await e.post(`/order/verify/${t}?${r}`),g=async(t,r)=>s.fetch("orders_status","update",{data:r,field:"id",value:t}),w=async t=>await e.post(`/order/change-status/${t.order_id}`,{title:t.title});export{d as a,i as b,w as c,c as d,u as e,y as f,n as g,g as u,p as v};
|