# JDV2TokenManagementApi

All URIs are relative to _http://localhost_

| Method                                                            | HTTP request                            | Description         |
| ----------------------------------------------------------------- | --------------------------------------- | ------------------- |
| [**apiCardBindingListByTokenGet**](#apicardbindinglistbytokenget) | **GET** /api/card-binding/list-by-token | 查询 Token 绑卡记录 |
| [**apiTokenCreatePost**](#apitokencreatepost)                     | **POST** /api/token/create              | 创建 Token          |
| [**apiTokenDeletePost**](#apitokendeletepost)                     | **POST** /api/token/delete              | 删除 Token          |
| [**apiTokenGetGet**](#apitokengetget)                             | **GET** /api/token/get                  | 获取 Token 信息     |
| [**apiTokenListGet**](#apitokenlistget)                           | **GET** /api/token/list                 | 列出 Token          |
| [**apiTokenUpdatePost**](#apitokenupdatepost)                     | **POST** /api/token/update              | 修改 Token          |

# **apiCardBindingListByTokenGet**

> KamiApiCamelOilV1ListCardBindingsByTokenRes apiCardBindingListByTokenGet()

### Example

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

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

let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let tokenId: number; //Token ID (default to undefined)

const { status, data } = await apiInstance.apiCardBindingListByTokenGet(
  current,
  pageSize,
  tokenId
);
```

### 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 |
| **tokenId**  | [**number**] | Token ID    | defaults to undefined |

### Return type

**KamiApiCamelOilV1ListCardBindingsByTokenRes**

### 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)

# **apiTokenCreatePost**

> KamiApiCamelOilV1CreateTokenRes apiTokenCreatePost()

### Example

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

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

let kamiApiCamelOilV1CreateTokenReq: KamiApiCamelOilV1CreateTokenReq; // (optional)

const { status, data } = await apiInstance.apiTokenCreatePost(
  kamiApiCamelOilV1CreateTokenReq
);
```

### Parameters

| Name                                | Type                                | Description | Notes |
| ----------------------------------- | ----------------------------------- | ----------- | ----- |
| **kamiApiCamelOilV1CreateTokenReq** | **KamiApiCamelOilV1CreateTokenReq** |             |       |

### Return type

**KamiApiCamelOilV1CreateTokenRes**

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

# **apiTokenDeletePost**

> KamiApiCamelOilV1DeleteTokenRes apiTokenDeletePost()

### Example

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

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

let kamiApiCamelOilV1DeleteTokenReq: KamiApiCamelOilV1DeleteTokenReq; // (optional)

const { status, data } = await apiInstance.apiTokenDeletePost(
  kamiApiCamelOilV1DeleteTokenReq
);
```

### Parameters

| Name                                | Type                                | Description | Notes |
| ----------------------------------- | ----------------------------------- | ----------- | ----- |
| **kamiApiCamelOilV1DeleteTokenReq** | **KamiApiCamelOilV1DeleteTokenReq** |             |       |

### Return type

**KamiApiCamelOilV1DeleteTokenRes**

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

# **apiTokenGetGet**

> KamiApiCamelOilV1GetTokenRes apiTokenGetGet()

### Example

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

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

let tokenId: number; //Token ID (default to undefined)

const { status, data } = await apiInstance.apiTokenGetGet(tokenId);
```

### Parameters

| Name        | Type         | Description | Notes                 |
| ----------- | ------------ | ----------- | --------------------- |
| **tokenId** | [**number**] | Token ID    | defaults to undefined |

### Return type

**KamiApiCamelOilV1GetTokenRes**

### 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)

# **apiTokenListGet**

> KamiApiCamelOilV1ListTokensRes apiTokenListGet()

### Example

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

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

let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let tokenName: string; //Token名称 (optional) (default to undefined)
let status: number; //状态 (optional) (default to undefined)

const { status, data } = await apiInstance.apiTokenListGet(
  current,
  pageSize,
  tokenName,
  status
);
```

### 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 |
| **tokenName** | [**string**] | Token名称   | (optional) defaults to undefined |
| **status**    | [**number**] | 状态        | (optional) defaults to undefined |

### Return type

**KamiApiCamelOilV1ListTokensRes**

### 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)

# **apiTokenUpdatePost**

> KamiApiCamelOilV1UpdateTokenRes apiTokenUpdatePost()

### Example

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

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

let kamiApiCamelOilV1UpdateTokenReq: KamiApiCamelOilV1UpdateTokenReq; // (optional)

const { status, data } = await apiInstance.apiTokenUpdatePost(
  kamiApiCamelOilV1UpdateTokenReq
);
```

### Parameters

| Name                                | Type                                | Description | Notes |
| ----------------------------------- | ----------------------------------- | ----------- | ----- |
| **kamiApiCamelOilV1UpdateTokenReq** | **KamiApiCamelOilV1UpdateTokenReq** |             |       |

### Return type

**KamiApiCamelOilV1UpdateTokenRes**

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