Files
AIGC/demo/deploy_baota/frontend/static/orders-38b0d842.js

2 lines
513 B
JavaScript
Raw Normal View History

import{e}from"./index-36b4201c.js";const d=r=>e.get("/orders",{params:r}),a=r=>e.get(`/orders/${r}`),n=r=>e.post("/orders/create",r),c=(r,t,s)=>e.post(`/orders/${r}/status`,{status:t,notes:s}),u=(r,t)=>e.post(`/orders/${r}/cancel`,{reason:t}),p=(r,t)=>e.post(`/orders/${r}/ship`,{trackingNumber:t}),O=r=>e.post(`/orders/${r}/complete`),l=r=>e.get("/orders",{params:r}),g=r=>e.delete("/orders/batch",{data:r}),$=r=>e.delete(`/orders/${r}`);export{a,u as b,n as c,O as d,g as e,l as f,d as g,$ as h,p as s,c as u};