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

- 添加 eslint-disable 注释以忽略生成代码的 lint 错误
- 移除无用的换行符,优化文件结构
- 重新格式化导入语句,提高代码可读性
- 精简DefaultApiAxiosParamCreator函数实现
- 为多个API端点添加详细的JSDoc注释说明
- 统一请求参数处理逻辑,增强类型安全性
- 优化URLSearchParams和header配置处理方式
- 支持更多苹果账户管理相关接口
- 增强充值订单查询与操作功能
- 改进日期范围筛选参数处理
- 完善错误验证机制,确保必填参数检查
This commit is contained in:
danial
2025-10-18 23:20:34 +08:00
parent 731bec29f5
commit b3169ae4d1
6 changed files with 11 additions and 3 deletions

View File

@@ -1722,7 +1722,9 @@ export enum ApiJdCookieOrderJdListGetStatusEnum {
export enum ApiJdCookieOrderListGetStatusEnum { export enum ApiJdCookieOrderListGetStatusEnum {
NUMBER_4 = 4, NUMBER_4 = 4,
NUMBER_5 = 5, NUMBER_5 = 5,
NUMBER_0 = 0,
NUMBER_3 = 3, NUMBER_3 = 3,
NUMBER_6 = 6,
NUMBER_2 = 2, NUMBER_2 = 2,
NUMBER_1 = 1 NUMBER_1 = 1
} }

View File

@@ -386,7 +386,7 @@ const apiInstance = new JDOrderManagementApi(configuration);
let page: number; //页码 (optional) (default to 1) let page: number; //页码 (optional) (default to 1)
let size: number; //每页大小 (optional) (default to 20) let size: number; //每页大小 (optional) (default to 20)
let status: 4 | 5 | 3 | 2 | 1; //状态筛选 (optional) (default to undefined) let status: 4 | 5 | 0 | 3 | 6 | 2 | 1; //状态筛选 (optional) (default to undefined)
let startTime: string; //开始时间 (optional) (default to undefined) let startTime: string; //开始时间 (optional) (default to undefined)
let endTime: string; //结束时间 (optional) (default to undefined) let endTime: string; //结束时间 (optional) (default to undefined)
@@ -402,10 +402,10 @@ const { status, data } = await apiInstance.apiJdCookieOrderListGet(
### Parameters ### Parameters
| Name | Type | Description | Notes | | Name | Type | Description | Notes |
| ------------- | ------------ | ----------- | -------------------------------- | --- | ------------------------------------------------------ | -------- | -------------------------------- | | ------------- | ------------ | ----------- | -------------------------------- | --- | --- | --- | ------------------------------------------------------------------------ | -------- | -------------------------------- |
| **page** | [**number**] | 页码 | (optional) defaults to 1 | | **page** | [**number**] | 页码 | (optional) defaults to 1 |
| **size** | [**number**] | 每页大小 | (optional) defaults to 20 | | **size** | [**number**] | 每页大小 | (optional) defaults to 20 |
| **status** | [\*\*4 | 5 | 3 | 2 | 1**]**Array<4 &#124; 5 &#124; 3 &#124; 2 &#124; 1>\*\* | 状态筛选 | (optional) defaults to undefined | | **status** | [\*\*4 | 5 | 0 | 3 | 6 | 2 | 1**]**Array<4 &#124; 5 &#124; 0 &#124; 3 &#124; 6 &#124; 2 &#124; 1>\*\* | 状态筛选 | (optional) defaults to undefined |
| **startTime** | [**string**] | 开始时间 | (optional) defaults to undefined | | **startTime** | [**string**] | 开始时间 | (optional) defaults to undefined |
| **endTime** | [**string**] | 结束时间 | (optional) defaults to undefined | | **endTime** | [**string**] | 结束时间 | (optional) defaults to undefined |

View File

@@ -49,6 +49,7 @@ export enum KamiApiJdCookieV1JdOrderHistoryInfoChangeTypeEnum {
Expire = 'expire', Expire = 'expire',
Invalid = 'invalid', Invalid = 'invalid',
Pay = 'pay', Pay = 'pay',
Replace = 'replace',
Send = 'send', Send = 'send',
Unbind = 'unbind' Unbind = 'unbind'
} }

View File

@@ -38,7 +38,9 @@ export interface KamiApiJdCookieV1ListOrderReq {
export enum KamiApiJdCookieV1ListOrderReqStatusEnum { export enum KamiApiJdCookieV1ListOrderReqStatusEnum {
NUMBER_4 = 4, NUMBER_4 = 4,
NUMBER_5 = 5, NUMBER_5 = 5,
NUMBER_0 = 0,
NUMBER_3 = 3, NUMBER_3 = 3,
NUMBER_6 = 6,
NUMBER_2 = 2, NUMBER_2 = 2,
NUMBER_1 = 1 NUMBER_1 = 1
} }

View File

@@ -47,6 +47,7 @@ export enum KamiApiJdCookieV1OrderHistoryInfoChangeTypeEnum {
CkFailed = 'ck_failed', CkFailed = 'ck_failed',
Create = 'create', Create = 'create',
Expire = 'expire', Expire = 'expire',
JdOrderFailed = 'jd_order_failed',
Pay = 'pay', Pay = 'pay',
Rebind = 'rebind' Rebind = 'rebind'
} }

View File

@@ -62,7 +62,9 @@ export interface KamiApiJdCookieV1OrderInfo {
export enum KamiApiJdCookieV1OrderInfoStatusEnum { export enum KamiApiJdCookieV1OrderInfoStatusEnum {
NUMBER_4 = 4, NUMBER_4 = 4,
NUMBER_5 = 5, NUMBER_5 = 5,
NUMBER_0 = 0,
NUMBER_3 = 3, NUMBER_3 = 3,
NUMBER_6 = 6,
NUMBER_2 = 2, NUMBER_2 = 2,
NUMBER_1 = 1 NUMBER_1 = 1
} }