Fix: 修复openapi没有更新的问题 #27
|
|
@ -235,7 +235,6 @@ declare namespace API {
|
||||||
total_tax?: number;
|
total_tax?: number;
|
||||||
customer_id?: number;
|
customer_id?: number;
|
||||||
customer_email?: string;
|
customer_email?: string;
|
||||||
billing_phone?: string;
|
|
||||||
order_key?: string;
|
order_key?: string;
|
||||||
billing?: OrderAddress;
|
billing?: OrderAddress;
|
||||||
shipping?: OrderAddress;
|
shipping?: OrderAddress;
|
||||||
|
|
@ -258,6 +257,8 @@ declare namespace API {
|
||||||
device_type?: string;
|
device_type?: string;
|
||||||
source_type?: string;
|
source_type?: string;
|
||||||
utm_source?: string;
|
utm_source?: string;
|
||||||
|
is_exchange?: boolean;
|
||||||
|
exchange_frequency?: number;
|
||||||
/** 创建时间 */
|
/** 创建时间 */
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
/** 更新时间 */
|
/** 更新时间 */
|
||||||
|
|
@ -377,7 +378,6 @@ declare namespace API {
|
||||||
total_tax?: number;
|
total_tax?: number;
|
||||||
customer_id?: number;
|
customer_id?: number;
|
||||||
customer_email?: string;
|
customer_email?: string;
|
||||||
billing_phone?: string;
|
|
||||||
order_key?: string;
|
order_key?: string;
|
||||||
billing?: OrderAddress;
|
billing?: OrderAddress;
|
||||||
shipping?: OrderAddress;
|
shipping?: OrderAddress;
|
||||||
|
|
@ -400,6 +400,8 @@ declare namespace API {
|
||||||
device_type?: string;
|
device_type?: string;
|
||||||
source_type?: string;
|
source_type?: string;
|
||||||
utm_source?: string;
|
utm_source?: string;
|
||||||
|
is_exchange?: boolean;
|
||||||
|
exchange_frequency?: number;
|
||||||
/** 创建时间 */
|
/** 创建时间 */
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
/** 更新时间 */
|
/** 更新时间 */
|
||||||
|
|
@ -1415,6 +1417,8 @@ declare namespace API {
|
||||||
sale_price?: number;
|
sale_price?: number;
|
||||||
/** 是否促销中 */
|
/** 是否促销中 */
|
||||||
on_sale?: boolean;
|
on_sale?: boolean;
|
||||||
|
/** 是否删除 */
|
||||||
|
on_delete?: boolean;
|
||||||
/** 创建时间 */
|
/** 创建时间 */
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
/** 更新时间 */
|
/** 更新时间 */
|
||||||
|
|
@ -1448,6 +1452,10 @@ declare namespace API {
|
||||||
| 'inherit';
|
| 'inherit';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
type wpproductcontrollerSearchproductsParams = {
|
||||||
|
name?: string;
|
||||||
|
};
|
||||||
|
|
||||||
type wpproductcontrollerSetconstitutionParams = {
|
type wpproductcontrollerSetconstitutionParams = {
|
||||||
id: number;
|
id: number;
|
||||||
};
|
};
|
||||||
|
|
@ -1500,6 +1508,8 @@ declare namespace API {
|
||||||
sale_price?: number;
|
sale_price?: number;
|
||||||
/** 是否促销中 */
|
/** 是否促销中 */
|
||||||
on_sale?: boolean;
|
on_sale?: boolean;
|
||||||
|
/** 是否删除 */
|
||||||
|
on_delete?: boolean;
|
||||||
/** 产品类型 */
|
/** 产品类型 */
|
||||||
type?: 'simple' | 'variable' | 'woosb';
|
type?: 'simple' | 'variable' | 'woosb';
|
||||||
/** 创建时间 */
|
/** 创建时间 */
|
||||||
|
|
|
||||||
|
|
@ -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<API.ProductsRes>('/wp_product/search', {
|
||||||
|
method: 'GET',
|
||||||
|
params: {
|
||||||
|
...params,
|
||||||
|
},
|
||||||
|
...(options || {}),
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/** 此处后端没有提供注释 PUT /wp_product/siteId/${param1}/products/${param0} */
|
/** 此处后端没有提供注释 PUT /wp_product/siteId/${param1}/products/${param0} */
|
||||||
export async function wpproductcontrollerUpdateproduct(
|
export async function wpproductcontrollerUpdateproduct(
|
||||||
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue