feat(api): 添加 JDV2 Token 管理接口及相关模型
- 新增 JDV2TokenManagementApi 接口文件,包含创建、删除、获取及列出 Token 的功能 - 添加与 Token 相关的请求和响应模型,如 CreateTokenReq/Res、DeleteTokenReq/Res 等 - 在 api.ts 中导出新的 JDV2TokenManagementApi 模块 - 更新 default-api.ts,移除已弃用的 iTunes 充值回调和处理接口 - 增加了 Token 绑卡记录查询接口及对应的数据模型 - 调整了部分枚举值顺序以符合业务逻辑 - 升级 Node.js 版本至 24.11.1 并更新 pnpm 至 10.23.0
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
java openjdk-23
|
||||
nodejs 22.21.0
|
||||
nodejs 24.11.1
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
|
||||
"spaces": 2,
|
||||
"generator-cli": {
|
||||
"version": "7.16.0"
|
||||
"version": "7.17.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,5 +135,5 @@
|
||||
"bin-wrapper": "npm:bin-wrapper-china",
|
||||
"gifsicle": "5.2.0"
|
||||
},
|
||||
"packageManager": "pnpm@10.11.0"
|
||||
"packageManager": "pnpm@10.23.0"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
.gitignore
|
||||
.npmignore
|
||||
.openapi-generator-ignore
|
||||
api.ts
|
||||
apis/default-api.ts
|
||||
apis/jdcookie-management-api.ts
|
||||
@@ -8,6 +7,7 @@ apis/jdhistory-api.ts
|
||||
apis/jdorder-management-api.ts
|
||||
apis/jdv2-account-api.ts
|
||||
apis/jdv2-order-api.ts
|
||||
apis/jdv2-token-management-api.ts
|
||||
apis/totpapi.ts
|
||||
base.ts
|
||||
common.ts
|
||||
@@ -18,6 +18,7 @@ docs/JDHistoryApi.md
|
||||
docs/JDOrderManagementApi.md
|
||||
docs/JDV2AccountApi.md
|
||||
docs/JDV2OrderApi.md
|
||||
docs/JDV2TokenManagementApi.md
|
||||
docs/KamiApiCamelOilV1AccountHistoryItem.md
|
||||
docs/KamiApiCamelOilV1AccountHistoryReq.md
|
||||
docs/KamiApiCamelOilV1AccountHistoryRes.md
|
||||
@@ -32,12 +33,23 @@ docs/KamiApiCamelOilV1AccountStatisticsResAccountInfo.md
|
||||
docs/KamiApiCamelOilV1AccountStatisticsResOrderStats.md
|
||||
docs/KamiApiCamelOilV1AccountStatisticsResRecentTrendInner.md
|
||||
docs/KamiApiCamelOilV1AccountStatisticsResUsageInfo.md
|
||||
docs/KamiApiCamelOilV1CardBindingInfo.md
|
||||
docs/KamiApiCamelOilV1CheckAccountReq.md
|
||||
docs/KamiApiCamelOilV1CheckAccountRes.md
|
||||
docs/KamiApiCamelOilV1CreateTokenReq.md
|
||||
docs/KamiApiCamelOilV1CreateTokenRes.md
|
||||
docs/KamiApiCamelOilV1DeleteTokenReq.md
|
||||
docs/KamiApiCamelOilV1DeleteTokenRes.md
|
||||
docs/KamiApiCamelOilV1GetTokenReq.md
|
||||
docs/KamiApiCamelOilV1GetTokenRes.md
|
||||
docs/KamiApiCamelOilV1ListAccountReq.md
|
||||
docs/KamiApiCamelOilV1ListAccountRes.md
|
||||
docs/KamiApiCamelOilV1ListCardBindingsByTokenReq.md
|
||||
docs/KamiApiCamelOilV1ListCardBindingsByTokenRes.md
|
||||
docs/KamiApiCamelOilV1ListOrderReq.md
|
||||
docs/KamiApiCamelOilV1ListOrderRes.md
|
||||
docs/KamiApiCamelOilV1ListTokensReq.md
|
||||
docs/KamiApiCamelOilV1ListTokensRes.md
|
||||
docs/KamiApiCamelOilV1OrderCallbackReq.md
|
||||
docs/KamiApiCamelOilV1OrderCallbackRes.md
|
||||
docs/KamiApiCamelOilV1OrderDetailReq.md
|
||||
@@ -50,6 +62,7 @@ docs/KamiApiCamelOilV1OrderHistoryRes.md
|
||||
docs/KamiApiCamelOilV1OrderListItem.md
|
||||
docs/KamiApiCamelOilV1SubmitOrderReq.md
|
||||
docs/KamiApiCamelOilV1SubmitOrderRes.md
|
||||
docs/KamiApiCamelOilV1TokenInfo.md
|
||||
docs/KamiApiCardInfoAppleV1AppleCardListRecord.md
|
||||
docs/KamiApiCardInfoAppleV1AppleCardListRecordUploadUser.md
|
||||
docs/KamiApiCardInfoAppleV1CallBackOrderManualReq.md
|
||||
@@ -68,11 +81,8 @@ docs/KamiApiCardInfoAppleV1CardInfoUpdateStatusReq.md
|
||||
docs/KamiApiCardInfoAppleV1ConfigGetRes.md
|
||||
docs/KamiApiCardInfoAppleV1ConfigSetReq.md
|
||||
docs/KamiApiCardInfoAppleV1RechargeDuplicatedCardPassReq.md
|
||||
docs/KamiApiCardInfoAppleV1RechargeHandlerReq.md
|
||||
docs/KamiApiCardInfoAppleV1RechargeHandlerRes.md
|
||||
docs/KamiApiCardInfoAppleV1RechargeHistoryListReq.md
|
||||
docs/KamiApiCardInfoAppleV1RechargeHistoryListRes.md
|
||||
docs/KamiApiCardInfoAppleV1RechargeItunesCallbackReq.md
|
||||
docs/KamiApiCardInfoAppleV1RechargeListDownloadReq.md
|
||||
docs/KamiApiCardInfoAppleV1RechargeListReq.md
|
||||
docs/KamiApiCardInfoAppleV1RechargeListRes.md
|
||||
@@ -453,12 +463,23 @@ models/kami-api-camel-oil-v1-account-statistics-res-order-stats.ts
|
||||
models/kami-api-camel-oil-v1-account-statistics-res-recent-trend-inner.ts
|
||||
models/kami-api-camel-oil-v1-account-statistics-res-usage-info.ts
|
||||
models/kami-api-camel-oil-v1-account-statistics-res.ts
|
||||
models/kami-api-camel-oil-v1-card-binding-info.ts
|
||||
models/kami-api-camel-oil-v1-check-account-req.ts
|
||||
models/kami-api-camel-oil-v1-check-account-res.ts
|
||||
models/kami-api-camel-oil-v1-create-token-req.ts
|
||||
models/kami-api-camel-oil-v1-create-token-res.ts
|
||||
models/kami-api-camel-oil-v1-delete-token-req.ts
|
||||
models/kami-api-camel-oil-v1-delete-token-res.ts
|
||||
models/kami-api-camel-oil-v1-get-token-req.ts
|
||||
models/kami-api-camel-oil-v1-get-token-res.ts
|
||||
models/kami-api-camel-oil-v1-list-account-req.ts
|
||||
models/kami-api-camel-oil-v1-list-account-res.ts
|
||||
models/kami-api-camel-oil-v1-list-card-bindings-by-token-req.ts
|
||||
models/kami-api-camel-oil-v1-list-card-bindings-by-token-res.ts
|
||||
models/kami-api-camel-oil-v1-list-order-req.ts
|
||||
models/kami-api-camel-oil-v1-list-order-res.ts
|
||||
models/kami-api-camel-oil-v1-list-tokens-req.ts
|
||||
models/kami-api-camel-oil-v1-list-tokens-res.ts
|
||||
models/kami-api-camel-oil-v1-order-callback-req.ts
|
||||
models/kami-api-camel-oil-v1-order-callback-res.ts
|
||||
models/kami-api-camel-oil-v1-order-detail-req.ts
|
||||
@@ -471,6 +492,7 @@ models/kami-api-camel-oil-v1-order-history-res.ts
|
||||
models/kami-api-camel-oil-v1-order-list-item.ts
|
||||
models/kami-api-camel-oil-v1-submit-order-req.ts
|
||||
models/kami-api-camel-oil-v1-submit-order-res.ts
|
||||
models/kami-api-camel-oil-v1-token-info.ts
|
||||
models/kami-api-card-info-apple-v1-apple-card-list-record-upload-user.ts
|
||||
models/kami-api-card-info-apple-v1-apple-card-list-record.ts
|
||||
models/kami-api-card-info-apple-v1-call-back-order-manual-req.ts
|
||||
@@ -489,11 +511,8 @@ models/kami-api-card-info-apple-v1-card-info-update-status-req.ts
|
||||
models/kami-api-card-info-apple-v1-config-get-res.ts
|
||||
models/kami-api-card-info-apple-v1-config-set-req.ts
|
||||
models/kami-api-card-info-apple-v1-recharge-duplicated-card-pass-req.ts
|
||||
models/kami-api-card-info-apple-v1-recharge-handler-req.ts
|
||||
models/kami-api-card-info-apple-v1-recharge-handler-res.ts
|
||||
models/kami-api-card-info-apple-v1-recharge-history-list-req.ts
|
||||
models/kami-api-card-info-apple-v1-recharge-history-list-res.ts
|
||||
models/kami-api-card-info-apple-v1-recharge-itunes-callback-req.ts
|
||||
models/kami-api-card-info-apple-v1-recharge-list-download-req.ts
|
||||
models/kami-api-card-info-apple-v1-recharge-list-req.ts
|
||||
models/kami-api-card-info-apple-v1-recharge-list-res.ts
|
||||
|
||||
@@ -1 +1 @@
|
||||
7.16.0
|
||||
7.17.0
|
||||
|
||||
@@ -18,4 +18,5 @@ export * from './apis/jdhistory-api';
|
||||
export * from './apis/jdorder-management-api';
|
||||
export * from './apis/jdv2-account-api';
|
||||
export * from './apis/jdv2-order-api';
|
||||
export * from './apis/jdv2-token-management-api';
|
||||
export * from './apis/totpapi';
|
||||
|
||||
@@ -63,14 +63,8 @@ import type { KamiApiCardInfoAppleV1ConfigSetReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoAppleV1RechargeDuplicatedCardPassReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoAppleV1RechargeHandlerReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoAppleV1RechargeHandlerRes } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoAppleV1RechargeHistoryListRes } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoAppleV1RechargeItunesCallbackReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoAppleV1RechargeListRes } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoAppleV1RechargeOrderModifyActualAmountReq } from '../models';
|
||||
@@ -1133,54 +1127,6 @@ export const DefaultApiAxiosParamCreator = function (
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 回调iTunes账号
|
||||
* @param {KamiApiCardInfoAppleV1RechargeItunesCallbackReq} [kamiApiCardInfoAppleV1RechargeItunesCallbackReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoAppleCardRechargeOrderCallbackPost: async (
|
||||
kamiApiCardInfoAppleV1RechargeItunesCallbackReq?: KamiApiCardInfoAppleV1RechargeItunesCallbackReq,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/cardInfo/appleCard/rechargeOrder/callback`;
|
||||
// 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(
|
||||
kamiApiCardInfoAppleV1RechargeItunesCallbackReq,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取充值记录列表
|
||||
@@ -1325,54 +1271,6 @@ export const DefaultApiAxiosParamCreator = function (
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取待处理的iTunes账号
|
||||
* @param {KamiApiCardInfoAppleV1RechargeHandlerReq} [kamiApiCardInfoAppleV1RechargeHandlerReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoAppleCardRechargeOrderHandlerPost: async (
|
||||
kamiApiCardInfoAppleV1RechargeHandlerReq?: KamiApiCardInfoAppleV1RechargeHandlerReq,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/cardInfo/appleCard/rechargeOrder/handler`;
|
||||
// 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(
|
||||
kamiApiCardInfoAppleV1RechargeHandlerReq,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取充值记录列表
|
||||
@@ -11591,37 +11489,6 @@ export const DefaultApiFp = function (configuration?: Configuration) {
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 回调iTunes账号
|
||||
* @param {KamiApiCardInfoAppleV1RechargeItunesCallbackReq} [kamiApiCardInfoAppleV1RechargeItunesCallbackReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiCardInfoAppleCardRechargeOrderCallbackPost(
|
||||
kamiApiCardInfoAppleV1RechargeItunesCallbackReq?: KamiApiCardInfoAppleV1RechargeItunesCallbackReq,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.apiCardInfoAppleCardRechargeOrderCallbackPost(
|
||||
kamiApiCardInfoAppleV1RechargeItunesCallbackReq,
|
||||
options
|
||||
);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath =
|
||||
operationServerMap[
|
||||
'DefaultApi.apiCardInfoAppleCardRechargeOrderCallbackPost'
|
||||
]?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) =>
|
||||
createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取充值记录列表
|
||||
@@ -11711,40 +11578,6 @@ export const DefaultApiFp = function (configuration?: Configuration) {
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取待处理的iTunes账号
|
||||
* @param {KamiApiCardInfoAppleV1RechargeHandlerReq} [kamiApiCardInfoAppleV1RechargeHandlerReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiCardInfoAppleCardRechargeOrderHandlerPost(
|
||||
kamiApiCardInfoAppleV1RechargeHandlerReq?: KamiApiCardInfoAppleV1RechargeHandlerReq,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
axios?: AxiosInstance,
|
||||
basePath?: string
|
||||
) => AxiosPromise<KamiApiCardInfoAppleV1RechargeHandlerRes>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.apiCardInfoAppleCardRechargeOrderHandlerPost(
|
||||
kamiApiCardInfoAppleV1RechargeHandlerReq,
|
||||
options
|
||||
);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath =
|
||||
operationServerMap[
|
||||
'DefaultApi.apiCardInfoAppleCardRechargeOrderHandlerPost'
|
||||
]?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) =>
|
||||
createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取充值记录列表
|
||||
@@ -18298,24 +18131,6 @@ export const DefaultApiFactory = function (
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 回调iTunes账号
|
||||
* @param {DefaultApiApiCardInfoAppleCardRechargeOrderCallbackPostRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoAppleCardRechargeOrderCallbackPost(
|
||||
requestParameters: DefaultApiApiCardInfoAppleCardRechargeOrderCallbackPostRequest = {},
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<object> {
|
||||
return localVarFp
|
||||
.apiCardInfoAppleCardRechargeOrderCallbackPost(
|
||||
requestParameters.kamiApiCardInfoAppleV1RechargeItunesCallbackReq,
|
||||
options
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取充值记录列表
|
||||
@@ -18360,24 +18175,6 @@ export const DefaultApiFactory = function (
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取待处理的iTunes账号
|
||||
* @param {DefaultApiApiCardInfoAppleCardRechargeOrderHandlerPostRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoAppleCardRechargeOrderHandlerPost(
|
||||
requestParameters: DefaultApiApiCardInfoAppleCardRechargeOrderHandlerPostRequest = {},
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<KamiApiCardInfoAppleV1RechargeHandlerRes> {
|
||||
return localVarFp
|
||||
.apiCardInfoAppleCardRechargeOrderHandlerPost(
|
||||
requestParameters.kamiApiCardInfoAppleV1RechargeHandlerReq,
|
||||
options
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取充值记录列表
|
||||
@@ -21797,18 +21594,6 @@ export interface DefaultApiInterface {
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<object>;
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 回调iTunes账号
|
||||
* @param {DefaultApiApiCardInfoAppleCardRechargeOrderCallbackPostRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoAppleCardRechargeOrderCallbackPost(
|
||||
requestParameters?: DefaultApiApiCardInfoAppleCardRechargeOrderCallbackPostRequest,
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<object>;
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 获取充值记录列表
|
||||
@@ -21833,18 +21618,6 @@ export interface DefaultApiInterface {
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<KamiApiCardInfoAppleV1RechargeHistoryListRes>;
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 获取待处理的iTunes账号
|
||||
* @param {DefaultApiApiCardInfoAppleCardRechargeOrderHandlerPostRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoAppleCardRechargeOrderHandlerPost(
|
||||
requestParameters?: DefaultApiApiCardInfoAppleCardRechargeOrderHandlerPostRequest,
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<KamiApiCardInfoAppleV1RechargeHandlerRes>;
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 获取充值记录列表
|
||||
@@ -24094,13 +23867,6 @@ export interface DefaultApiApiCardInfoAppleCardRechargeOrderCallbackByManualPost
|
||||
readonly kamiApiCardInfoAppleV1CallBackOrderManualReq?: KamiApiCardInfoAppleV1CallBackOrderManualReq;
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for apiCardInfoAppleCardRechargeOrderCallbackPost operation in DefaultApi.
|
||||
*/
|
||||
export interface DefaultApiApiCardInfoAppleCardRechargeOrderCallbackPostRequest {
|
||||
readonly kamiApiCardInfoAppleV1RechargeItunesCallbackReq?: KamiApiCardInfoAppleV1RechargeItunesCallbackReq;
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for apiCardInfoAppleCardRechargeOrderDownloadGet operation in DefaultApi.
|
||||
*/
|
||||
@@ -24161,13 +23927,6 @@ export interface DefaultApiApiCardInfoAppleCardRechargeOrderGetHistoryListGetReq
|
||||
readonly orderNo: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for apiCardInfoAppleCardRechargeOrderHandlerPost operation in DefaultApi.
|
||||
*/
|
||||
export interface DefaultApiApiCardInfoAppleCardRechargeOrderHandlerPostRequest {
|
||||
readonly kamiApiCardInfoAppleV1RechargeHandlerReq?: KamiApiCardInfoAppleV1RechargeHandlerReq;
|
||||
}
|
||||
|
||||
/**
|
||||
* Request parameters for apiCardInfoAppleCardRechargeOrderListGet operation in DefaultApi.
|
||||
*/
|
||||
@@ -26473,25 +26232,6 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 回调iTunes账号
|
||||
* @param {DefaultApiApiCardInfoAppleCardRechargeOrderCallbackPostRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public apiCardInfoAppleCardRechargeOrderCallbackPost(
|
||||
requestParameters: DefaultApiApiCardInfoAppleCardRechargeOrderCallbackPostRequest = {},
|
||||
options?: RawAxiosRequestConfig
|
||||
) {
|
||||
return DefaultApiFp(this.configuration)
|
||||
.apiCardInfoAppleCardRechargeOrderCallbackPost(
|
||||
requestParameters.kamiApiCardInfoAppleV1RechargeItunesCallbackReq,
|
||||
options
|
||||
)
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 获取充值记录列表
|
||||
@@ -26538,25 +26278,6 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface {
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 获取待处理的iTunes账号
|
||||
* @param {DefaultApiApiCardInfoAppleCardRechargeOrderHandlerPostRequest} requestParameters Request parameters.
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public apiCardInfoAppleCardRechargeOrderHandlerPost(
|
||||
requestParameters: DefaultApiApiCardInfoAppleCardRechargeOrderHandlerPostRequest = {},
|
||||
options?: RawAxiosRequestConfig
|
||||
) {
|
||||
return DefaultApiFp(this.configuration)
|
||||
.apiCardInfoAppleCardRechargeOrderHandlerPost(
|
||||
requestParameters.kamiApiCardInfoAppleV1RechargeHandlerReq,
|
||||
options
|
||||
)
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 获取充值记录列表
|
||||
|
||||
@@ -747,8 +747,8 @@ export enum ApiJdV2AccountListGetPageSizeEnum {
|
||||
}
|
||||
export enum ApiJdV2AccountListGetStatusEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_0 = 0
|
||||
NUMBER_0 = 0,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
|
||||
892
src/api/generated/apis/jdv2-token-management-api.ts
Normal file
892
src/api/generated/apis/jdv2-token-management-api.ts
Normal file
@@ -0,0 +1,892 @@
|
||||
/* 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
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
/* tslint:disable */
|
||||
|
||||
/**
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
@@ -12,6 +11,18 @@
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
interface AWSv4Configuration {
|
||||
options?: {
|
||||
region?: string;
|
||||
service?: string;
|
||||
};
|
||||
credentials?: {
|
||||
accessKeyId?: string;
|
||||
secretAccessKey?: string;
|
||||
sessionToken?: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ConfigurationParameters {
|
||||
apiKey?:
|
||||
| string
|
||||
@@ -25,6 +36,7 @@ export interface ConfigurationParameters {
|
||||
| Promise<string>
|
||||
| ((name?: string, scopes?: string[]) => string)
|
||||
| ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
awsv4?: AWSv4Configuration;
|
||||
basePath?: string;
|
||||
serverIndex?: number;
|
||||
baseOptions?: any;
|
||||
@@ -59,6 +71,17 @@ export class Configuration {
|
||||
| Promise<string>
|
||||
| ((name?: string, scopes?: string[]) => string)
|
||||
| ((name?: string, scopes?: string[]) => Promise<string>);
|
||||
/**
|
||||
* parameter for aws4 signature security
|
||||
* @param {Object} AWS4Signature - AWS4 Signature security
|
||||
* @param {string} options.region - aws region
|
||||
* @param {string} options.service - name of the service.
|
||||
* @param {string} credentials.accessKeyId - aws access key id
|
||||
* @param {string} credentials.secretAccessKey - aws access key
|
||||
* @param {string} credentials.sessionToken - aws session token
|
||||
* @memberof Configuration
|
||||
*/
|
||||
awsv4?: AWSv4Configuration;
|
||||
/**
|
||||
* override base path
|
||||
*/
|
||||
@@ -85,6 +108,7 @@ export class Configuration {
|
||||
this.username = param.username;
|
||||
this.password = param.password;
|
||||
this.accessToken = param.accessToken;
|
||||
this.awsv4 = param.awsv4;
|
||||
this.basePath = param.basePath;
|
||||
this.serverIndex = param.serverIndex;
|
||||
this.baseOptions = {
|
||||
|
||||
@@ -19,10 +19,8 @@ All URIs are relative to _http://localhost_
|
||||
| [**apiCardInfoAppleCardConfigSetPost**](#apicardinfoapplecardconfigsetpost) | **POST** /api/cardInfo/AppleCard/config/set | 设置 |
|
||||
| [**apiCardInfoAppleCardQueryGet**](#apicardinfoapplecardqueryget) | **GET** /api/cardInfo/appleCard/query | 查询充值订单 |
|
||||
| [**apiCardInfoAppleCardRechargeOrderCallbackByManualPost**](#apicardinfoapplecardrechargeordercallbackbymanualpost) | **POST** /api/cardInfo/appleCard/rechargeOrder/callbackByManual | 手动回调iTunes账号到gateway,用来处理正确订单 |
|
||||
| [**apiCardInfoAppleCardRechargeOrderCallbackPost**](#apicardinfoapplecardrechargeordercallbackpost) | **POST** /api/cardInfo/appleCard/rechargeOrder/callback | 回调iTunes账号 |
|
||||
| [**apiCardInfoAppleCardRechargeOrderDownloadGet**](#apicardinfoapplecardrechargeorderdownloadget) | **GET** /api/cardInfo/appleCard/rechargeOrder/download | 获取充值记录列表 |
|
||||
| [**apiCardInfoAppleCardRechargeOrderGetHistoryListGet**](#apicardinfoapplecardrechargeordergethistorylistget) | **GET** /api/cardInfo/AppleCard/rechargeOrder/getHistoryList | 获取礼品卡充值记录 |
|
||||
| [**apiCardInfoAppleCardRechargeOrderHandlerPost**](#apicardinfoapplecardrechargeorderhandlerpost) | **POST** /api/cardInfo/appleCard/rechargeOrder/handler | 获取待处理的iTunes账号 |
|
||||
| [**apiCardInfoAppleCardRechargeOrderListGet**](#apicardinfoapplecardrechargeorderlistget) | **GET** /api/cardInfo/appleCard/rechargeOrder/list | 获取充值记录列表 |
|
||||
| [**apiCardInfoAppleCardRechargeOrderModifyActualAmountPost**](#apicardinfoapplecardrechargeordermodifyactualamountpost) | **POST** /api/cardInfo/appleCard/rechargeOrder/modifyActualAmount | 手动处理金额 |
|
||||
| [**apiCardInfoAppleCardRechargeOrderResetStatusPost**](#apicardinfoapplecardrechargeorderresetstatuspost) | **POST** /api/cardInfo/appleCard/rechargeOrder/resetStatus | 重置订单状态 |
|
||||
@@ -921,57 +919,6 @@ No authorization required
|
||||
|
||||
[[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)
|
||||
|
||||
# **apiCardInfoAppleCardRechargeOrderCallbackPost**
|
||||
|
||||
> object apiCardInfoAppleCardRechargeOrderCallbackPost()
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DefaultApi,
|
||||
Configuration,
|
||||
KamiApiCardInfoAppleV1RechargeItunesCallbackReq
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DefaultApi(configuration);
|
||||
|
||||
let kamiApiCardInfoAppleV1RechargeItunesCallbackReq: KamiApiCardInfoAppleV1RechargeItunesCallbackReq; // (optional)
|
||||
|
||||
const { status, data } =
|
||||
await apiInstance.apiCardInfoAppleCardRechargeOrderCallbackPost(
|
||||
kamiApiCardInfoAppleV1RechargeItunesCallbackReq
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| --------------------------------------------------- | --------------------------------------------------- | ----------- | ----- |
|
||||
| **kamiApiCardInfoAppleV1RechargeItunesCallbackReq** | **KamiApiCardInfoAppleV1RechargeItunesCallbackReq** | | |
|
||||
|
||||
### Return type
|
||||
|
||||
**object**
|
||||
|
||||
### 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)
|
||||
|
||||
# **apiCardInfoAppleCardRechargeOrderDownloadGet**
|
||||
|
||||
> object apiCardInfoAppleCardRechargeOrderDownloadGet()
|
||||
@@ -1088,57 +1035,6 @@ No authorization required
|
||||
|
||||
[[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)
|
||||
|
||||
# **apiCardInfoAppleCardRechargeOrderHandlerPost**
|
||||
|
||||
> KamiApiCardInfoAppleV1RechargeHandlerRes apiCardInfoAppleCardRechargeOrderHandlerPost()
|
||||
|
||||
### Example
|
||||
|
||||
```typescript
|
||||
import {
|
||||
DefaultApi,
|
||||
Configuration,
|
||||
KamiApiCardInfoAppleV1RechargeHandlerReq
|
||||
} from './api';
|
||||
|
||||
const configuration = new Configuration();
|
||||
const apiInstance = new DefaultApi(configuration);
|
||||
|
||||
let kamiApiCardInfoAppleV1RechargeHandlerReq: KamiApiCardInfoAppleV1RechargeHandlerReq; // (optional)
|
||||
|
||||
const { status, data } =
|
||||
await apiInstance.apiCardInfoAppleCardRechargeOrderHandlerPost(
|
||||
kamiApiCardInfoAppleV1RechargeHandlerReq
|
||||
);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| -------------------------------------------- | -------------------------------------------- | ----------- | ----- |
|
||||
| **kamiApiCardInfoAppleV1RechargeHandlerReq** | **KamiApiCardInfoAppleV1RechargeHandlerReq** | | |
|
||||
|
||||
### Return type
|
||||
|
||||
**KamiApiCardInfoAppleV1RechargeHandlerRes**
|
||||
|
||||
### 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)
|
||||
|
||||
# **apiCardInfoAppleCardRechargeOrderListGet**
|
||||
|
||||
> KamiApiCardInfoAppleV1RechargeListRes apiCardInfoAppleCardRechargeOrderListGet()
|
||||
|
||||
@@ -125,7 +125,7 @@ const apiInstance = new JDV2AccountApi(configuration);
|
||||
|
||||
let current: number; //页数 (default to undefined)
|
||||
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
|
||||
let status: 4 | 1 | 2 | 3 | 0; //状态筛选 (optional) (default to undefined)
|
||||
let status: 4 | 2 | 3 | 0 | 1; //状态筛选 (optional) (default to undefined)
|
||||
let keyword: string; //关键词搜索(账号名称/手机号) (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.apiJdV2AccountListGet(
|
||||
@@ -142,7 +142,7 @@ const { status, data } = await apiInstance.apiJdV2AccountListGet(
|
||||
| ------------ | ------------ | ----------------------------- | -------------------------------- | --- | ------------------------------------------------------ | ----------------------------------------------------------------------- | -------------------------------- | --------------------- |
|
||||
| **current** | [**number**] | 页数 | defaults to undefined |
|
||||
| **pageSize** | [\*\*5 | 10 | 15 | 20 | 50 | 100**]**Array<5 | 10 | 15 | 20 | 50 | 100>\*\* | 页码 | defaults to undefined |
|
||||
| **status** | [\*\*4 | 1 | 2 | 3 | 0**]**Array<4 | 1 | 2 | 3 | 0>\*\* | 状态筛选 | (optional) defaults to undefined |
|
||||
| **status** | [\*\*4 | 2 | 3 | 0 | 1**]**Array<4 | 2 | 3 | 0 | 1>\*\* | 状态筛选 | (optional) defaults to undefined |
|
||||
| **keyword** | [**string**] | 关键词搜索(账号名称/手机号) | (optional) defaults to undefined |
|
||||
|
||||
### Return type
|
||||
|
||||
262
src/api/generated/docs/JDV2TokenManagementApi.md
Normal file
262
src/api/generated/docs/JDV2TokenManagementApi.md
Normal file
@@ -0,0 +1,262 @@
|
||||
# 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 |
|
||||
|
||||
# **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 | 10 | 15 | 20 | 50 | 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 | 10 | 15 | 20 | 50 | 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)
|
||||
33
src/api/generated/docs/KamiApiCamelOilV1CardBindingInfo.md
Normal file
33
src/api/generated/docs/KamiApiCamelOilV1CardBindingInfo.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# KamiApiCamelOilV1CardBindingInfo
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ---------------- | ---------- | ----------- | --------------------------------- |
|
||||
| **id** | **number** | 绑定记录ID | [optional] [default to undefined] |
|
||||
| **tokenId** | **number** | Token ID | [optional] [default to undefined] |
|
||||
| **tokenName** | **string** | Token名称 | [optional] [default to undefined] |
|
||||
| **orderId** | **number** | 订单ID | [optional] [default to undefined] |
|
||||
| **cardNumber** | **string** | 卡号 | [optional] [default to undefined] |
|
||||
| **cardPassword** | **string** | 卡密 | [optional] [default to undefined] |
|
||||
| **amount** | **object** | | [optional] [default to undefined] |
|
||||
| **createdAt** | **string** | 创建时间 | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1CardBindingInfo } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1CardBindingInfo = {
|
||||
id,
|
||||
tokenId,
|
||||
tokenName,
|
||||
orderId,
|
||||
cardNumber,
|
||||
cardPassword,
|
||||
amount,
|
||||
createdAt
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
23
src/api/generated/docs/KamiApiCamelOilV1CreateTokenReq.md
Normal file
23
src/api/generated/docs/KamiApiCamelOilV1CreateTokenReq.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# KamiApiCamelOilV1CreateTokenReq
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| -------------- | ---------- | ----------- | --------------------------------- |
|
||||
| **tokenName** | **string** | Token名称 | [default to undefined] |
|
||||
| **tokenValue** | **string** | Token值 | [default to undefined] |
|
||||
| **remark** | **string** | 备注 | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1CreateTokenReq } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1CreateTokenReq = {
|
||||
tokenName,
|
||||
tokenValue,
|
||||
remark
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
19
src/api/generated/docs/KamiApiCamelOilV1CreateTokenRes.md
Normal file
19
src/api/generated/docs/KamiApiCamelOilV1CreateTokenRes.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# KamiApiCamelOilV1CreateTokenRes
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ----------- | ---------- | ----------- | --------------------------------- |
|
||||
| **tokenId** | **number** | Token ID | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1CreateTokenRes } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1CreateTokenRes = {
|
||||
tokenId
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
19
src/api/generated/docs/KamiApiCamelOilV1DeleteTokenReq.md
Normal file
19
src/api/generated/docs/KamiApiCamelOilV1DeleteTokenReq.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# KamiApiCamelOilV1DeleteTokenReq
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ----------- | ---------- | ----------- | ---------------------- |
|
||||
| **tokenId** | **number** | Token ID | [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1DeleteTokenReq } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1DeleteTokenReq = {
|
||||
tokenId
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
19
src/api/generated/docs/KamiApiCamelOilV1DeleteTokenRes.md
Normal file
19
src/api/generated/docs/KamiApiCamelOilV1DeleteTokenRes.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# KamiApiCamelOilV1DeleteTokenRes
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ----------- | ---------- | ----------- | --------------------------------- |
|
||||
| **message** | **string** | 信息 | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1DeleteTokenRes } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1DeleteTokenRes = {
|
||||
message
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
19
src/api/generated/docs/KamiApiCamelOilV1GetTokenReq.md
Normal file
19
src/api/generated/docs/KamiApiCamelOilV1GetTokenReq.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# KamiApiCamelOilV1GetTokenReq
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ----------- | ---------- | ----------- | ---------------------- |
|
||||
| **tokenId** | **number** | Token ID | [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1GetTokenReq } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1GetTokenReq = {
|
||||
tokenId
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
19
src/api/generated/docs/KamiApiCamelOilV1GetTokenRes.md
Normal file
19
src/api/generated/docs/KamiApiCamelOilV1GetTokenRes.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# KamiApiCamelOilV1GetTokenRes
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| --------- | --------------------------------------------------------------- | ----------- | --------------------------------- |
|
||||
| **token** | [**KamiApiCamelOilV1TokenInfo**](KamiApiCamelOilV1TokenInfo.md) | | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1GetTokenRes } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1GetTokenRes = {
|
||||
token
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
@@ -0,0 +1,23 @@
|
||||
# KamiApiCamelOilV1ListCardBindingsByTokenReq
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------ | ---------- | ----------- | ---------------------- |
|
||||
| **current** | **number** | 页数 | [default to undefined] |
|
||||
| **pageSize** | **number** | 页码 | [default to undefined] |
|
||||
| **tokenId** | **number** | Token ID | [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1ListCardBindingsByTokenReq } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1ListCardBindingsByTokenReq = {
|
||||
current,
|
||||
pageSize,
|
||||
tokenId
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
@@ -0,0 +1,21 @@
|
||||
# KamiApiCamelOilV1ListCardBindingsByTokenRes
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| --------- | ---------------------------------------------------------------------------------------- | ----------- | --------------------------------- |
|
||||
| **total** | **number** | | [optional] [default to undefined] |
|
||||
| **list** | [**Array<KamiApiCamelOilV1CardBindingInfo>**](KamiApiCamelOilV1CardBindingInfo.md) | | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1ListCardBindingsByTokenRes } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1ListCardBindingsByTokenRes = {
|
||||
total,
|
||||
list
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
25
src/api/generated/docs/KamiApiCamelOilV1ListTokensReq.md
Normal file
25
src/api/generated/docs/KamiApiCamelOilV1ListTokensReq.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# KamiApiCamelOilV1ListTokensReq
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------- | ---------- | ----------- | --------------------------------- |
|
||||
| **current** | **number** | 页数 | [default to undefined] |
|
||||
| **pageSize** | **number** | 页码 | [default to undefined] |
|
||||
| **tokenName** | **string** | Token名称 | [optional] [default to undefined] |
|
||||
| **status** | **number** | 状态 | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1ListTokensReq } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1ListTokensReq = {
|
||||
current,
|
||||
pageSize,
|
||||
tokenName,
|
||||
status
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
21
src/api/generated/docs/KamiApiCamelOilV1ListTokensRes.md
Normal file
21
src/api/generated/docs/KamiApiCamelOilV1ListTokensRes.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# KamiApiCamelOilV1ListTokensRes
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| --------- | ---------------------------------------------------------------------------- | ----------- | --------------------------------- |
|
||||
| **total** | **number** | | [optional] [default to undefined] |
|
||||
| **list** | [**Array<KamiApiCamelOilV1TokenInfo>**](KamiApiCamelOilV1TokenInfo.md) | | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1ListTokensRes } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1ListTokensRes = {
|
||||
total,
|
||||
list
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
39
src/api/generated/docs/KamiApiCamelOilV1TokenInfo.md
Normal file
39
src/api/generated/docs/KamiApiCamelOilV1TokenInfo.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# KamiApiCamelOilV1TokenInfo
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------------- | ---------- | -------------- | --------------------------------- |
|
||||
| **id** | **number** | Token ID | [optional] [default to undefined] |
|
||||
| **tokenName** | **string** | Token名称 | [optional] [default to undefined] |
|
||||
| **tokenValue** | **string** | Token值 | [optional] [default to undefined] |
|
||||
| **status** | **number** | 状态 | [optional] [default to undefined] |
|
||||
| **bindCount** | **number** | 已绑定卡密数量 | [optional] [default to undefined] |
|
||||
| **totalBindAmount** | **object** | | [optional] [default to undefined] |
|
||||
| **lastBindAt** | **string** | 最后绑定时间 | [optional] [default to undefined] |
|
||||
| **lastUsedAt** | **string** | 最后使用时间 | [optional] [default to undefined] |
|
||||
| **remark** | **string** | 备注 | [optional] [default to undefined] |
|
||||
| **createdAt** | **string** | 创建时间 | [optional] [default to undefined] |
|
||||
| **updatedAt** | **string** | 更新时间 | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
```typescript
|
||||
import { KamiApiCamelOilV1TokenInfo } from './api';
|
||||
|
||||
const instance: KamiApiCamelOilV1TokenInfo = {
|
||||
id,
|
||||
tokenName,
|
||||
tokenValue,
|
||||
status,
|
||||
bindCount,
|
||||
totalBindAmount,
|
||||
lastBindAt,
|
||||
lastUsedAt,
|
||||
remark,
|
||||
createdAt,
|
||||
updatedAt
|
||||
};
|
||||
```
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
@@ -12,12 +12,23 @@ export * from './kami-api-camel-oil-v1-account-statistics-res-account-info';
|
||||
export * from './kami-api-camel-oil-v1-account-statistics-res-order-stats';
|
||||
export * from './kami-api-camel-oil-v1-account-statistics-res-recent-trend-inner';
|
||||
export * from './kami-api-camel-oil-v1-account-statistics-res-usage-info';
|
||||
export * from './kami-api-camel-oil-v1-card-binding-info';
|
||||
export * from './kami-api-camel-oil-v1-check-account-req';
|
||||
export * from './kami-api-camel-oil-v1-check-account-res';
|
||||
export * from './kami-api-camel-oil-v1-create-token-req';
|
||||
export * from './kami-api-camel-oil-v1-create-token-res';
|
||||
export * from './kami-api-camel-oil-v1-delete-token-req';
|
||||
export * from './kami-api-camel-oil-v1-delete-token-res';
|
||||
export * from './kami-api-camel-oil-v1-get-token-req';
|
||||
export * from './kami-api-camel-oil-v1-get-token-res';
|
||||
export * from './kami-api-camel-oil-v1-list-account-req';
|
||||
export * from './kami-api-camel-oil-v1-list-account-res';
|
||||
export * from './kami-api-camel-oil-v1-list-card-bindings-by-token-req';
|
||||
export * from './kami-api-camel-oil-v1-list-card-bindings-by-token-res';
|
||||
export * from './kami-api-camel-oil-v1-list-order-req';
|
||||
export * from './kami-api-camel-oil-v1-list-order-res';
|
||||
export * from './kami-api-camel-oil-v1-list-tokens-req';
|
||||
export * from './kami-api-camel-oil-v1-list-tokens-res';
|
||||
export * from './kami-api-camel-oil-v1-order-callback-req';
|
||||
export * from './kami-api-camel-oil-v1-order-callback-res';
|
||||
export * from './kami-api-camel-oil-v1-order-detail-req';
|
||||
@@ -30,6 +41,7 @@ export * from './kami-api-camel-oil-v1-order-history-res';
|
||||
export * from './kami-api-camel-oil-v1-order-list-item';
|
||||
export * from './kami-api-camel-oil-v1-submit-order-req';
|
||||
export * from './kami-api-camel-oil-v1-submit-order-res';
|
||||
export * from './kami-api-camel-oil-v1-token-info';
|
||||
export * from './kami-api-card-info-apple-v1-apple-card-list-record';
|
||||
export * from './kami-api-card-info-apple-v1-apple-card-list-record-upload-user';
|
||||
export * from './kami-api-card-info-apple-v1-call-back-order-manual-req';
|
||||
@@ -48,11 +60,8 @@ export * from './kami-api-card-info-apple-v1-card-info-update-status-req';
|
||||
export * from './kami-api-card-info-apple-v1-config-get-res';
|
||||
export * from './kami-api-card-info-apple-v1-config-set-req';
|
||||
export * from './kami-api-card-info-apple-v1-recharge-duplicated-card-pass-req';
|
||||
export * from './kami-api-card-info-apple-v1-recharge-handler-req';
|
||||
export * from './kami-api-card-info-apple-v1-recharge-handler-res';
|
||||
export * from './kami-api-card-info-apple-v1-recharge-history-list-req';
|
||||
export * from './kami-api-card-info-apple-v1-recharge-history-list-res';
|
||||
export * from './kami-api-card-info-apple-v1-recharge-itunes-callback-req';
|
||||
export * from './kami-api-card-info-apple-v1-recharge-list-download-req';
|
||||
export * from './kami-api-card-info-apple-v1-recharge-list-req';
|
||||
export * from './kami-api-card-info-apple-v1-recharge-list-res';
|
||||
|
||||
@@ -66,15 +66,15 @@ export enum KamiApiCamelOilV1AccountHistoryItemChangeTypeEnum {
|
||||
}
|
||||
export enum KamiApiCamelOilV1AccountHistoryItemStatusBeforeEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_0 = 0
|
||||
NUMBER_0 = 0,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
export enum KamiApiCamelOilV1AccountHistoryItemStatusAfterEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_0 = 0
|
||||
NUMBER_0 = 0,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
|
||||
@@ -81,8 +81,8 @@ export interface KamiApiCamelOilV1AccountListItem {
|
||||
|
||||
export enum KamiApiCamelOilV1AccountListItemStatusEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_0 = 0
|
||||
NUMBER_0 = 0,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
|
||||
@@ -37,8 +37,8 @@ export interface KamiApiCamelOilV1AccountOrderListResAccountInfo {
|
||||
|
||||
export enum KamiApiCamelOilV1AccountOrderListResAccountInfoStatusEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_0 = 0
|
||||
NUMBER_0 = 0,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
|
||||
@@ -49,8 +49,8 @@ export interface KamiApiCamelOilV1AccountStatisticsResAccountInfo {
|
||||
|
||||
export enum KamiApiCamelOilV1AccountStatisticsResAccountInfoStatusEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_0 = 0
|
||||
NUMBER_0 = 0,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
export interface KamiApiCamelOilV1CardBindingInfo {
|
||||
/**
|
||||
* 绑定记录ID
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* Token ID
|
||||
*/
|
||||
tokenId?: number;
|
||||
/**
|
||||
* Token名称
|
||||
*/
|
||||
tokenName?: string;
|
||||
/**
|
||||
* 订单ID
|
||||
*/
|
||||
orderId?: number;
|
||||
/**
|
||||
* 卡号
|
||||
*/
|
||||
cardNumber?: string;
|
||||
/**
|
||||
* 卡密
|
||||
*/
|
||||
cardPassword?: string;
|
||||
amount?: object;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createdAt?: string;
|
||||
}
|
||||
@@ -33,8 +33,8 @@ export interface KamiApiCamelOilV1CheckAccountRes {
|
||||
|
||||
export enum KamiApiCamelOilV1CheckAccountResStatusEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_0 = 0
|
||||
NUMBER_0 = 0,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
export interface KamiApiCamelOilV1CreateTokenReq {
|
||||
/**
|
||||
* Token名称
|
||||
*/
|
||||
tokenName: string;
|
||||
/**
|
||||
* Token值
|
||||
*/
|
||||
tokenValue: string;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
export interface KamiApiCamelOilV1CreateTokenRes {
|
||||
/**
|
||||
* Token ID
|
||||
*/
|
||||
tokenId?: number;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
export interface KamiApiCamelOilV1DeleteTokenReq {
|
||||
/**
|
||||
* Token ID
|
||||
*/
|
||||
tokenId: number;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
export interface KamiApiCamelOilV1DeleteTokenRes {
|
||||
/**
|
||||
* 信息
|
||||
*/
|
||||
message?: string;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
export interface KamiApiCamelOilV1GetTokenReq {
|
||||
/**
|
||||
* Token ID
|
||||
*/
|
||||
tokenId: number;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import type { KamiApiCamelOilV1TokenInfo } from './kami-api-camel-oil-v1-token-info';
|
||||
|
||||
export interface KamiApiCamelOilV1GetTokenRes {
|
||||
token?: KamiApiCamelOilV1TokenInfo;
|
||||
}
|
||||
@@ -41,8 +41,8 @@ export enum KamiApiCamelOilV1ListAccountReqPageSizeEnum {
|
||||
}
|
||||
export enum KamiApiCamelOilV1ListAccountReqStatusEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_0 = 0
|
||||
NUMBER_0 = 0,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
export interface KamiApiCamelOilV1ListCardBindingsByTokenReq {
|
||||
/**
|
||||
* 页数
|
||||
*/
|
||||
current: number;
|
||||
/**
|
||||
* 页码
|
||||
*/
|
||||
pageSize: KamiApiCamelOilV1ListCardBindingsByTokenReqPageSizeEnum;
|
||||
/**
|
||||
* Token ID
|
||||
*/
|
||||
tokenId: number;
|
||||
}
|
||||
|
||||
export enum KamiApiCamelOilV1ListCardBindingsByTokenReqPageSizeEnum {
|
||||
NUMBER_5 = 5,
|
||||
NUMBER_10 = 10,
|
||||
NUMBER_15 = 15,
|
||||
NUMBER_20 = 20,
|
||||
NUMBER_50 = 50,
|
||||
NUMBER_100 = 100
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import type { KamiApiCamelOilV1CardBindingInfo } from './kami-api-camel-oil-v1-card-binding-info';
|
||||
|
||||
export interface KamiApiCamelOilV1ListCardBindingsByTokenRes {
|
||||
total?: number;
|
||||
list?: Array<KamiApiCamelOilV1CardBindingInfo>;
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
export interface KamiApiCamelOilV1ListTokensReq {
|
||||
/**
|
||||
* 页数
|
||||
*/
|
||||
current: number;
|
||||
/**
|
||||
* 页码
|
||||
*/
|
||||
pageSize: KamiApiCamelOilV1ListTokensReqPageSizeEnum;
|
||||
/**
|
||||
* Token名称
|
||||
*/
|
||||
tokenName?: string;
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
status?: number;
|
||||
}
|
||||
|
||||
export enum KamiApiCamelOilV1ListTokensReqPageSizeEnum {
|
||||
NUMBER_5 = 5,
|
||||
NUMBER_10 = 10,
|
||||
NUMBER_15 = 15,
|
||||
NUMBER_20 = 20,
|
||||
NUMBER_50 = 50,
|
||||
NUMBER_100 = 100
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
// May contain unused imports in some cases
|
||||
// @ts-ignore
|
||||
import type { KamiApiCamelOilV1TokenInfo } from './kami-api-camel-oil-v1-token-info';
|
||||
|
||||
export interface KamiApiCamelOilV1ListTokensRes {
|
||||
total?: number;
|
||||
list?: Array<KamiApiCamelOilV1TokenInfo>;
|
||||
}
|
||||
@@ -41,8 +41,8 @@ export interface KamiApiCamelOilV1OrderDetailResAccountInfo {
|
||||
|
||||
export enum KamiApiCamelOilV1OrderDetailResAccountInfoStatusEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_0 = 0
|
||||
NUMBER_0 = 0,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
|
||||
57
src/api/generated/models/kami-api-camel-oil-v1-token-info.ts
Normal file
57
src/api/generated/models/kami-api-camel-oil-v1-token-info.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
/* tslint: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.
|
||||
*/
|
||||
|
||||
export interface KamiApiCamelOilV1TokenInfo {
|
||||
/**
|
||||
* Token ID
|
||||
*/
|
||||
id?: number;
|
||||
/**
|
||||
* Token名称
|
||||
*/
|
||||
tokenName?: string;
|
||||
/**
|
||||
* Token值
|
||||
*/
|
||||
tokenValue?: string;
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
status?: number;
|
||||
/**
|
||||
* 已绑定卡密数量
|
||||
*/
|
||||
bindCount?: number;
|
||||
totalBindAmount?: object;
|
||||
/**
|
||||
* 最后绑定时间
|
||||
*/
|
||||
lastBindAt?: string;
|
||||
/**
|
||||
* 最后使用时间
|
||||
*/
|
||||
lastUsedAt?: string;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createdAt?: string;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
updatedAt?: string;
|
||||
}
|
||||
@@ -6,7 +6,8 @@ import {
|
||||
JDHistoryApi,
|
||||
JDOrderManagementApi,
|
||||
JDV2AccountApi,
|
||||
JDV2OrderApi
|
||||
JDV2OrderApi,
|
||||
JDV2TokenManagementApi
|
||||
} from './generated';
|
||||
|
||||
// 获取API基础URL
|
||||
@@ -47,3 +48,9 @@ export const jdV2OrderClient = new JDV2OrderApi(
|
||||
apiBaseUrl,
|
||||
axios
|
||||
);
|
||||
|
||||
export const jdV2TokenClient = new JDV2TokenManagementApi(
|
||||
configuration,
|
||||
apiBaseUrl,
|
||||
axios
|
||||
);
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { AppRouteRecordRaw } from '../types';
|
||||
|
||||
/**
|
||||
* 骆驼加油管理路由模块
|
||||
* 包含账号管理和订单管理两个子模块
|
||||
* 包含账号管理、订单管理和Token管理三个子模块
|
||||
*/
|
||||
const CamelOilMgt: AppRouteRecordRaw = {
|
||||
path: '/camel-oil',
|
||||
@@ -37,6 +37,17 @@ const CamelOilMgt: AppRouteRecordRaw = {
|
||||
roles: ['*'],
|
||||
activeMenu: '/camel-oil/order'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'token',
|
||||
name: 'camelOilToken',
|
||||
component: () => import('@/views/camel-oil-info/token/index.vue'),
|
||||
meta: {
|
||||
locale: 'Token管理',
|
||||
requiresAuth: true,
|
||||
roles: ['*'],
|
||||
activeMenu: '/camel-oil/token'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
151
src/views/camel-oil-info/token/components/add-edit-modal.vue
Normal file
151
src/views/camel-oil-info/token/components/add-edit-modal.vue
Normal file
@@ -0,0 +1,151 @@
|
||||
<template>
|
||||
<a-modal
|
||||
v-model:visible="modalVisible"
|
||||
title="新增Token"
|
||||
width="600px"
|
||||
@cancel="handleCancel"
|
||||
@before-ok="handleBeforeOk"
|
||||
>
|
||||
<a-form
|
||||
ref="formRef"
|
||||
:model="formModel"
|
||||
:rules="rules"
|
||||
:label-col-props="{ span: 6 }"
|
||||
:wrapper-col-props="{ span: 18 }"
|
||||
label-align="left"
|
||||
>
|
||||
<a-form-item field="tokenName" label="Token名称" required>
|
||||
<a-input
|
||||
v-model="formModel.tokenName"
|
||||
placeholder="请输入Token名称"
|
||||
:max-length="100"
|
||||
show-word-limit
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item field="tokenValue" label="Token值" required>
|
||||
<a-textarea
|
||||
v-model="formModel.tokenValue"
|
||||
placeholder="请输入Token值"
|
||||
:max-length="1000"
|
||||
:auto-size="{ minRows: 3, maxRows: 6 }"
|
||||
show-word-limit
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item field="remark" label="备注">
|
||||
<a-textarea
|
||||
v-model="formModel.remark"
|
||||
placeholder="请输入备注信息"
|
||||
:max-length="500"
|
||||
:auto-size="{ minRows: 2, maxRows: 4 }"
|
||||
show-word-limit
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, computed, watch } from 'vue';
|
||||
import { Notification, FormInstance } from '@arco-design/web-vue';
|
||||
import { KamiApiCamelOilV1TokenInfo } from '@/api/generated/index.ts';
|
||||
import { jdV2TokenClient } from '@/api/index.ts';
|
||||
|
||||
interface Props {
|
||||
visible: boolean;
|
||||
}
|
||||
|
||||
interface Emits {
|
||||
(e: 'update:visible', value: boolean): void;
|
||||
(e: 'success'): void;
|
||||
}
|
||||
|
||||
const props = defineProps<Props>();
|
||||
|
||||
const emit = defineEmits<Emits>();
|
||||
|
||||
const modalVisible = computed({
|
||||
get: () => props.visible,
|
||||
set: value => emit('update:visible', value)
|
||||
});
|
||||
|
||||
const formRef = ref<FormInstance>();
|
||||
|
||||
const generateFormModel = () => {
|
||||
return {
|
||||
tokenName: '',
|
||||
tokenValue: '',
|
||||
remark: ''
|
||||
};
|
||||
};
|
||||
|
||||
const formModel = reactive(generateFormModel());
|
||||
|
||||
const rules = {
|
||||
tokenName: [
|
||||
{ required: true, message: '请输入Token名称' },
|
||||
{ min: 1, max: 100, message: 'Token名称长度为1-100个字符' }
|
||||
],
|
||||
tokenValue: [
|
||||
{ required: true, message: '请输入Token值' },
|
||||
{ min: 1, max: 1000, message: 'Token值长度为1-1000个字符' }
|
||||
],
|
||||
remark: [{ max: 500, message: '备注长度不能超过500个字符' }]
|
||||
};
|
||||
|
||||
// 监听弹窗显示状态,重置表单
|
||||
watch(
|
||||
() => props.visible,
|
||||
visible => {
|
||||
if (visible) {
|
||||
// 重置表单
|
||||
Object.assign(formModel, generateFormModel());
|
||||
}
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
const handleCancel = () => {
|
||||
emit('update:visible', false);
|
||||
};
|
||||
|
||||
const handleBeforeOk = async () => {
|
||||
try {
|
||||
const valid = await formRef.value?.validate();
|
||||
if (!valid) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// 新增Token
|
||||
await jdV2TokenClient.apiTokenCreatePost({
|
||||
kamiApiCamelOilV1CreateTokenReq: {
|
||||
tokenName: formModel.tokenName,
|
||||
tokenValue: formModel.tokenValue,
|
||||
remark: formModel.remark
|
||||
}
|
||||
});
|
||||
|
||||
Notification.success({
|
||||
content: '新增Token成功',
|
||||
closable: true
|
||||
});
|
||||
|
||||
emit('success');
|
||||
emit('update:visible', false);
|
||||
return true;
|
||||
} catch (err) {
|
||||
console.error('新增Token失败:', err);
|
||||
Notification.error({
|
||||
content: '新增Token失败',
|
||||
closable: true
|
||||
});
|
||||
return false;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
:deep(.arco-modal-body) {
|
||||
max-height: 60vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,218 @@
|
||||
<template>
|
||||
<a-modal
|
||||
v-model:visible="modalVisible"
|
||||
:title="`Token绑卡记录 - ${tokenName}`"
|
||||
width="80%"
|
||||
:footer="false"
|
||||
@cancel="handleCancel"
|
||||
>
|
||||
<a-table
|
||||
:loading="loading"
|
||||
:pagination="{
|
||||
current: pagination.current,
|
||||
pageSize: pagination.pageSize,
|
||||
total: pagination.total,
|
||||
pageSizeOptions: [10, 20, 50, 100],
|
||||
showPageSize: true,
|
||||
showTotal: true
|
||||
}"
|
||||
:columns="columns"
|
||||
:data="renderData"
|
||||
:scroll="{ x: 1200 }"
|
||||
@page-change="onPageChange"
|
||||
@page-size-change="onPageSizeChange"
|
||||
>
|
||||
<template #createdAt="{ record }">
|
||||
{{ formatDateTime(record.createdAt) }}
|
||||
</template>
|
||||
|
||||
<template #amount="{ record }">
|
||||
{{ formatAmount(record.amount) }}
|
||||
</template>
|
||||
</a-table>
|
||||
</a-modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, computed, watch } from 'vue';
|
||||
import { TableColumnData } from '@arco-design/web-vue';
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { Pagination } from '@/types/global';
|
||||
import {
|
||||
ApiCardBindingListByTokenGetPageSizeEnum,
|
||||
KamiApiCamelOilV1CardBindingInfo
|
||||
} from '@/api/generated/index.ts';
|
||||
import { jdV2TokenClient } from '@/api/index.ts';
|
||||
|
||||
interface Props {
|
||||
visible: boolean;
|
||||
tokenId: number;
|
||||
tokenName: string;
|
||||
}
|
||||
|
||||
interface Emits {
|
||||
(e: 'update:visible', value: boolean): void;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
tokenId: 0,
|
||||
tokenName: ''
|
||||
});
|
||||
|
||||
const emit = defineEmits<Emits>();
|
||||
|
||||
const modalVisible = computed({
|
||||
get: () => props.visible,
|
||||
set: value => emit('update:visible', value)
|
||||
});
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 20
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
});
|
||||
|
||||
const columns: TableColumnData[] = [
|
||||
{
|
||||
title: '序号',
|
||||
dataIndex: 'index',
|
||||
width: 80,
|
||||
render: ({ rowIndex }) => {
|
||||
return rowIndex + 1 + (pagination.current - 1) * pagination.pageSize;
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '绑卡ID',
|
||||
dataIndex: 'id',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: 'Token ID',
|
||||
dataIndex: 'tokenId',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: 'Token名称',
|
||||
dataIndex: 'tokenName',
|
||||
width: 150,
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: '订单ID',
|
||||
dataIndex: 'orderId',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: '卡号',
|
||||
dataIndex: 'cardNumber',
|
||||
width: 200,
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: '卡密',
|
||||
dataIndex: 'cardPassword',
|
||||
width: 150,
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: '金额',
|
||||
dataIndex: 'amount',
|
||||
slotName: 'amount',
|
||||
width: 120,
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createdAt',
|
||||
slotName: 'createdAt',
|
||||
width: 180
|
||||
}
|
||||
];
|
||||
|
||||
const { loading, setLoading } = useLoading(true);
|
||||
const renderData = ref<KamiApiCamelOilV1CardBindingInfo[]>([]);
|
||||
|
||||
const fetchData = async (params: any = { current: 1, pageSize: 20 }) => {
|
||||
if (!props.tokenId) {
|
||||
return;
|
||||
}
|
||||
|
||||
setLoading(true);
|
||||
try {
|
||||
const { data } = await jdV2TokenClient.apiCardBindingListByTokenGet({
|
||||
current: params.current,
|
||||
pageSize:
|
||||
params.pageSize as unknown as ApiCardBindingListByTokenGetPageSizeEnum,
|
||||
tokenId: props.tokenId
|
||||
});
|
||||
|
||||
renderData.value = data.list || [];
|
||||
pagination.current = params.current;
|
||||
pagination.pageSize = params.pageSize;
|
||||
pagination.total = data.total || 0;
|
||||
} catch (err) {
|
||||
console.error('获取绑卡记录失败:', err);
|
||||
renderData.value = [];
|
||||
pagination.total = 0;
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
const onPageChange = (current: number) => {
|
||||
fetchData({ ...pagination, current });
|
||||
};
|
||||
|
||||
const onPageSizeChange = (pageSize: number) => {
|
||||
fetchData({ ...pagination, pageSize });
|
||||
};
|
||||
|
||||
const handleCancel = () => {
|
||||
emit('update:visible', false);
|
||||
};
|
||||
|
||||
const formatAmount = (amount: any): string => {
|
||||
if (!amount) return '-';
|
||||
if (typeof amount === 'object') {
|
||||
return JSON.stringify(amount);
|
||||
}
|
||||
return String(amount);
|
||||
};
|
||||
|
||||
const formatDateTime = (dateTime: string) => {
|
||||
if (!dateTime) return '-';
|
||||
return new Date(dateTime).toLocaleString('zh-CN', {
|
||||
year: 'numeric',
|
||||
month: '2-digit',
|
||||
day: '2-digit',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
second: '2-digit'
|
||||
});
|
||||
};
|
||||
|
||||
// 监听弹窗显示状态
|
||||
watch(
|
||||
() => props.visible,
|
||||
visible => {
|
||||
if (visible && props.tokenId) {
|
||||
// 重置分页并获取数据
|
||||
Object.assign(pagination, basePagination);
|
||||
fetchData();
|
||||
}
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
:deep(.arco-modal-body) {
|
||||
max-height: 70vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
345
src/views/camel-oil-info/token/index.vue
Normal file
345
src/views/camel-oil-info/token/index.vue
Normal file
@@ -0,0 +1,345 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<Breadcrumb :items="['充值账户管理', 'Token管理']" />
|
||||
<a-card class="general-card" title="Token管理">
|
||||
<!-- 搜索表单区域 -->
|
||||
<a-row>
|
||||
<a-col :flex="1">
|
||||
<a-form
|
||||
:model="formModel"
|
||||
:label-col-props="{ span: 6 }"
|
||||
:wrapper-col-props="{ span: 18 }"
|
||||
label-align="left"
|
||||
>
|
||||
<a-row :gutter="16">
|
||||
<a-col :span="8">
|
||||
<a-form-item field="tokenName" label="Token名称">
|
||||
<a-input
|
||||
v-model="formModel.tokenName"
|
||||
placeholder="请输入Token名称"
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item field="status" label="状态">
|
||||
<a-select
|
||||
v-model="formModel.status"
|
||||
placeholder="请选择状态"
|
||||
allow-clear
|
||||
>
|
||||
<a-option :value="0">禁用</a-option>
|
||||
<a-option :value="1">启用</a-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</a-col>
|
||||
<a-divider style="height: 42px" direction="vertical" />
|
||||
<a-col flex="172px" style="text-align: right">
|
||||
<a-space direction="horizontal" :size="18">
|
||||
<a-button type="primary" @click="search">
|
||||
<template #icon>
|
||||
<icon-search />
|
||||
</template>
|
||||
搜索
|
||||
</a-button>
|
||||
<a-button @click="reset">
|
||||
<template #icon>
|
||||
<icon-refresh />
|
||||
</template>
|
||||
重置
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-divider style="margin-top: 0" />
|
||||
|
||||
<!-- 操作按钮区域 -->
|
||||
<a-row style="margin-bottom: 16px">
|
||||
<a-space>
|
||||
<a-button type="primary" @click="showAddModal()">
|
||||
<template #icon>
|
||||
<icon-plus />
|
||||
</template>
|
||||
新增Token
|
||||
</a-button>
|
||||
<a-button @click="download">
|
||||
<template #icon>
|
||||
<icon-download />
|
||||
</template>
|
||||
导出
|
||||
</a-button>
|
||||
</a-space>
|
||||
</a-row>
|
||||
|
||||
<!-- 数据表格区域 -->
|
||||
<a-table
|
||||
:loading="loading"
|
||||
:pagination="{
|
||||
current: pagination.current,
|
||||
pageSize: pagination.pageSize,
|
||||
total: pagination.total,
|
||||
pageSizeOptions: [10, 20, 50, 100],
|
||||
showPageSize: true
|
||||
}"
|
||||
:columns="columns"
|
||||
:data="renderData"
|
||||
:scroll="{ x: 1200 }"
|
||||
@page-change="onPageChange"
|
||||
@page-size-change="onPageSizeChange"
|
||||
>
|
||||
<!-- 状态列模板 -->
|
||||
<template #status="{ record }">
|
||||
<a-tag size="small" :color="statusMapper(record.status).color">
|
||||
{{ statusMapper(record.status).text }}
|
||||
</a-tag>
|
||||
</template>
|
||||
|
||||
<!-- 操作列模板 -->
|
||||
<template #operations="{ record }">
|
||||
<a-space size="small">
|
||||
<a-tooltip content="查看绑卡记录">
|
||||
<a-button
|
||||
size="small"
|
||||
status="normal"
|
||||
@click="showBindingRecords(record)"
|
||||
>
|
||||
<template #icon>
|
||||
<icon-list />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<a-popconfirm
|
||||
content="确认删除此Token吗?"
|
||||
@ok="deleteToken(record.id)"
|
||||
>
|
||||
<a-tooltip content="删除">
|
||||
<a-button size="small" status="danger">
|
||||
<template #icon>
|
||||
<icon-delete />
|
||||
</template>
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</a-table>
|
||||
</a-card>
|
||||
|
||||
<!-- 新增Token弹窗 -->
|
||||
<add-edit-modal
|
||||
v-model:visible="state.addEditModalVisible"
|
||||
@success="handleModalSuccess"
|
||||
/>
|
||||
|
||||
<!-- 绑卡记录弹窗 -->
|
||||
<binding-records-modal
|
||||
v-model:visible="state.bindingRecordsVisible"
|
||||
:token-id="state.currentTokenId"
|
||||
:token-name="state.currentTokenName"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import useLoading from '@/hooks/loading';
|
||||
import { Pagination } from '@/types/global';
|
||||
import { onMounted, reactive, ref } from 'vue';
|
||||
import { Notification, TableColumnData } from '@arco-design/web-vue';
|
||||
import AddEditModal from './components/add-edit-modal.vue';
|
||||
import BindingRecordsModal from './components/binding-records-modal.vue';
|
||||
import {
|
||||
ApiTokenListGetPageSizeEnum,
|
||||
KamiApiCamelOilV1TokenInfo
|
||||
} from '@/api/generated/index.ts';
|
||||
import { jdV2TokenClient } from '@/api/index.ts';
|
||||
|
||||
const basePagination: Pagination = {
|
||||
current: 1,
|
||||
pageSize: 50
|
||||
};
|
||||
const pagination = reactive({
|
||||
...basePagination
|
||||
});
|
||||
|
||||
const columns: TableColumnData[] = [
|
||||
{
|
||||
title: '序号',
|
||||
dataIndex: 'index',
|
||||
width: 80,
|
||||
render: ({ rowIndex }) => {
|
||||
return rowIndex + 1 + (pagination.current - 1) * pagination.pageSize;
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Token名称',
|
||||
dataIndex: 'tokenName',
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
title: 'Token',
|
||||
dataIndex: 'token',
|
||||
width: 300,
|
||||
ellipsis: true,
|
||||
tooltip: true
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
dataIndex: 'status',
|
||||
slotName: 'status',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
title: '创建人',
|
||||
dataIndex: 'createdBy',
|
||||
width: 120
|
||||
},
|
||||
{
|
||||
title: '创建时间',
|
||||
dataIndex: 'createdAt',
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: '更新时间',
|
||||
dataIndex: 'updatedAt',
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'operations',
|
||||
slotName: 'operations',
|
||||
fixed: 'right',
|
||||
width: 150
|
||||
}
|
||||
];
|
||||
|
||||
const generateFormModel = () => {
|
||||
return {
|
||||
tokenName: '',
|
||||
status: undefined as number | undefined
|
||||
};
|
||||
};
|
||||
|
||||
const { loading, setLoading } = useLoading(true);
|
||||
const renderData = ref<KamiApiCamelOilV1TokenInfo[]>([]);
|
||||
const formModel = ref(generateFormModel());
|
||||
|
||||
const state = reactive({
|
||||
addEditModalVisible: false,
|
||||
bindingRecordsVisible: false,
|
||||
currentTokenId: 0,
|
||||
currentTokenName: ''
|
||||
});
|
||||
|
||||
const fetchData = async (params: any = { current: 1, pageSize: 50 }) => {
|
||||
setLoading(true);
|
||||
try {
|
||||
const { data } = await jdV2TokenClient.apiTokenListGet({
|
||||
current: params.current,
|
||||
pageSize: params.pageSize as unknown as ApiTokenListGetPageSizeEnum,
|
||||
tokenName: params.tokenName,
|
||||
status: params.status
|
||||
});
|
||||
|
||||
renderData.value = data.list || [];
|
||||
pagination.current = params.current;
|
||||
pagination.pageSize = params.pageSize;
|
||||
pagination.total = data.total || 0;
|
||||
} catch (err) {
|
||||
console.error('获取Token列表失败:', err);
|
||||
Notification.error({
|
||||
content: '获取Token列表失败',
|
||||
closable: true
|
||||
});
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
const onPageChange = (current: number) => {
|
||||
fetchData({ ...pagination, current });
|
||||
};
|
||||
|
||||
const onPageSizeChange = (pageSize: number) => {
|
||||
fetchData({ ...pagination, pageSize });
|
||||
};
|
||||
|
||||
const search = () => {
|
||||
fetchData({
|
||||
...basePagination,
|
||||
...formModel.value
|
||||
});
|
||||
};
|
||||
|
||||
const reset = () => {
|
||||
formModel.value = generateFormModel();
|
||||
search();
|
||||
};
|
||||
|
||||
const showAddModal = () => {
|
||||
state.addEditModalVisible = true;
|
||||
};
|
||||
|
||||
const showBindingRecords = (record: KamiApiCamelOilV1TokenInfo) => {
|
||||
state.currentTokenId = record.id;
|
||||
state.currentTokenName = record.tokenName;
|
||||
state.bindingRecordsVisible = true;
|
||||
};
|
||||
|
||||
const deleteToken = async (tokenId: number) => {
|
||||
try {
|
||||
await jdV2TokenClient.apiTokenDeletePost({
|
||||
kamiApiCamelOilV1DeleteTokenReq: {
|
||||
tokenId
|
||||
}
|
||||
});
|
||||
|
||||
Notification.success({
|
||||
content: '删除Token成功',
|
||||
closable: true
|
||||
});
|
||||
|
||||
fetchData({ ...pagination });
|
||||
} catch (err) {
|
||||
console.error('删除Token失败:', err);
|
||||
Notification.error({
|
||||
content: '删除Token失败',
|
||||
closable: true
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const handleModalSuccess = () => {
|
||||
fetchData({ ...pagination });
|
||||
};
|
||||
|
||||
const statusMapper = (status: number): { text: string; color: string } => {
|
||||
switch (status) {
|
||||
case 0:
|
||||
return { text: '禁用', color: 'red' };
|
||||
case 1:
|
||||
return { text: '启用', color: 'green' };
|
||||
default:
|
||||
return { text: '未知', color: 'gray' };
|
||||
}
|
||||
};
|
||||
|
||||
const download = () => {
|
||||
// TODO: 实现导出功能
|
||||
Notification.info({
|
||||
content: '导出功能开发中',
|
||||
closable: true
|
||||
});
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
fetchData();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.container {
|
||||
padding: 0 20px 20px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user