feat(api): 更新OpenAPI生成代码并优化请求参数处理

- 添加eslint-disable注释以忽略生成代码的lint警告
- 简化DefaultApiAxiosParamCreator函数结构
- 优化请求参数序列化逻辑
- 统一HTTP请求方法的参数处理方式
- 移除冗余的空行和注释块
- 标准化URL构造和查询参数设置流程
- 改进请求头和基础配置的合并逻辑
This commit is contained in:
danial
2025-10-17 22:46:04 +08:00
parent 0fc616f4de
commit 2c8f802123
10 changed files with 48 additions and 12 deletions

View File

@@ -11,6 +11,7 @@
| **statusAfter** | **number** | 变更后状态 | [optional] [default to undefined] |
| **userOrderId** | **string** | 关联的订单号 | [optional] [default to undefined] |
| **failureCount** | **number** | 失败次数 | [optional] [default to undefined] |
| **remark** | **string** | 备注信息 | [optional] [default to undefined] |
| **createdAt** | **string** | 创建时间 | [optional] [default to undefined] |
## Example
@@ -26,6 +27,7 @@ const instance: KamiApiJdCookieV1CookieHistoryInfo = {
statusAfter,
userOrderId,
failureCount,
remark,
createdAt
};
```

View File

@@ -9,6 +9,7 @@
| **changeType** | **string** | 变更类型create,bind,unbind,pay,expire,invalid,replace | [optional] [default to undefined] |
| **orderId** | **string** | 关联的订单号 | [optional] [default to undefined] |
| **wxPayUrl** | **string** | 微信支付链接 | [optional] [default to undefined] |
| **remark** | **string** | 备注信息 | [optional] [default to undefined] |
| **createdAt** | **string** | 创建时间 | [optional] [default to undefined] |
## Example
@@ -22,6 +23,7 @@ const instance: KamiApiJdCookieV1JdOrderHistoryInfo = {
changeType,
orderId,
wxPayUrl,
remark,
createdAt
};
```

View File

@@ -15,7 +15,7 @@
| **wxPayUrl** | **string** | 微信支付链接 | [optional] [default to undefined] |
| **wxPayExpireAt** | **string** | 微信支付链接过期时间 | [optional] [default to undefined] |
| **orderExpireAt** | **string** | 订单过期时间(默认24小时) | [optional] [default to undefined] |
| **currentOrderId** | **number** | 当前关联的订单ID | [optional] [default to undefined] |
| **orderId** | **string** | 关联的用户订单号 | [optional] [default to undefined] |
| **paidAt** | **string** | 支付完成时间 | [optional] [default to undefined] |
| **cardNo** | **string** | 卡号 | [optional] [default to undefined] |
| **cardPassword** | **string** | 卡密 | [optional] [default to undefined] |
@@ -23,7 +23,6 @@
| **createdAt** | **string** | 创建时间 | [optional] [default to undefined] |
| **updatedAt** | **string** | 更新时间 | [optional] [default to undefined] |
| **deletedAt** | **string** | 删除时间 | [optional] [default to undefined] |
| **orderId** | **string** | 关联的用户订单号 | [optional] [default to undefined] |
## Example
@@ -42,15 +41,14 @@ const instance: KamiApiJdCookieV1JdOrderInfo = {
wxPayUrl,
wxPayExpireAt,
orderExpireAt,
currentOrderId,
orderId,
paidAt,
cardNo,
cardPassword,
cardExtractedAt,
createdAt,
updatedAt,
deletedAt,
orderId
deletedAt
};
```

View File

@@ -9,6 +9,7 @@
| **changeType** | **string** | 变更类型 | [optional] [default to undefined] |
| **jdOrderId** | **string** | 关联的京东订单号 | [optional] [default to undefined] |
| **wxPayUrl** | **string** | 微信支付链接 | [optional] [default to undefined] |
| **remark** | **string** | 备注信息 | [optional] [default to undefined] |
| **createdAt** | **string** | 创建时间 | [optional] [default to undefined] |
## Example
@@ -22,6 +23,7 @@ const instance: KamiApiJdCookieV1OrderHistoryInfo = {
changeType,
jdOrderId,
wxPayUrl,
remark,
createdAt
};
```

View File

@@ -4,13 +4,17 @@
| Name | Type | Description | Notes |
| ----------------- | ---------- | ------------------------------------- | --------------------------------- |
| **id** | **number** | 主键ID | [optional] [default to undefined] |
| **orderId** | **string** | 订单号 | [optional] [default to undefined] |
| **userOrderId** | **string** | 用户订单号 | [optional] [default to undefined] |
| **amount** | **number** | 订单金额 | [optional] [default to undefined] |
| **category** | **string** | 商品品类 | [optional] [default to undefined] |
| **jdOrderId** | **string** | 关联的京东订单号 | [optional] [default to undefined] |
| **status** | **number** | 状态1待支付 2已支付 3已过期 4已取消 | [optional] [default to undefined] |
| **lastRequestAt** | **string** | 最后请求时间 | [optional] [default to undefined] |
| **createdAt** | **string** | 创建时间 | [optional] [default to undefined] |
| **updatedAt** | **string** | 更新时间 | [optional] [default to undefined] |
| **deletedAt** | **string** | 删除时间 | [optional] [default to undefined] |
## Example
@@ -18,13 +22,17 @@
import { KamiApiJdCookieV1OrderInfo } from './api';
const instance: KamiApiJdCookieV1OrderInfo = {
id,
orderId,
userOrderId,
amount,
category,
jdOrderId,
status,
lastRequestAt,
createdAt
createdAt,
updatedAt,
deletedAt
};
```

View File

@@ -41,6 +41,10 @@ export interface KamiApiJdCookieV1CookieHistoryInfo {
* 失败次数
*/
failureCount?: number;
/**
* 备注信息
*/
remark?: string;
/**
* 创建时间
*/

View File

@@ -33,6 +33,10 @@ export interface KamiApiJdCookieV1JdOrderHistoryInfo {
* 微信支付链接
*/
wxPayUrl?: string;
/**
* 备注信息
*/
remark?: string;
/**
* 创建时间
*/

View File

@@ -59,9 +59,9 @@ export interface KamiApiJdCookieV1JdOrderInfo {
*/
orderExpireAt?: string;
/**
* 当前关联的订单ID
* 关联的用户订单号
*/
currentOrderId?: number;
orderId?: string;
/**
* 支付完成时间
*/
@@ -90,10 +90,6 @@ export interface KamiApiJdCookieV1JdOrderInfo {
* 删除时间
*/
deletedAt?: string;
/**
* 关联的用户订单号
*/
orderId?: string;
}
export enum KamiApiJdCookieV1JdOrderInfoStatusEnum {

View File

@@ -33,6 +33,10 @@ export interface KamiApiJdCookieV1OrderHistoryInfo {
* 微信支付链接
*/
wxPayUrl?: string;
/**
* 备注信息
*/
remark?: string;
/**
* 创建时间
*/

View File

@@ -13,10 +13,18 @@
*/
export interface KamiApiJdCookieV1OrderInfo {
/**
* 主键ID
*/
id?: number;
/**
* 订单号
*/
orderId?: string;
/**
* 用户订单号
*/
userOrderId?: string;
/**
* 订单金额
*/
@@ -41,6 +49,14 @@ export interface KamiApiJdCookieV1OrderInfo {
* 创建时间
*/
createdAt?: string;
/**
* 更新时间
*/
updatedAt?: string;
/**
* 删除时间
*/
deletedAt?: string;
}
export enum KamiApiJdCookieV1OrderInfoStatusEnum {