285 lines
8.5 KiB
TypeScript
285 lines
8.5 KiB
TypeScript
// @ts-ignore
|
|
/* eslint-disable */
|
|
import { request } from 'umi';
|
|
|
|
/** 此处后端没有提供注释 GET /stock/ */
|
|
export async function stockcontrollerGetstocks(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerGetstocksParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.StockListRes>('/stock/', {
|
|
method: 'GET',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /stock/cancelTransfer/${param0} */
|
|
export async function stockcontrollerCanceltransfer(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerCanceltransferParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/stock/cancelTransfer/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /stock/lostTransfer/${param0} */
|
|
export async function stockcontrollerLosttransfer(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerLosttransferParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/stock/lostTransfer/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /stock/purchase-order */
|
|
export async function stockcontrollerGetpurchaseorders(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerGetpurchaseordersParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.PurchaseOrderListRes>('/stock/purchase-order', {
|
|
method: 'GET',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /stock/purchase-order */
|
|
export async function stockcontrollerCreatepurchaseorder(
|
|
body: API.CreatePurchaseOrderDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.BooleanRes>('/stock/purchase-order', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 PUT /stock/purchase-order/${param0} */
|
|
export async function stockcontrollerUpdatepurchaseorder(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerUpdatepurchaseorderParams,
|
|
body: API.UpdatePurchaseOrderDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/stock/purchase-order/${param0}`, {
|
|
method: 'PUT',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
params: { ...queryParams },
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /stock/purchase-order/${param0} */
|
|
export async function stockcontrollerReceivepurchaseorder(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerReceivepurchaseorderParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/stock/purchase-order/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 DELETE /stock/purchase-order/${param0} */
|
|
export async function stockcontrollerDelpurchaseorder(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerDelpurchaseorderParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/stock/purchase-order/${param0}`, {
|
|
method: 'DELETE',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 PUT /stock/receiveTransfer/${param0} */
|
|
export async function stockcontrollerUpdatetransfer(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerUpdatetransferParams,
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/stock/receiveTransfer/${param0}`, {
|
|
method: 'PUT',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
params: { ...queryParams },
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /stock/receiveTransfer/${param0} */
|
|
export async function stockcontrollerReceivetransfer(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerReceivetransferParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/stock/receiveTransfer/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /stock/records */
|
|
export async function stockcontrollerGetstockrecords(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerGetstockrecordsParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.StockRecordListRes>('/stock/records', {
|
|
method: 'GET',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /stock/stock-point */
|
|
export async function stockcontrollerGetstockpoints(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerGetstockpointsParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.StockPointListRes>('/stock/stock-point', {
|
|
method: 'GET',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /stock/stock-point */
|
|
export async function stockcontrollerCreatestockpoint(
|
|
body: API.CreateStockPointDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.BooleanRes>('/stock/stock-point', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 PUT /stock/stock-point/${param0} */
|
|
export async function stockcontrollerUpdatestockpoint(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerUpdatestockpointParams,
|
|
body: API.UpdateStockPointDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/stock/stock-point/${param0}`, {
|
|
method: 'PUT',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
params: { ...queryParams },
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 DELETE /stock/stock-point/${param0} */
|
|
export async function stockcontrollerDelstockpoints(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.stockcontrollerDelstockpointsParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { id: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/stock/stock-point/${param0}`, {
|
|
method: 'DELETE',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /stock/stock-point/all */
|
|
export async function stockcontrollerGetallstockpoints(options?: {
|
|
[key: string]: any;
|
|
}) {
|
|
return request<API.StockPointAllRespone>('/stock/stock-point/all', {
|
|
method: 'GET',
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 GET /stock/transfer */
|
|
export async function stockcontrollerGettransfers(options?: {
|
|
[key: string]: any;
|
|
}) {
|
|
return request<any>('/stock/transfer', {
|
|
method: 'GET',
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /stock/transfer */
|
|
export async function stockcontrollerCreatetransfer(
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.BooleanRes>('/stock/transfer', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /stock/update */
|
|
export async function stockcontrollerUpdatestock(
|
|
body: API.UpdateStockDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.BooleanRes>('/stock/update', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|