恢复用户列表功能

This commit is contained in:
gxwebsoft
2024-05-17 06:04:56 +08:00
parent ec629c4540
commit fc7752cb18
73 changed files with 10390 additions and 657 deletions
+7 -7
View File
@@ -8,7 +8,7 @@ import { MODULES_API_URL } from '@/config/setting';
*/
export async function pageOrder(params: OrderParam) {
const res = await request.get<ApiResult<PageResult<Order>>>(
MODULES_API_URL + '/booking/order/page',
MODULES_API_URL + '/shop/order/page',
{
params
}
@@ -24,7 +24,7 @@ export async function pageOrder(params: OrderParam) {
*/
export async function listOrder(params?: OrderParam) {
const res = await request.get<ApiResult<Order[]>>(
MODULES_API_URL + '/booking/order',
MODULES_API_URL + '/shop/order',
{
params
}
@@ -40,7 +40,7 @@ export async function listOrder(params?: OrderParam) {
*/
export async function addOrder(data: Order) {
const res = await request.post<ApiResult<unknown>>(
MODULES_API_URL + '/booking/order',
MODULES_API_URL + '/shop/order',
data
);
if (res.data.code === 0) {
@@ -54,7 +54,7 @@ export async function addOrder(data: Order) {
*/
export async function updateOrder(data: Order) {
const res = await request.put<ApiResult<unknown>>(
MODULES_API_URL + '/booking/order',
MODULES_API_URL + '/shop/order',
data
);
if (res.data.code === 0) {
@@ -68,7 +68,7 @@ export async function updateOrder(data: Order) {
*/
export async function removeOrder(id?: number) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/order/' + id
MODULES_API_URL + '/shop/order/' + id
);
if (res.data.code === 0) {
return res.data.message;
@@ -81,7 +81,7 @@ export async function removeOrder(id?: number) {
*/
export async function removeBatchOrder(data: (number | undefined)[]) {
const res = await request.delete<ApiResult<unknown>>(
MODULES_API_URL + '/booking/order/batch',
MODULES_API_URL + '/shop/order/batch',
{
data
}
@@ -97,7 +97,7 @@ export async function removeBatchOrder(data: (number | undefined)[]) {
*/
export async function getOrder(id: number) {
const res = await request.get<ApiResult<Order>>(
MODULES_API_URL + '/booking/order/' + id
MODULES_API_URL + '/shop/order/' + id
);
if (res.data.code === 0 && res.data.data) {
return res.data.data;