import { request } from "../utils/request";

export const orderApi = {
  create: (data) => request("/orders", { method: "POST", body: data }),
  pay: (id, data) =>
    request(`/orders/${id}/pay`, { method: "POST", body: data }),
  status: (id) => request(`/orders/${id}/status`),
};
