- 新增 `apiAesEncryptionParamsGet` 用于获取AES加密参数(密钥和初始化向量) - 新增jd-v2账号管理API,包括账号状态检测、历史记录、账号列表和统计信息接口 - 更新API生成文件,支持camelOil账号和订单管理相关类型与接口 - 配置文件中添加了Bash mkdir命令的lint任务 - 文档中新增Git hooks相关说明及API客户端新增camelOil相关客户段说明 - ESLint配置更新为现代flat config,支持TypeScript和Vue3 Composition API - 规范了开发和生产环境的API基础URL配置说明
12 KiB
JDV2OrderApi
All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| apiJdV2OrderAccountOrdersGet | GET /api/jd-v2/order/accountOrders | 账号历史订单 |
| apiJdV2OrderCallbackPost | POST /api/jd-v2/order/callback | 手动回调 |
| apiJdV2OrderDetailGet | GET /api/jd-v2/order/detail | 订单详情 |
| apiJdV2OrderHistoryGet | GET /api/jd-v2/order/history | 订单历史记录 |
| apiJdV2OrderListGet | GET /api/jd-v2/order/list | 订单列表 |
| apiJdV2OrderSubmitPost | POST /api/jd-v2/order/submit | 提交订单 |
apiJdV2OrderAccountOrdersGet
KamiApiCamelOilV1AccountOrderListRes apiJdV2OrderAccountOrdersGet()
Example
import { JDV2OrderApi, Configuration } from './api';
const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);
let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let accountId: number; //账号ID (default to undefined)
let status: 2 | 3 | 0 | 1; //订单状态筛选 (optional) (default to undefined)
let payStatus: 1 | 2 | 3 | 0; //支付状态筛选 (optional) (default to undefined)
let dateRange: Array<string>; //时间范围 (optional) (default to undefined)
const { status, data } = await apiInstance.apiJdV2OrderAccountOrdersGet(
current,
pageSize,
accountId,
status,
payStatus,
dateRange
);
Parameters
| Name | Type | Description | Notes | |||||
|---|---|---|---|---|---|---|---|---|
| current | [number] | 页数 | defaults to undefined | |||||
| pageSize | [**5 | 10 | 15 | 20 | 50 | 100**]**Array<5 | 10 | 15 | 20 | 50 | 100>** | 页码 | defaults to undefined |
| accountId | [number] | 账号ID | defaults to undefined | |||||
| status | [**2 | 3 | 0 | 1**]**Array<2 | 3 | 0 | 1>** | 订单状态筛选 | (optional) defaults to undefined | ||
| payStatus | [**1 | 2 | 3 | 0**]**Array<1 | 2 | 3 | 0>** | 支付状态筛选 | (optional) defaults to undefined | ||
| dateRange | Array<string> | 时间范围 | (optional) defaults to undefined |
Return type
KamiApiCamelOilV1AccountOrderListRes
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiJdV2OrderCallbackPost
KamiApiCamelOilV1OrderCallbackRes apiJdV2OrderCallbackPost()
Example
import {
JDV2OrderApi,
Configuration,
KamiApiCamelOilV1OrderCallbackReq
} from './api';
const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);
let kamiApiCamelOilV1OrderCallbackReq: KamiApiCamelOilV1OrderCallbackReq; // (optional)
const { status, data } = await apiInstance.apiJdV2OrderCallbackPost(
kamiApiCamelOilV1OrderCallbackReq
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| kamiApiCamelOilV1OrderCallbackReq | KamiApiCamelOilV1OrderCallbackReq |
Return type
KamiApiCamelOilV1OrderCallbackRes
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiJdV2OrderDetailGet
KamiApiCamelOilV1OrderDetailRes apiJdV2OrderDetailGet()
Example
import { JDV2OrderApi, Configuration } from './api';
const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);
let orderNo: string; //订单号 (default to undefined)
const { status, data } = await apiInstance.apiJdV2OrderDetailGet(orderNo);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| orderNo | [string] | 订单号 | defaults to undefined |
Return type
KamiApiCamelOilV1OrderDetailRes
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiJdV2OrderHistoryGet
KamiApiCamelOilV1OrderHistoryRes apiJdV2OrderHistoryGet()
Example
import { JDV2OrderApi, Configuration } from './api';
const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);
let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let orderNo: string; //订单号 (default to undefined)
const { status, data } = await apiInstance.apiJdV2OrderHistoryGet(
current,
pageSize,
orderNo
);
Parameters
| Name | Type | Description | Notes | |||||
|---|---|---|---|---|---|---|---|---|
| current | [number] | 页数 | defaults to undefined | |||||
| pageSize | [**5 | 10 | 15 | 20 | 50 | 100**]**Array<5 | 10 | 15 | 20 | 50 | 100>** | 页码 | defaults to undefined |
| orderNo | [string] | 订单号 | defaults to undefined |
Return type
KamiApiCamelOilV1OrderHistoryRes
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiJdV2OrderListGet
KamiApiCamelOilV1ListOrderRes apiJdV2OrderListGet()
Example
import { JDV2OrderApi, Configuration } from './api';
const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);
let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let merchantOrderId: string; //商户订单号 (optional) (default to undefined)
let orderNo: string; //系统订单号 (optional) (default to undefined)
let accountId: number; //账号ID (optional) (default to undefined)
let status: 2 | 3 | 0 | 1; //订单状态 (optional) (default to undefined)
let payStatus: 1 | 2 | 3 | 0; //支付状态 (optional) (default to undefined)
let dateRange: Array<string>; //时间范围 (optional) (default to undefined)
const { status, data } = await apiInstance.apiJdV2OrderListGet(
current,
pageSize,
merchantOrderId,
orderNo,
accountId,
status,
payStatus,
dateRange
);
Parameters
| Name | Type | Description | Notes | |||||
|---|---|---|---|---|---|---|---|---|
| current | [number] | 页数 | defaults to undefined | |||||
| pageSize | [**5 | 10 | 15 | 20 | 50 | 100**]**Array<5 | 10 | 15 | 20 | 50 | 100>** | 页码 | defaults to undefined |
| merchantOrderId | [string] | 商户订单号 | (optional) defaults to undefined | |||||
| orderNo | [string] | 系统订单号 | (optional) defaults to undefined | |||||
| accountId | [number] | 账号ID | (optional) defaults to undefined | |||||
| status | [**2 | 3 | 0 | 1**]**Array<2 | 3 | 0 | 1>** | 订单状态 | (optional) defaults to undefined | ||
| payStatus | [**1 | 2 | 3 | 0**]**Array<1 | 2 | 3 | 0>** | 支付状态 | (optional) defaults to undefined | ||
| dateRange | Array<string> | 时间范围 | (optional) defaults to undefined |
Return type
KamiApiCamelOilV1ListOrderRes
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
apiJdV2OrderSubmitPost
KamiApiCamelOilV1SubmitOrderRes apiJdV2OrderSubmitPost()
Example
import {
JDV2OrderApi,
Configuration,
KamiApiCamelOilV1SubmitOrderReq
} from './api';
const configuration = new Configuration();
const apiInstance = new JDV2OrderApi(configuration);
let kamiApiCamelOilV1SubmitOrderReq: KamiApiCamelOilV1SubmitOrderReq; // (optional)
const { status, data } = await apiInstance.apiJdV2OrderSubmitPost(
kamiApiCamelOilV1SubmitOrderReq
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| kamiApiCamelOilV1SubmitOrderReq | KamiApiCamelOilV1SubmitOrderReq |
Return type
KamiApiCamelOilV1SubmitOrderRes
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]