- 新增 JDV2TokenManagementApi 接口文件,包含创建、删除、获取及列出 Token 的功能 - 添加与 Token 相关的请求和响应模型,如 CreateTokenReq/Res、DeleteTokenReq/Res 等 - 在 api.ts 中导出新的 JDV2TokenManagementApi 模块 - 更新 default-api.ts,移除已弃用的 iTunes 充值回调和处理接口 - 增加了 Token 绑卡记录查询接口及对应的数据模型 - 调整了部分枚举值顺序以符合业务逻辑 - 升级 Node.js 版本至 24.11.1 并更新 pnpm 至 10.23.0
893 lines
27 KiB
TypeScript
893 lines
27 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
*
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document:
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
import type { Configuration } from '../configuration';
|
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
import globalAxios from 'axios';
|
|
// Some imports not used depending on template conditions
|
|
// @ts-ignore
|
|
import {
|
|
DUMMY_BASE_URL,
|
|
assertParamExists,
|
|
setApiKeyToObject,
|
|
setBasicAuthToObject,
|
|
setBearerAuthToObject,
|
|
setOAuthToObject,
|
|
setSearchParams,
|
|
serializeDataIfNeeded,
|
|
toPathString,
|
|
createRequestFunction
|
|
} from '../common';
|
|
// @ts-ignore
|
|
import {
|
|
BASE_PATH,
|
|
COLLECTION_FORMATS,
|
|
type RequestArgs,
|
|
BaseAPI,
|
|
RequiredError,
|
|
operationServerMap
|
|
} from '../base';
|
|
// @ts-ignore
|
|
import type { KamiApiCamelOilV1CreateTokenReq } from '../models';
|
|
// @ts-ignore
|
|
import type { KamiApiCamelOilV1CreateTokenRes } from '../models';
|
|
// @ts-ignore
|
|
import type { KamiApiCamelOilV1DeleteTokenReq } from '../models';
|
|
// @ts-ignore
|
|
import type { KamiApiCamelOilV1DeleteTokenRes } from '../models';
|
|
// @ts-ignore
|
|
import type { KamiApiCamelOilV1GetTokenRes } from '../models';
|
|
// @ts-ignore
|
|
import type { KamiApiCamelOilV1ListCardBindingsByTokenRes } from '../models';
|
|
// @ts-ignore
|
|
import type { KamiApiCamelOilV1ListTokensRes } from '../models';
|
|
/**
|
|
* JDV2TokenManagementApi - axios parameter creator
|
|
*/
|
|
export const JDV2TokenManagementApiAxiosParamCreator = function (
|
|
configuration?: Configuration
|
|
) {
|
|
return {
|
|
/**
|
|
*
|
|
* @summary 查询 Token 绑卡记录
|
|
* @param {number} current 页数
|
|
* @param {ApiCardBindingListByTokenGetPageSizeEnum} pageSize 页码
|
|
* @param {number} tokenId Token ID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiCardBindingListByTokenGet: async (
|
|
current: number,
|
|
pageSize: ApiCardBindingListByTokenGetPageSizeEnum,
|
|
tokenId: number,
|
|
options: RawAxiosRequestConfig = {}
|
|
): Promise<RequestArgs> => {
|
|
// verify required parameter 'current' is not null or undefined
|
|
assertParamExists('apiCardBindingListByTokenGet', 'current', current);
|
|
// verify required parameter 'pageSize' is not null or undefined
|
|
assertParamExists('apiCardBindingListByTokenGet', 'pageSize', pageSize);
|
|
// verify required parameter 'tokenId' is not null or undefined
|
|
assertParamExists('apiCardBindingListByTokenGet', 'tokenId', tokenId);
|
|
const localVarPath = `/api/card-binding/list-by-token`;
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
let baseOptions;
|
|
if (configuration) {
|
|
baseOptions = configuration.baseOptions;
|
|
}
|
|
|
|
const localVarRequestOptions = {
|
|
method: 'GET',
|
|
...baseOptions,
|
|
...options
|
|
};
|
|
const localVarHeaderParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
if (current !== undefined) {
|
|
localVarQueryParameter['current'] = current;
|
|
}
|
|
|
|
if (pageSize !== undefined) {
|
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
}
|
|
|
|
if (tokenId !== undefined) {
|
|
localVarQueryParameter['tokenId'] = tokenId;
|
|
}
|
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
let headersFromBaseOptions =
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
localVarRequestOptions.headers = {
|
|
...localVarHeaderParameter,
|
|
...headersFromBaseOptions,
|
|
...options.headers
|
|
};
|
|
|
|
return {
|
|
url: toPathString(localVarUrlObj),
|
|
options: localVarRequestOptions
|
|
};
|
|
},
|
|
/**
|
|
*
|
|
* @summary 创建 Token
|
|
* @param {KamiApiCamelOilV1CreateTokenReq} [kamiApiCamelOilV1CreateTokenReq]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenCreatePost: async (
|
|
kamiApiCamelOilV1CreateTokenReq?: KamiApiCamelOilV1CreateTokenReq,
|
|
options: RawAxiosRequestConfig = {}
|
|
): Promise<RequestArgs> => {
|
|
const localVarPath = `/api/token/create`;
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
let baseOptions;
|
|
if (configuration) {
|
|
baseOptions = configuration.baseOptions;
|
|
}
|
|
|
|
const localVarRequestOptions = {
|
|
method: 'POST',
|
|
...baseOptions,
|
|
...options
|
|
};
|
|
const localVarHeaderParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
let headersFromBaseOptions =
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
localVarRequestOptions.headers = {
|
|
...localVarHeaderParameter,
|
|
...headersFromBaseOptions,
|
|
...options.headers
|
|
};
|
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
kamiApiCamelOilV1CreateTokenReq,
|
|
localVarRequestOptions,
|
|
configuration
|
|
);
|
|
|
|
return {
|
|
url: toPathString(localVarUrlObj),
|
|
options: localVarRequestOptions
|
|
};
|
|
},
|
|
/**
|
|
*
|
|
* @summary 删除 Token
|
|
* @param {KamiApiCamelOilV1DeleteTokenReq} [kamiApiCamelOilV1DeleteTokenReq]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenDeletePost: async (
|
|
kamiApiCamelOilV1DeleteTokenReq?: KamiApiCamelOilV1DeleteTokenReq,
|
|
options: RawAxiosRequestConfig = {}
|
|
): Promise<RequestArgs> => {
|
|
const localVarPath = `/api/token/delete`;
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
let baseOptions;
|
|
if (configuration) {
|
|
baseOptions = configuration.baseOptions;
|
|
}
|
|
|
|
const localVarRequestOptions = {
|
|
method: 'POST',
|
|
...baseOptions,
|
|
...options
|
|
};
|
|
const localVarHeaderParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
let headersFromBaseOptions =
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
localVarRequestOptions.headers = {
|
|
...localVarHeaderParameter,
|
|
...headersFromBaseOptions,
|
|
...options.headers
|
|
};
|
|
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
kamiApiCamelOilV1DeleteTokenReq,
|
|
localVarRequestOptions,
|
|
configuration
|
|
);
|
|
|
|
return {
|
|
url: toPathString(localVarUrlObj),
|
|
options: localVarRequestOptions
|
|
};
|
|
},
|
|
/**
|
|
*
|
|
* @summary 获取 Token 信息
|
|
* @param {number} tokenId Token ID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenGetGet: async (
|
|
tokenId: number,
|
|
options: RawAxiosRequestConfig = {}
|
|
): Promise<RequestArgs> => {
|
|
// verify required parameter 'tokenId' is not null or undefined
|
|
assertParamExists('apiTokenGetGet', 'tokenId', tokenId);
|
|
const localVarPath = `/api/token/get`;
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
let baseOptions;
|
|
if (configuration) {
|
|
baseOptions = configuration.baseOptions;
|
|
}
|
|
|
|
const localVarRequestOptions = {
|
|
method: 'GET',
|
|
...baseOptions,
|
|
...options
|
|
};
|
|
const localVarHeaderParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
if (tokenId !== undefined) {
|
|
localVarQueryParameter['tokenId'] = tokenId;
|
|
}
|
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
let headersFromBaseOptions =
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
localVarRequestOptions.headers = {
|
|
...localVarHeaderParameter,
|
|
...headersFromBaseOptions,
|
|
...options.headers
|
|
};
|
|
|
|
return {
|
|
url: toPathString(localVarUrlObj),
|
|
options: localVarRequestOptions
|
|
};
|
|
},
|
|
/**
|
|
*
|
|
* @summary 列出 Token
|
|
* @param {number} current 页数
|
|
* @param {ApiTokenListGetPageSizeEnum} pageSize 页码
|
|
* @param {string} [tokenName] Token名称
|
|
* @param {number} [status] 状态
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenListGet: async (
|
|
current: number,
|
|
pageSize: ApiTokenListGetPageSizeEnum,
|
|
tokenName?: string,
|
|
status?: number,
|
|
options: RawAxiosRequestConfig = {}
|
|
): Promise<RequestArgs> => {
|
|
// verify required parameter 'current' is not null or undefined
|
|
assertParamExists('apiTokenListGet', 'current', current);
|
|
// verify required parameter 'pageSize' is not null or undefined
|
|
assertParamExists('apiTokenListGet', 'pageSize', pageSize);
|
|
const localVarPath = `/api/token/list`;
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
let baseOptions;
|
|
if (configuration) {
|
|
baseOptions = configuration.baseOptions;
|
|
}
|
|
|
|
const localVarRequestOptions = {
|
|
method: 'GET',
|
|
...baseOptions,
|
|
...options
|
|
};
|
|
const localVarHeaderParameter = {} as any;
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
if (current !== undefined) {
|
|
localVarQueryParameter['current'] = current;
|
|
}
|
|
|
|
if (pageSize !== undefined) {
|
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
}
|
|
|
|
if (tokenName !== undefined) {
|
|
localVarQueryParameter['tokenName'] = tokenName;
|
|
}
|
|
|
|
if (status !== undefined) {
|
|
localVarQueryParameter['status'] = status;
|
|
}
|
|
|
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
let headersFromBaseOptions =
|
|
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
localVarRequestOptions.headers = {
|
|
...localVarHeaderParameter,
|
|
...headersFromBaseOptions,
|
|
...options.headers
|
|
};
|
|
|
|
return {
|
|
url: toPathString(localVarUrlObj),
|
|
options: localVarRequestOptions
|
|
};
|
|
}
|
|
};
|
|
};
|
|
|
|
/**
|
|
* JDV2TokenManagementApi - functional programming interface
|
|
*/
|
|
export const JDV2TokenManagementApiFp = function (
|
|
configuration?: Configuration
|
|
) {
|
|
const localVarAxiosParamCreator =
|
|
JDV2TokenManagementApiAxiosParamCreator(configuration);
|
|
return {
|
|
/**
|
|
*
|
|
* @summary 查询 Token 绑卡记录
|
|
* @param {number} current 页数
|
|
* @param {ApiCardBindingListByTokenGetPageSizeEnum} pageSize 页码
|
|
* @param {number} tokenId Token ID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async apiCardBindingListByTokenGet(
|
|
current: number,
|
|
pageSize: ApiCardBindingListByTokenGetPageSizeEnum,
|
|
tokenId: number,
|
|
options?: RawAxiosRequestConfig
|
|
): Promise<
|
|
(
|
|
axios?: AxiosInstance,
|
|
basePath?: string
|
|
) => AxiosPromise<KamiApiCamelOilV1ListCardBindingsByTokenRes>
|
|
> {
|
|
const localVarAxiosArgs =
|
|
await localVarAxiosParamCreator.apiCardBindingListByTokenGet(
|
|
current,
|
|
pageSize,
|
|
tokenId,
|
|
options
|
|
);
|
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
const localVarOperationServerBasePath =
|
|
operationServerMap[
|
|
'JDV2TokenManagementApi.apiCardBindingListByTokenGet'
|
|
]?.[localVarOperationServerIndex]?.url;
|
|
return (axios, basePath) =>
|
|
createRequestFunction(
|
|
localVarAxiosArgs,
|
|
globalAxios,
|
|
BASE_PATH,
|
|
configuration
|
|
)(axios, localVarOperationServerBasePath || basePath);
|
|
},
|
|
/**
|
|
*
|
|
* @summary 创建 Token
|
|
* @param {KamiApiCamelOilV1CreateTokenReq} [kamiApiCamelOilV1CreateTokenReq]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async apiTokenCreatePost(
|
|
kamiApiCamelOilV1CreateTokenReq?: KamiApiCamelOilV1CreateTokenReq,
|
|
options?: RawAxiosRequestConfig
|
|
): Promise<
|
|
(
|
|
axios?: AxiosInstance,
|
|
basePath?: string
|
|
) => AxiosPromise<KamiApiCamelOilV1CreateTokenRes>
|
|
> {
|
|
const localVarAxiosArgs =
|
|
await localVarAxiosParamCreator.apiTokenCreatePost(
|
|
kamiApiCamelOilV1CreateTokenReq,
|
|
options
|
|
);
|
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
const localVarOperationServerBasePath =
|
|
operationServerMap['JDV2TokenManagementApi.apiTokenCreatePost']?.[
|
|
localVarOperationServerIndex
|
|
]?.url;
|
|
return (axios, basePath) =>
|
|
createRequestFunction(
|
|
localVarAxiosArgs,
|
|
globalAxios,
|
|
BASE_PATH,
|
|
configuration
|
|
)(axios, localVarOperationServerBasePath || basePath);
|
|
},
|
|
/**
|
|
*
|
|
* @summary 删除 Token
|
|
* @param {KamiApiCamelOilV1DeleteTokenReq} [kamiApiCamelOilV1DeleteTokenReq]
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async apiTokenDeletePost(
|
|
kamiApiCamelOilV1DeleteTokenReq?: KamiApiCamelOilV1DeleteTokenReq,
|
|
options?: RawAxiosRequestConfig
|
|
): Promise<
|
|
(
|
|
axios?: AxiosInstance,
|
|
basePath?: string
|
|
) => AxiosPromise<KamiApiCamelOilV1DeleteTokenRes>
|
|
> {
|
|
const localVarAxiosArgs =
|
|
await localVarAxiosParamCreator.apiTokenDeletePost(
|
|
kamiApiCamelOilV1DeleteTokenReq,
|
|
options
|
|
);
|
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
const localVarOperationServerBasePath =
|
|
operationServerMap['JDV2TokenManagementApi.apiTokenDeletePost']?.[
|
|
localVarOperationServerIndex
|
|
]?.url;
|
|
return (axios, basePath) =>
|
|
createRequestFunction(
|
|
localVarAxiosArgs,
|
|
globalAxios,
|
|
BASE_PATH,
|
|
configuration
|
|
)(axios, localVarOperationServerBasePath || basePath);
|
|
},
|
|
/**
|
|
*
|
|
* @summary 获取 Token 信息
|
|
* @param {number} tokenId Token ID
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async apiTokenGetGet(
|
|
tokenId: number,
|
|
options?: RawAxiosRequestConfig
|
|
): Promise<
|
|
(
|
|
axios?: AxiosInstance,
|
|
basePath?: string
|
|
) => AxiosPromise<KamiApiCamelOilV1GetTokenRes>
|
|
> {
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiTokenGetGet(
|
|
tokenId,
|
|
options
|
|
);
|
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
const localVarOperationServerBasePath =
|
|
operationServerMap['JDV2TokenManagementApi.apiTokenGetGet']?.[
|
|
localVarOperationServerIndex
|
|
]?.url;
|
|
return (axios, basePath) =>
|
|
createRequestFunction(
|
|
localVarAxiosArgs,
|
|
globalAxios,
|
|
BASE_PATH,
|
|
configuration
|
|
)(axios, localVarOperationServerBasePath || basePath);
|
|
},
|
|
/**
|
|
*
|
|
* @summary 列出 Token
|
|
* @param {number} current 页数
|
|
* @param {ApiTokenListGetPageSizeEnum} pageSize 页码
|
|
* @param {string} [tokenName] Token名称
|
|
* @param {number} [status] 状态
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
async apiTokenListGet(
|
|
current: number,
|
|
pageSize: ApiTokenListGetPageSizeEnum,
|
|
tokenName?: string,
|
|
status?: number,
|
|
options?: RawAxiosRequestConfig
|
|
): Promise<
|
|
(
|
|
axios?: AxiosInstance,
|
|
basePath?: string
|
|
) => AxiosPromise<KamiApiCamelOilV1ListTokensRes>
|
|
> {
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiTokenListGet(
|
|
current,
|
|
pageSize,
|
|
tokenName,
|
|
status,
|
|
options
|
|
);
|
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
const localVarOperationServerBasePath =
|
|
operationServerMap['JDV2TokenManagementApi.apiTokenListGet']?.[
|
|
localVarOperationServerIndex
|
|
]?.url;
|
|
return (axios, basePath) =>
|
|
createRequestFunction(
|
|
localVarAxiosArgs,
|
|
globalAxios,
|
|
BASE_PATH,
|
|
configuration
|
|
)(axios, localVarOperationServerBasePath || basePath);
|
|
}
|
|
};
|
|
};
|
|
|
|
/**
|
|
* JDV2TokenManagementApi - factory interface
|
|
*/
|
|
export const JDV2TokenManagementApiFactory = function (
|
|
configuration?: Configuration,
|
|
basePath?: string,
|
|
axios?: AxiosInstance
|
|
) {
|
|
const localVarFp = JDV2TokenManagementApiFp(configuration);
|
|
return {
|
|
/**
|
|
*
|
|
* @summary 查询 Token 绑卡记录
|
|
* @param {JDV2TokenManagementApiApiCardBindingListByTokenGetRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiCardBindingListByTokenGet(
|
|
requestParameters: JDV2TokenManagementApiApiCardBindingListByTokenGetRequest,
|
|
options?: RawAxiosRequestConfig
|
|
): AxiosPromise<KamiApiCamelOilV1ListCardBindingsByTokenRes> {
|
|
return localVarFp
|
|
.apiCardBindingListByTokenGet(
|
|
requestParameters.current,
|
|
requestParameters.pageSize,
|
|
requestParameters.tokenId,
|
|
options
|
|
)
|
|
.then(request => request(axios, basePath));
|
|
},
|
|
/**
|
|
*
|
|
* @summary 创建 Token
|
|
* @param {JDV2TokenManagementApiApiTokenCreatePostRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenCreatePost(
|
|
requestParameters: JDV2TokenManagementApiApiTokenCreatePostRequest = {},
|
|
options?: RawAxiosRequestConfig
|
|
): AxiosPromise<KamiApiCamelOilV1CreateTokenRes> {
|
|
return localVarFp
|
|
.apiTokenCreatePost(
|
|
requestParameters.kamiApiCamelOilV1CreateTokenReq,
|
|
options
|
|
)
|
|
.then(request => request(axios, basePath));
|
|
},
|
|
/**
|
|
*
|
|
* @summary 删除 Token
|
|
* @param {JDV2TokenManagementApiApiTokenDeletePostRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenDeletePost(
|
|
requestParameters: JDV2TokenManagementApiApiTokenDeletePostRequest = {},
|
|
options?: RawAxiosRequestConfig
|
|
): AxiosPromise<KamiApiCamelOilV1DeleteTokenRes> {
|
|
return localVarFp
|
|
.apiTokenDeletePost(
|
|
requestParameters.kamiApiCamelOilV1DeleteTokenReq,
|
|
options
|
|
)
|
|
.then(request => request(axios, basePath));
|
|
},
|
|
/**
|
|
*
|
|
* @summary 获取 Token 信息
|
|
* @param {JDV2TokenManagementApiApiTokenGetGetRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenGetGet(
|
|
requestParameters: JDV2TokenManagementApiApiTokenGetGetRequest,
|
|
options?: RawAxiosRequestConfig
|
|
): AxiosPromise<KamiApiCamelOilV1GetTokenRes> {
|
|
return localVarFp
|
|
.apiTokenGetGet(requestParameters.tokenId, options)
|
|
.then(request => request(axios, basePath));
|
|
},
|
|
/**
|
|
*
|
|
* @summary 列出 Token
|
|
* @param {JDV2TokenManagementApiApiTokenListGetRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenListGet(
|
|
requestParameters: JDV2TokenManagementApiApiTokenListGetRequest,
|
|
options?: RawAxiosRequestConfig
|
|
): AxiosPromise<KamiApiCamelOilV1ListTokensRes> {
|
|
return localVarFp
|
|
.apiTokenListGet(
|
|
requestParameters.current,
|
|
requestParameters.pageSize,
|
|
requestParameters.tokenName,
|
|
requestParameters.status,
|
|
options
|
|
)
|
|
.then(request => request(axios, basePath));
|
|
}
|
|
};
|
|
};
|
|
|
|
/**
|
|
* JDV2TokenManagementApi - interface
|
|
*/
|
|
export interface JDV2TokenManagementApiInterface {
|
|
/**
|
|
*
|
|
* @summary 查询 Token 绑卡记录
|
|
* @param {JDV2TokenManagementApiApiCardBindingListByTokenGetRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiCardBindingListByTokenGet(
|
|
requestParameters: JDV2TokenManagementApiApiCardBindingListByTokenGetRequest,
|
|
options?: RawAxiosRequestConfig
|
|
): AxiosPromise<KamiApiCamelOilV1ListCardBindingsByTokenRes>;
|
|
|
|
/**
|
|
*
|
|
* @summary 创建 Token
|
|
* @param {JDV2TokenManagementApiApiTokenCreatePostRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenCreatePost(
|
|
requestParameters?: JDV2TokenManagementApiApiTokenCreatePostRequest,
|
|
options?: RawAxiosRequestConfig
|
|
): AxiosPromise<KamiApiCamelOilV1CreateTokenRes>;
|
|
|
|
/**
|
|
*
|
|
* @summary 删除 Token
|
|
* @param {JDV2TokenManagementApiApiTokenDeletePostRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenDeletePost(
|
|
requestParameters?: JDV2TokenManagementApiApiTokenDeletePostRequest,
|
|
options?: RawAxiosRequestConfig
|
|
): AxiosPromise<KamiApiCamelOilV1DeleteTokenRes>;
|
|
|
|
/**
|
|
*
|
|
* @summary 获取 Token 信息
|
|
* @param {JDV2TokenManagementApiApiTokenGetGetRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenGetGet(
|
|
requestParameters: JDV2TokenManagementApiApiTokenGetGetRequest,
|
|
options?: RawAxiosRequestConfig
|
|
): AxiosPromise<KamiApiCamelOilV1GetTokenRes>;
|
|
|
|
/**
|
|
*
|
|
* @summary 列出 Token
|
|
* @param {JDV2TokenManagementApiApiTokenListGetRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
apiTokenListGet(
|
|
requestParameters: JDV2TokenManagementApiApiTokenListGetRequest,
|
|
options?: RawAxiosRequestConfig
|
|
): AxiosPromise<KamiApiCamelOilV1ListTokensRes>;
|
|
}
|
|
|
|
/**
|
|
* Request parameters for apiCardBindingListByTokenGet operation in JDV2TokenManagementApi.
|
|
*/
|
|
export interface JDV2TokenManagementApiApiCardBindingListByTokenGetRequest {
|
|
/**
|
|
* 页数
|
|
*/
|
|
readonly current: number;
|
|
|
|
/**
|
|
* 页码
|
|
*/
|
|
readonly pageSize: ApiCardBindingListByTokenGetPageSizeEnum;
|
|
|
|
/**
|
|
* Token ID
|
|
*/
|
|
readonly tokenId: number;
|
|
}
|
|
|
|
/**
|
|
* Request parameters for apiTokenCreatePost operation in JDV2TokenManagementApi.
|
|
*/
|
|
export interface JDV2TokenManagementApiApiTokenCreatePostRequest {
|
|
readonly kamiApiCamelOilV1CreateTokenReq?: KamiApiCamelOilV1CreateTokenReq;
|
|
}
|
|
|
|
/**
|
|
* Request parameters for apiTokenDeletePost operation in JDV2TokenManagementApi.
|
|
*/
|
|
export interface JDV2TokenManagementApiApiTokenDeletePostRequest {
|
|
readonly kamiApiCamelOilV1DeleteTokenReq?: KamiApiCamelOilV1DeleteTokenReq;
|
|
}
|
|
|
|
/**
|
|
* Request parameters for apiTokenGetGet operation in JDV2TokenManagementApi.
|
|
*/
|
|
export interface JDV2TokenManagementApiApiTokenGetGetRequest {
|
|
/**
|
|
* Token ID
|
|
*/
|
|
readonly tokenId: number;
|
|
}
|
|
|
|
/**
|
|
* Request parameters for apiTokenListGet operation in JDV2TokenManagementApi.
|
|
*/
|
|
export interface JDV2TokenManagementApiApiTokenListGetRequest {
|
|
/**
|
|
* 页数
|
|
*/
|
|
readonly current: number;
|
|
|
|
/**
|
|
* 页码
|
|
*/
|
|
readonly pageSize: ApiTokenListGetPageSizeEnum;
|
|
|
|
/**
|
|
* Token名称
|
|
*/
|
|
readonly tokenName?: string;
|
|
|
|
/**
|
|
* 状态
|
|
*/
|
|
readonly status?: number;
|
|
}
|
|
|
|
/**
|
|
* JDV2TokenManagementApi - object-oriented interface
|
|
*/
|
|
export class JDV2TokenManagementApi
|
|
extends BaseAPI
|
|
implements JDV2TokenManagementApiInterface
|
|
{
|
|
/**
|
|
*
|
|
* @summary 查询 Token 绑卡记录
|
|
* @param {JDV2TokenManagementApiApiCardBindingListByTokenGetRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
public apiCardBindingListByTokenGet(
|
|
requestParameters: JDV2TokenManagementApiApiCardBindingListByTokenGetRequest,
|
|
options?: RawAxiosRequestConfig
|
|
) {
|
|
return JDV2TokenManagementApiFp(this.configuration)
|
|
.apiCardBindingListByTokenGet(
|
|
requestParameters.current,
|
|
requestParameters.pageSize,
|
|
requestParameters.tokenId,
|
|
options
|
|
)
|
|
.then(request => request(this.axios, this.basePath));
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @summary 创建 Token
|
|
* @param {JDV2TokenManagementApiApiTokenCreatePostRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
public apiTokenCreatePost(
|
|
requestParameters: JDV2TokenManagementApiApiTokenCreatePostRequest = {},
|
|
options?: RawAxiosRequestConfig
|
|
) {
|
|
return JDV2TokenManagementApiFp(this.configuration)
|
|
.apiTokenCreatePost(
|
|
requestParameters.kamiApiCamelOilV1CreateTokenReq,
|
|
options
|
|
)
|
|
.then(request => request(this.axios, this.basePath));
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @summary 删除 Token
|
|
* @param {JDV2TokenManagementApiApiTokenDeletePostRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
public apiTokenDeletePost(
|
|
requestParameters: JDV2TokenManagementApiApiTokenDeletePostRequest = {},
|
|
options?: RawAxiosRequestConfig
|
|
) {
|
|
return JDV2TokenManagementApiFp(this.configuration)
|
|
.apiTokenDeletePost(
|
|
requestParameters.kamiApiCamelOilV1DeleteTokenReq,
|
|
options
|
|
)
|
|
.then(request => request(this.axios, this.basePath));
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @summary 获取 Token 信息
|
|
* @param {JDV2TokenManagementApiApiTokenGetGetRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
public apiTokenGetGet(
|
|
requestParameters: JDV2TokenManagementApiApiTokenGetGetRequest,
|
|
options?: RawAxiosRequestConfig
|
|
) {
|
|
return JDV2TokenManagementApiFp(this.configuration)
|
|
.apiTokenGetGet(requestParameters.tokenId, options)
|
|
.then(request => request(this.axios, this.basePath));
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @summary 列出 Token
|
|
* @param {JDV2TokenManagementApiApiTokenListGetRequest} requestParameters Request parameters.
|
|
* @param {*} [options] Override http request option.
|
|
* @throws {RequiredError}
|
|
*/
|
|
public apiTokenListGet(
|
|
requestParameters: JDV2TokenManagementApiApiTokenListGetRequest,
|
|
options?: RawAxiosRequestConfig
|
|
) {
|
|
return JDV2TokenManagementApiFp(this.configuration)
|
|
.apiTokenListGet(
|
|
requestParameters.current,
|
|
requestParameters.pageSize,
|
|
requestParameters.tokenName,
|
|
requestParameters.status,
|
|
options
|
|
)
|
|
.then(request => request(this.axios, this.basePath));
|
|
}
|
|
}
|
|
|
|
export enum ApiCardBindingListByTokenGetPageSizeEnum {
|
|
NUMBER_5 = 5,
|
|
NUMBER_10 = 10,
|
|
NUMBER_15 = 15,
|
|
NUMBER_20 = 20,
|
|
NUMBER_50 = 50,
|
|
NUMBER_100 = 100
|
|
}
|
|
export enum ApiTokenListGetPageSizeEnum {
|
|
NUMBER_5 = 5,
|
|
NUMBER_10 = 10,
|
|
NUMBER_15 = 15,
|
|
NUMBER_20 = 20,
|
|
NUMBER_50 = 50,
|
|
NUMBER_100 = 100
|
|
}
|