# JDV2PrefetchApi

All URIs are relative to _http://localhost_

| Method                                                    | HTTP request                       | Description        |
| --------------------------------------------------------- | ---------------------------------- | ------------------ |
| [**apiJdV2PrefetchLogsGet**](#apijdv2prefetchlogsget)     | **GET** /api/jd-v2/prefetch/logs   | 获取预拉取订单日志 |
| [**apiJdV2PrefetchOrdersGet**](#apijdv2prefetchordersget) | **GET** /api/jd-v2/prefetch/orders | 获取预拉取订单列表 |

# **apiJdV2PrefetchLogsGet**

> KamiApiCamelOilV1GetPrefetchOrderLogsRes apiJdV2PrefetchLogsGet()

### Example

```typescript
import { JDV2PrefetchApi, Configuration } from './api';

const configuration = new Configuration();
const apiInstance = new JDV2PrefetchApi(configuration);

let startTime: string; //开始时间 (default to undefined)
let endTime: string; //结束时间 (default to undefined)

const { status, data } = await apiInstance.apiJdV2PrefetchLogsGet(
  startTime,
  endTime
);
```

### Parameters

| Name          | Type         | Description | Notes                 |
| ------------- | ------------ | ----------- | --------------------- |
| **startTime** | [**string**] | 开始时间    | defaults to undefined |
| **endTime**   | [**string**] | 结束时间    | defaults to undefined |

### Return type

**KamiApiCamelOilV1GetPrefetchOrderLogsRes**

### 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]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **apiJdV2PrefetchOrdersGet**

> KamiApiCamelOilV1ListPrefetchOrderRes apiJdV2PrefetchOrdersGet()

### Example

```typescript
import { JDV2PrefetchApi, Configuration } from './api';

const configuration = new Configuration();
const apiInstance = new JDV2PrefetchApi(configuration);

let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let accountId: number; //账号ID (optional) (default to undefined)
let accountName: string; //账号名称 (optional) (default to undefined)
let amount: number; //订单金额 (optional) (default to undefined)
let platformOrderNo: string; //平台订单号 (optional) (default to undefined)
let status: 3 | 4 | 2 | 1; //状态：1待匹配 2已匹配 3已过期 4已失效 (optional) (default to undefined)
let dateRange: Array<string>; //时间范围 (optional) (default to undefined)

const { status, data } = await apiInstance.apiJdV2PrefetchOrdersGet(
  current,
  pageSize,
  accountId,
  accountName,
  amount,
  platformOrderNo,
  status,
  dateRange
);
```

### Parameters

| Name                | Type                    | Description | Notes                            |
| ------------------- | ----------------------- | ----------- | -------------------------------- | --------------------------------------------- | ------------------------------------- | ----------------------------------------------------------------------- | ---- | --------------------- |
| **current**         | [**number**]            | 页数        | defaults to undefined            |
| **pageSize**        | [\*\*5                  | 10          | 15                               | 20                                            | 50                                    | 100**]**Array<5 &#124; 10 &#124; 15 &#124; 20 &#124; 50 &#124; 100>\*\* | 页码 | defaults to undefined |
| **accountId**       | [**number**]            | 账号ID      | (optional) defaults to undefined |
| **accountName**     | [**string**]            | 账号名称    | (optional) defaults to undefined |
| **amount**          | [**number**]            | 订单金额    | (optional) defaults to undefined |
| **platformOrderNo** | [**string**]            | 平台订单号  | (optional) defaults to undefined |
| **status**          | [\*\*3                  | 4           | 2                                | 1**]**Array<3 &#124; 4 &#124; 2 &#124; 1>\*\* | 状态：1待匹配 2已匹配 3已过期 4已失效 | (optional) defaults to undefined                                        |
| **dateRange**       | **Array&lt;string&gt;** | 时间范围    | (optional) defaults to undefined |

### Return type

**KamiApiCamelOilV1ListPrefetchOrderRes**

### 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]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
