133 lines
3.5 KiB
TypeScript
133 lines
3.5 KiB
TypeScript
// @ts-ignore
|
|
/* eslint-disable */
|
|
import request from "../request";
|
|
|
|
/** 创建经销商仓库 POST /operation/createDealerWarehouse */
|
|
export async function createDealerWarehouse(
|
|
body: BusinessAPI.DealerWarehouseCreateCmd,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<BusinessAPI.SingleResponseDealerWarehouseVO>(
|
|
"/operation/createDealerWarehouse",
|
|
{
|
|
method: "POST",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
},
|
|
);
|
|
}
|
|
|
|
/** 经销商仓库删除 DELETE /operation/destroyDealerWarehouse */
|
|
export async function destroyDealerWarehouse(
|
|
body: BusinessAPI.DealerWarehouseDestroyCmd,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<BusinessAPI.Response>("/operation/destroyDealerWarehouse", {
|
|
method: "DELETE",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 经销商仓库列表 GET /operation/listDealerWarehouse */
|
|
export async function listDealerWarehouse(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: BusinessAPI.listDealerWarehouseParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<BusinessAPI.MultiResponseDealerWarehouseVO>(
|
|
"/operation/listDealerWarehouse",
|
|
{
|
|
method: "GET",
|
|
params: {
|
|
...params,
|
|
dealerWarehouseListQry: undefined,
|
|
...params["dealerWarehouseListQry"],
|
|
},
|
|
...(options || {}),
|
|
},
|
|
);
|
|
}
|
|
|
|
/** 经销商仓库列表 GET /operation/pageDealerWarehouse */
|
|
export async function pageDealerWarehouse(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: BusinessAPI.pageDealerWarehouseParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<BusinessAPI.PageResponseDealerWarehouseVO>(
|
|
"/operation/pageDealerWarehouse",
|
|
{
|
|
method: "GET",
|
|
params: {
|
|
...params,
|
|
dealerWarehousePageQry: undefined,
|
|
...params["dealerWarehousePageQry"],
|
|
},
|
|
...(options || {}),
|
|
},
|
|
);
|
|
}
|
|
|
|
/** 经销商仓库详情 GET /operation/showDealerWarehouse */
|
|
export async function showDealerWarehouse(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: BusinessAPI.showDealerWarehouseParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<BusinessAPI.SingleResponseDealerWarehouseVO>(
|
|
"/operation/showDealerWarehouse",
|
|
{
|
|
method: "GET",
|
|
params: {
|
|
...params,
|
|
dealerWarehouseShowQry: undefined,
|
|
...params["dealerWarehouseShowQry"],
|
|
},
|
|
...(options || {}),
|
|
},
|
|
);
|
|
}
|
|
|
|
/** 经销商仓库更新 PUT /operation/updateDealerWarehouse */
|
|
export async function updateDealerWarehouse(
|
|
body: BusinessAPI.DealerWarehouseUpdateCmd,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<BusinessAPI.SingleResponseDealerWarehouseVO>(
|
|
"/operation/updateDealerWarehouse",
|
|
{
|
|
method: "PUT",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
},
|
|
);
|
|
}
|
|
|
|
/** 经销商仓库更新 PATCH /operation/updateDealerWarehouse */
|
|
export async function updateDealerWarehouse1(
|
|
body: BusinessAPI.DealerWarehouseUpdateCmd,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<BusinessAPI.SingleResponseDealerWarehouseVO>(
|
|
"/operation/updateDealerWarehouse",
|
|
{
|
|
method: "PATCH",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
},
|
|
);
|
|
}
|