From adbc0871714e003e73e5309685e2fbc586b8c6f9 Mon Sep 17 00:00:00 2001 From: zhuotianyuan Date: Tue, 14 Oct 2025 17:14:09 +0800 Subject: [PATCH] =?UTF-8?q?20251014-zty-=E6=8D=A2=E8=B4=A7=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/servers/api/typings.d.ts | 14 ++++++++++++-- src/servers/api/wpProduct.ts | 15 +++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/src/servers/api/typings.d.ts b/src/servers/api/typings.d.ts index f906d72..d6f8bd1 100644 --- a/src/servers/api/typings.d.ts +++ b/src/servers/api/typings.d.ts @@ -235,7 +235,6 @@ declare namespace API { total_tax?: number; customer_id?: number; customer_email?: string; - billing_phone?: string; order_key?: string; billing?: OrderAddress; shipping?: OrderAddress; @@ -258,6 +257,8 @@ declare namespace API { device_type?: string; source_type?: string; utm_source?: string; + is_exchange?: boolean; + exchange_frequency?: number; /** 创建时间 */ createdAt: string; /** 更新时间 */ @@ -377,7 +378,6 @@ declare namespace API { total_tax?: number; customer_id?: number; customer_email?: string; - billing_phone?: string; order_key?: string; billing?: OrderAddress; shipping?: OrderAddress; @@ -400,6 +400,8 @@ declare namespace API { device_type?: string; source_type?: string; utm_source?: string; + is_exchange?: boolean; + exchange_frequency?: number; /** 创建时间 */ createdAt: string; /** 更新时间 */ @@ -1415,6 +1417,8 @@ declare namespace API { sale_price?: number; /** 是否促销中 */ on_sale?: boolean; + /** 是否删除 */ + on_delete?: boolean; /** 创建时间 */ createdAt: string; /** 更新时间 */ @@ -1448,6 +1452,10 @@ declare namespace API { | 'inherit'; }; + type wpproductcontrollerSearchproductsParams = { + name?: string; + }; + type wpproductcontrollerSetconstitutionParams = { id: number; }; @@ -1500,6 +1508,8 @@ declare namespace API { sale_price?: number; /** 是否促销中 */ on_sale?: boolean; + /** 是否删除 */ + on_delete?: boolean; /** 产品类型 */ type?: 'simple' | 'variable' | 'woosb'; /** 创建时间 */ diff --git a/src/servers/api/wpProduct.ts b/src/servers/api/wpProduct.ts index bb2e9c1..dd072dd 100644 --- a/src/servers/api/wpProduct.ts +++ b/src/servers/api/wpProduct.ts @@ -36,6 +36,21 @@ export async function wpproductcontrollerGetwpproducts( }); } +/** 此处后端没有提供注释 GET /wp_product/search */ +export async function wpproductcontrollerSearchproducts( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.wpproductcontrollerSearchproductsParams, + options?: { [key: string]: any }, +) { + return request('/wp_product/search', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} + /** 此处后端没有提供注释 PUT /wp_product/siteId/${param1}/products/${param0} */ export async function wpproductcontrollerUpdateproduct( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)