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