52 lines
1.3 KiB
TypeScript
52 lines
1.3 KiB
TypeScript
// @ts-ignore
|
|
/* eslint-disable */
|
|
import { request } from 'umi';
|
|
|
|
/** 此处后端没有提供注释 GET /webhook/ */
|
|
export async function webhookcontrollerTest(options?: { [key: string]: any }) {
|
|
return request<any>('/webhook/', {
|
|
method: 'GET',
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /webhook/shoppy */
|
|
export async function webhookcontrollerHandleshoppywebhook(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.webhookcontrollerHandleshoppywebhookParams,
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/webhook/shoppy', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
params: {
|
|
...params,
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /webhook/woocommerce */
|
|
export async function webhookcontrollerHandlewoowebhook(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.webhookcontrollerHandlewoowebhookParams,
|
|
body: Record<string, any>,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<any>('/webhook/woocommerce', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'text/plain',
|
|
},
|
|
params: {
|
|
...params,
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|