This commit is contained in:
王子琦
2026-01-13 13:55:40 +08:00
parent 6affd0c77e
commit f58e05d962
72 changed files with 3251 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import http from './http';
export const createOrder = (data) => http.post('/orders', data);
export const listOrders = () => http.get('/orders');
export const getOrder = (id) => http.get(`/orders/${id}`);
export const payOrder = (id) => http.post(`/orders/${id}/pay`);
export const cancelOrder = (id) => http.put(`/orders/${id}/cancel`);