feat: 添加一个接口
This commit is contained in:
@@ -185,6 +185,7 @@ models/kami-api-card-info-walmart-v1-card-redeem-account-summary.ts
|
||||
models/kami-api-card-info-walmart-v1-group-add-req.ts
|
||||
models/kami-api-card-info-walmart-v1-group-all-list-res.ts
|
||||
models/kami-api-card-info-walmart-v1-group-delete-req.ts
|
||||
models/kami-api-card-info-walmart-v1-group-export-req.ts
|
||||
models/kami-api-card-info-walmart-v1-group-list-req.ts
|
||||
models/kami-api-card-info-walmart-v1-group-list-res.ts
|
||||
models/kami-api-card-info-walmart-v1-group-stat-req.ts
|
||||
|
||||
@@ -5627,6 +5627,77 @@ export const DefaultApiAxiosParamCreator = function (
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 导出账户分组
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartGroupExportGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户名
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoWalmartGroupExportGet: async (
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartGroupExportGetPageSizeEnum,
|
||||
username?: string,
|
||||
date?: string,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'current' is not null or undefined
|
||||
assertParamExists('apiCardInfoWalmartGroupExportGet', 'current', current);
|
||||
// verify required parameter 'pageSize' is not null or undefined
|
||||
assertParamExists(
|
||||
'apiCardInfoWalmartGroupExportGet',
|
||||
'pageSize',
|
||||
pageSize
|
||||
);
|
||||
const localVarPath = `/api/cardInfo/walmart/group/export`;
|
||||
// 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 (username !== undefined) {
|
||||
localVarQueryParameter['username'] = username;
|
||||
}
|
||||
|
||||
if (date !== undefined) {
|
||||
localVarQueryParameter['date'] = date;
|
||||
}
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions =
|
||||
baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {
|
||||
...localVarHeaderParameter,
|
||||
...headersFromBaseOptions,
|
||||
...options.headers
|
||||
};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取沃尔玛账户分组
|
||||
@@ -13846,6 +13917,46 @@ export const DefaultApiFp = function (configuration?: Configuration) {
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 导出账户分组
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartGroupExportGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户名
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiCardInfoWalmartGroupExportGet(
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartGroupExportGetPageSizeEnum,
|
||||
username?: string,
|
||||
date?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
|
||||
> {
|
||||
const localVarAxiosArgs =
|
||||
await localVarAxiosParamCreator.apiCardInfoWalmartGroupExportGet(
|
||||
current,
|
||||
pageSize,
|
||||
username,
|
||||
date,
|
||||
options
|
||||
);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath =
|
||||
operationServerMap['DefaultApi.apiCardInfoWalmartGroupExportGet']?.[
|
||||
localVarOperationServerIndex
|
||||
]?.url;
|
||||
return (axios, basePath) =>
|
||||
createRequestFunction(
|
||||
localVarAxiosArgs,
|
||||
globalAxios,
|
||||
BASE_PATH,
|
||||
configuration
|
||||
)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取沃尔玛账户分组
|
||||
@@ -18894,6 +19005,33 @@ export const DefaultApiFactory = function (
|
||||
.apiCardInfoWalmartGroupDeleteDelete(id, options)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 导出账户分组
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartGroupExportGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户名
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiCardInfoWalmartGroupExportGet(
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartGroupExportGetPageSizeEnum,
|
||||
username?: string,
|
||||
date?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
): AxiosPromise<object> {
|
||||
return localVarFp
|
||||
.apiCardInfoWalmartGroupExportGet(
|
||||
current,
|
||||
pageSize,
|
||||
username,
|
||||
date,
|
||||
options
|
||||
)
|
||||
.then(request => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary 获取沃尔玛账户分组
|
||||
@@ -22632,6 +22770,35 @@ export class DefaultApi extends BaseAPI {
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 导出账户分组
|
||||
* @param {number} current 页数
|
||||
* @param {ApiCardInfoWalmartGroupExportGetPageSizeEnum} pageSize 页码
|
||||
* @param {string} [username] 用户名
|
||||
* @param {string} [date] 日期
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof DefaultApi
|
||||
*/
|
||||
public apiCardInfoWalmartGroupExportGet(
|
||||
current: number,
|
||||
pageSize: ApiCardInfoWalmartGroupExportGetPageSizeEnum,
|
||||
username?: string,
|
||||
date?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
) {
|
||||
return DefaultApiFp(this.configuration)
|
||||
.apiCardInfoWalmartGroupExportGet(
|
||||
current,
|
||||
pageSize,
|
||||
username,
|
||||
date,
|
||||
options
|
||||
)
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary 获取沃尔玛账户分组
|
||||
@@ -24661,6 +24828,19 @@ export type ApiCardInfoWalmartAccountSummaryDownloadGetPageSizeEnum =
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiCardInfoWalmartGroupExportGetPageSizeEnum = {
|
||||
NUMBER_5: 5,
|
||||
NUMBER_10: 10,
|
||||
NUMBER_15: 15,
|
||||
NUMBER_20: 20,
|
||||
NUMBER_50: 50,
|
||||
NUMBER_100: 100
|
||||
} as const;
|
||||
export type ApiCardInfoWalmartGroupExportGetPageSizeEnum =
|
||||
(typeof ApiCardInfoWalmartGroupExportGetPageSizeEnum)[keyof typeof ApiCardInfoWalmartGroupExportGetPageSizeEnum];
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const ApiCardInfoWalmartGroupListGetPageSizeEnum = {
|
||||
NUMBER_5: 5,
|
||||
NUMBER_10: 10,
|
||||
|
||||
@@ -173,6 +173,7 @@ export * from './kami-api-card-info-walmart-v1-card-redeem-account-summary';
|
||||
export * from './kami-api-card-info-walmart-v1-group-add-req';
|
||||
export * from './kami-api-card-info-walmart-v1-group-all-list-res';
|
||||
export * from './kami-api-card-info-walmart-v1-group-delete-req';
|
||||
export * from './kami-api-card-info-walmart-v1-group-export-req';
|
||||
export * from './kami-api-card-info-walmart-v1-group-list-req';
|
||||
export * from './kami-api-card-info-walmart-v1-group-list-res';
|
||||
export * from './kami-api-card-info-walmart-v1-group-stat-req';
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface KamiApiCardInfoWalmartV1GroupExportReq
|
||||
*/
|
||||
export interface KamiApiCardInfoWalmartV1GroupExportReq {
|
||||
/**
|
||||
* 页数
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1GroupExportReq
|
||||
*/
|
||||
current: number;
|
||||
/**
|
||||
* 页码
|
||||
* @type {number}
|
||||
* @memberof KamiApiCardInfoWalmartV1GroupExportReq
|
||||
*/
|
||||
pageSize: KamiApiCardInfoWalmartV1GroupExportReqPageSizeEnum;
|
||||
/**
|
||||
* 用户名
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1GroupExportReq
|
||||
*/
|
||||
username?: string;
|
||||
/**
|
||||
* 日期
|
||||
* @type {string}
|
||||
* @memberof KamiApiCardInfoWalmartV1GroupExportReq
|
||||
*/
|
||||
date?: string;
|
||||
}
|
||||
|
||||
export const KamiApiCardInfoWalmartV1GroupExportReqPageSizeEnum = {
|
||||
NUMBER_5: 5,
|
||||
NUMBER_10: 10,
|
||||
NUMBER_15: 15,
|
||||
NUMBER_20: 20,
|
||||
NUMBER_50: 50,
|
||||
NUMBER_100: 100
|
||||
} as const;
|
||||
|
||||
export type KamiApiCardInfoWalmartV1GroupExportReqPageSizeEnum =
|
||||
(typeof KamiApiCardInfoWalmartV1GroupExportReqPageSizeEnum)[keyof typeof KamiApiCardInfoWalmartV1GroupExportReqPageSizeEnum];
|
||||
Reference in New Issue
Block a user