build(api): 生成 API 代码更新
- 新增 account-load-req 模型文件 - 更新 API 代码,添加新的请求模型 - 调整 ESLint 设置,优化代码风格
This commit is contained in:
@@ -171,6 +171,7 @@ models/kami-api-card-info-walmart-v1-account-info.ts
|
||||
models/kami-api-card-info-walmart-v1-account-list-record.ts
|
||||
models/kami-api-card-info-walmart-v1-account-list-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-list-res.ts
|
||||
models/kami-api-card-info-walmart-v1-account-load-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-refresh-status-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-status-detect-req.ts
|
||||
models/kami-api-card-info-walmart-v1-account-status-detect-res.ts
|
||||
|
||||
@@ -245,6 +245,8 @@ import type { KamiApiCardInfoWalmartV1AccountDailySummaryRes } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountListRes } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountLoadReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountRefreshStatusReq } from '../models';
|
||||
// @ts-ignore
|
||||
import type { KamiApiCardInfoWalmartV1AccountStatusDetectRes } from '../models';
|
||||
@@ -5086,6 +5088,54 @@ export const DefaultApiAxiosParamCreator = function (
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 导入沃尔玛账户
|
||||
* @param {KamiApiCardInfoWalmartV1AccountLoadReq} [kamiApiCardInfoWalmartV1AccountLoadReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoWalmartAccountLoadPost: async (
|
||||
kamiApiCardInfoWalmartV1AccountLoadReq?: KamiApiCardInfoWalmartV1AccountLoadReq,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/cardInfo/walmart/account/load`;
|
||||
// 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(
|
||||
kamiApiCardInfoWalmartV1AccountLoadReq,
|
||||
localVarRequestOptions,
|
||||
configuration
|
||||
);
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 刷新账号充值状态
|
||||
@@ -13225,6 +13275,37 @@ export const DefaultApiFp = function (configuration?: Configuration) {
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 导入沃尔玛账户
|
||||
* @param {KamiApiCardInfoWalmartV1AccountLoadReq} [kamiApiCardInfoWalmartV1AccountLoadReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiCardInfoWalmartAccountLoadPost(
|
||||
kamiApiCardInfoWalmartV1AccountLoadReq?: KamiApiCardInfoWalmartV1AccountLoadReq,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.apiCardInfoWalmartAccountLoadPost(
|
||||
kamiApiCardInfoWalmartV1AccountLoadReq,
|
||||
options
|
||||
);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath =
|
||||
operationServerMap['DefaultApi.apiCardInfoWalmartAccountLoadPost']?.[
|
||||
localVarOperationServerIndex
|
||||
]?.url;
|
||||
return (axios, basePath) =>
|
||||
createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 刷新账号充值状态
|
||||
@@ -18273,6 +18354,24 @@ export const DefaultApiFactory = function (
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 导入沃尔玛账户
|
||||
* @param {KamiApiCardInfoWalmartV1AccountLoadReq} [kamiApiCardInfoWalmartV1AccountLoadReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoWalmartAccountLoadPost(
|
||||
kamiApiCardInfoWalmartV1AccountLoadReq?: KamiApiCardInfoWalmartV1AccountLoadReq,
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<object> {
|
||||
return localVarFp
|
||||
.apiCardInfoWalmartAccountLoadPost(
|
||||
kamiApiCardInfoWalmartV1AccountLoadReq,
|
||||
options
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 刷新账号充值状态
|
||||
@@ -21888,6 +21987,26 @@ export class DefaultApi extends BaseAPI {
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 导入沃尔玛账户
|
||||
* @param {KamiApiCardInfoWalmartV1AccountLoadReq} [kamiApiCardInfoWalmartV1AccountLoadReq]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DefaultApi
|
||||
*/
|
||||
public apiCardInfoWalmartAccountLoadPost(
|
||||
kamiApiCardInfoWalmartV1AccountLoadReq?: KamiApiCardInfoWalmartV1AccountLoadReq,
|
||||
options?: RawAxiosRequestConfig
|
||||
) {
|
||||
return DefaultApiFp(this.configuration)
|
||||
.apiCardInfoWalmartAccountLoadPost(
|
||||
kamiApiCardInfoWalmartV1AccountLoadReq,
|
||||
options
|
||||
)
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 刷新账号充值状态
|
||||
|
||||
@@ -160,6 +160,7 @@ export * from './kami-api-card-info-walmart-v1-account-info';
|
||||
export * from './kami-api-card-info-walmart-v1-account-list-record';
|
||||
export * from './kami-api-card-info-walmart-v1-account-list-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-list-res';
|
||||
export * from './kami-api-card-info-walmart-v1-account-load-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-refresh-status-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-status-detect-req';
|
||||
export * from './kami-api-card-info-walmart-v1-account-status-detect-res';
|
||||
|
||||
@@ -25,17 +25,29 @@ export interface KamiApiCardInfoJdV1JDAccountUpdateReq {
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 状态
|
||||
* @type {number}
|
||||
* cookie不能为空
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoJdV1JDAccountUpdateReq
|
||||
*/
|
||||
status?: number;
|
||||
cookie: string;
|
||||
/**
|
||||
* 别名
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoJdV1JDAccountUpdateReq
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* 最大充值限制
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoJdV1JDAccountUpdateReq
|
||||
*/
|
||||
maxAmountLimit?: number;
|
||||
/**
|
||||
* 最大充值次数
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoJdV1JDAccountUpdateReq
|
||||
*/
|
||||
maxCountLimit?: number;
|
||||
/**
|
||||
* 备注
|
||||
* @type {string}
|
||||
@@ -43,9 +55,9 @@ export interface KamiApiCardInfoJdV1JDAccountUpdateReq {
|
||||
*/
|
||||
remark?: string;
|
||||
/**
|
||||
* 最大充值限制
|
||||
* 状态
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoJdV1JDAccountUpdateReq
|
||||
*/
|
||||
maxAmountLimit?: number;
|
||||
status?: number;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/* 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 KamiApiCardInfoWalmartV1AccountLoadReq
|
||||
*/
|
||||
export interface KamiApiCardInfoWalmartV1AccountLoadReq {
|
||||
/**
|
||||
* cookie不能为空
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountLoadReq
|
||||
*/
|
||||
cookie: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountLoadReq
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 别名
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountLoadReq
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 分组名称
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountLoadReq
|
||||
*/
|
||||
groupName: string;
|
||||
/**
|
||||
* 备注
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountLoadReq
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
@@ -25,11 +25,11 @@ export interface KamiApiCardInfoWalmartV1AccountUpdateReq {
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 状态
|
||||
* @type {number}
|
||||
* cookie不能为空
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountUpdateReq
|
||||
*/
|
||||
status?: number;
|
||||
cookie: string;
|
||||
/**
|
||||
* 别名
|
||||
* @type {string}
|
||||
@@ -37,21 +37,33 @@ export interface KamiApiCardInfoWalmartV1AccountUpdateReq {
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* 备注
|
||||
* @type {string}
|
||||
* 分组ID
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountUpdateReq
|
||||
*/
|
||||
remark?: string;
|
||||
groupId?: number;
|
||||
/**
|
||||
* 最大充值限制
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountUpdateReq
|
||||
*/
|
||||
maxAmountLimit?: number;
|
||||
maxAmountLimit: number;
|
||||
/**
|
||||
* 最大充值次数
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountUpdateReq
|
||||
*/
|
||||
maxCountLimit?: number;
|
||||
maxCountLimit: number;
|
||||
/**
|
||||
* 状态
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountUpdateReq
|
||||
*/
|
||||
status?: number;
|
||||
/**
|
||||
* 备注
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1AccountUpdateReq
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
@@ -24,4 +24,10 @@ export interface KamiApiCardInfoWalmartV1GroupAddReq {
|
||||
* @memberof KamiApiCardInfoWalmartV1GroupAddReq
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 备注
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1GroupAddReq
|
||||
*/
|
||||
notes?: string;
|
||||
}
|
||||
|
||||
@@ -30,4 +30,10 @@ export interface KamiApiCardInfoWalmartV1GroupUpdateReq {
|
||||
* @memberof KamiApiCardInfoWalmartV1GroupUpdateReq
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 备注
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1GroupUpdateReq
|
||||
*/
|
||||
notes?: string;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,12 @@ export interface KamiInternalModelEntityV1CardRedeemAccountGroup {
|
||||
* @memberof KamiInternalModelEntityV1CardRedeemAccountGroup
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* 备注
|
||||
* @type {string}
|
||||
* @memberof KamiInternalModelEntityV1CardRedeemAccountGroup
|
||||
*/
|
||||
notes?: string;
|
||||
/**
|
||||
* 分组类别
|
||||
* @type {string}
|
||||
|
||||
@@ -10,12 +10,7 @@
|
||||
<a-form-item field="name" label="名称" required>
|
||||
<a-input v-model="formData.name" />
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
field="cookie"
|
||||
label="cookie"
|
||||
:disabled="props.id !== ''"
|
||||
required
|
||||
>
|
||||
<a-form-item field="cookie" label="cookie" required>
|
||||
<a-space
|
||||
direction="vertical"
|
||||
fill
|
||||
|
||||
Reference in New Issue
Block a user