This commit is contained in:
2024-10-19 10:38:52 +08:00
parent 713f24ca3e
commit 00759864ed
75 changed files with 9465 additions and 2063 deletions

View File

@@ -0,0 +1,19 @@
import request from '@/utils/request';
import type { ApiResult } from '@/api';
import { MODULES_API_URL } from '@/config/setting';
import {OrderDelivery} from "@/api/shop/orderDelivery/model";
/**
* 添加
*/
export async function addOrderDelivery(data: OrderDelivery) {
const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/shop/order-delivery',
data
);
if (res.data.code === 0) {
return res.data.message;
}
return Promise.reject(new Error(res.data.message));
}