feat: 更新API生成配置,添加用户ID字段到请求模型,优化参数序列化方式

This commit is contained in:
danial
2025-04-29 13:19:23 +08:00
parent 3d873344ce
commit 8cb7f14eea
27 changed files with 245 additions and 820 deletions

View File

@@ -22,7 +22,7 @@
"clean:cache": "rimraf .eslintcache && rimraf node_modules && pnpm install", "clean:cache": "rimraf .eslintcache && rimraf node_modules && pnpm install",
"prepare": "husky && husky install", "prepare": "husky && husky install",
"release": "bumpp", "release": "bumpp",
"gen:api": "openapi-generator-cli generate -i http://127.0.0.1:12401/api.json -g typescript-axios -o ./src/api/generated -p withSeparateModelsAndApi=true,modelPackage=models,apiPackage=apis,supportsES6=true,useTagAsApiPackage=true,sortParamsByRequiredFlag=true,snapshot=true" "gen:api": "openapi-generator-cli generate -i http://127.0.0.1:12401/api.json -g typescript-axios -o ./src/api/generated -p withSeparateModelsAndApi=true,modelPackage=models,apiPackage=apis,useTagAsApiPackage=true,sortParamsByRequiredFlag=true,useSquareBracketsInArrayNames=true"
}, },
"lint-staged": { "lint-staged": {
"*.{js,ts,jsx,tsx}": [ "*.{js,ts,jsx,tsx}": [

View File

@@ -1,5 +1,6 @@
.gitignore .gitignore
.npmignore .npmignore
.openapi-generator-ignore
api.ts api.ts
apis/ck-api.ts apis/ck-api.ts
apis/default-api.ts apis/default-api.ts
@@ -193,6 +194,8 @@ models/kami-api-card-info-walmart-v1-group-list-res.ts
models/kami-api-card-info-walmart-v1-group-stat-req.ts models/kami-api-card-info-walmart-v1-group-stat-req.ts
models/kami-api-card-info-walmart-v1-group-stat-res.ts models/kami-api-card-info-walmart-v1-group-stat-res.ts
models/kami-api-card-info-walmart-v1-group-update-req.ts models/kami-api-card-info-walmart-v1-group-update-req.ts
models/kami-api-card-info-walmart-v1-list-output-user-info.ts
models/kami-api-card-info-walmart-v1-list-output.ts
models/kami-api-card-info-walmart-v1-list-req.ts models/kami-api-card-info-walmart-v1-list-req.ts
models/kami-api-card-info-walmart-v1-list-res.ts models/kami-api-card-info-walmart-v1-list-res.ts
models/kami-api-card-info-walmart-v1-order-callback-req.ts models/kami-api-card-info-walmart-v1-order-callback-req.ts

View File

@@ -4731,6 +4731,7 @@ export const DefaultApiAxiosParamCreator = function (
* @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码 * @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码
* @param {string} [username] 用户 * @param {string} [username] 用户
* @param {string} [date] 日期 * @param {string} [date] 日期
* @param {string} [userId] 用户ID
* @param {*} [options] Override http request option. * @param {*} [options] Override http request option.
* @throws {RequiredError} * @throws {RequiredError}
*/ */
@@ -4739,6 +4740,7 @@ export const DefaultApiAxiosParamCreator = function (
pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum, pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum,
username?: string, username?: string,
date?: string, date?: string,
userId?: string,
options: RawAxiosRequestConfig = {} options: RawAxiosRequestConfig = {}
): Promise<RequestArgs> => { ): Promise<RequestArgs> => {
// verify required parameter 'current' is not null or undefined // verify required parameter 'current' is not null or undefined
@@ -4785,6 +4787,10 @@ export const DefaultApiAxiosParamCreator = function (
localVarQueryParameter['date'] = date; localVarQueryParameter['date'] = date;
} }
if (userId !== undefined) {
localVarQueryParameter['userId'] = userId;
}
setSearchParams(localVarUrlObj, localVarQueryParameter); setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {}; baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -4850,11 +4856,21 @@ export const DefaultApiAxiosParamCreator = function (
* *
* @summary 下载充值账户 * @summary 下载充值账户
* @param {string} [userId] 用户ID * @param {string} [userId] 用户ID
* @param {string} [name] 账户名称
* @param {string} [nickName] 用户昵称
* @param {string} [cookie]
* @param {string} [createdUserName] 创建用户昵称
* @param {number} [groupId] 分组ID
* @param {*} [options] Override http request option. * @param {*} [options] Override http request option.
* @throws {RequiredError} * @throws {RequiredError}
*/ */
apiCardInfoWalmartAccountDownloadGet: async ( apiCardInfoWalmartAccountDownloadGet: async (
userId?: string, userId?: string,
name?: string,
nickName?: string,
cookie?: string,
createdUserName?: string,
groupId?: number,
options: RawAxiosRequestConfig = {} options: RawAxiosRequestConfig = {}
): Promise<RequestArgs> => { ): Promise<RequestArgs> => {
const localVarPath = `/api/cardInfo/walmart/account/download`; const localVarPath = `/api/cardInfo/walmart/account/download`;
@@ -4877,6 +4893,26 @@ export const DefaultApiAxiosParamCreator = function (
localVarQueryParameter['userId'] = userId; localVarQueryParameter['userId'] = userId;
} }
if (name !== undefined) {
localVarQueryParameter['name'] = name;
}
if (nickName !== undefined) {
localVarQueryParameter['nickName'] = nickName;
}
if (cookie !== undefined) {
localVarQueryParameter['cookie'] = cookie;
}
if (createdUserName !== undefined) {
localVarQueryParameter['CreatedUserName'] = createdUserName;
}
if (groupId !== undefined) {
localVarQueryParameter['groupId'] = groupId;
}
setSearchParams(localVarUrlObj, localVarQueryParameter); setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = let headersFromBaseOptions =
baseOptions && baseOptions.headers ? baseOptions.headers : {}; baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -13399,6 +13435,7 @@ export const DefaultApiFp = function (configuration?: Configuration) {
* @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码 * @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码
* @param {string} [username] 用户 * @param {string} [username] 用户
* @param {string} [date] 日期 * @param {string} [date] 日期
* @param {string} [userId] 用户ID
* @param {*} [options] Override http request option. * @param {*} [options] Override http request option.
* @throws {RequiredError} * @throws {RequiredError}
*/ */
@@ -13407,6 +13444,7 @@ export const DefaultApiFp = function (configuration?: Configuration) {
pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum, pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum,
username?: string, username?: string,
date?: string, date?: string,
userId?: string,
options?: RawAxiosRequestConfig options?: RawAxiosRequestConfig
): Promise< ): Promise<
( (
@@ -13420,6 +13458,7 @@ export const DefaultApiFp = function (configuration?: Configuration) {
pageSize, pageSize,
username, username,
date, date,
userId,
options options
); );
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
@@ -13470,11 +13509,21 @@ export const DefaultApiFp = function (configuration?: Configuration) {
* *
* @summary 下载充值账户 * @summary 下载充值账户
* @param {string} [userId] 用户ID * @param {string} [userId] 用户ID
* @param {string} [name] 账户名称
* @param {string} [nickName] 用户昵称
* @param {string} [cookie]
* @param {string} [createdUserName] 创建用户昵称
* @param {number} [groupId] 分组ID
* @param {*} [options] Override http request option. * @param {*} [options] Override http request option.
* @throws {RequiredError} * @throws {RequiredError}
*/ */
async apiCardInfoWalmartAccountDownloadGet( async apiCardInfoWalmartAccountDownloadGet(
userId?: string, userId?: string,
name?: string,
nickName?: string,
cookie?: string,
createdUserName?: string,
groupId?: number,
options?: RawAxiosRequestConfig options?: RawAxiosRequestConfig
): Promise< ): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object> (axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
@@ -13482,6 +13531,11 @@ export const DefaultApiFp = function (configuration?: Configuration) {
const localVarAxiosArgs = const localVarAxiosArgs =
await localVarAxiosParamCreator.apiCardInfoWalmartAccountDownloadGet( await localVarAxiosParamCreator.apiCardInfoWalmartAccountDownloadGet(
userId, userId,
name,
nickName,
cookie,
createdUserName,
groupId,
options options
); );
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
@@ -18765,6 +18819,7 @@ export const DefaultApiFactory = function (
* @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码 * @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码
* @param {string} [username] 用户 * @param {string} [username] 用户
* @param {string} [date] 日期 * @param {string} [date] 日期
* @param {string} [userId] 用户ID
* @param {*} [options] Override http request option. * @param {*} [options] Override http request option.
* @throws {RequiredError} * @throws {RequiredError}
*/ */
@@ -18773,6 +18828,7 @@ export const DefaultApiFactory = function (
pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum, pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum,
username?: string, username?: string,
date?: string, date?: string,
userId?: string,
options?: RawAxiosRequestConfig options?: RawAxiosRequestConfig
): AxiosPromise<KamiApiCardInfoWalmartV1AccountDailySummaryRes> { ): AxiosPromise<KamiApiCardInfoWalmartV1AccountDailySummaryRes> {
return localVarFp return localVarFp
@@ -18781,6 +18837,7 @@ export const DefaultApiFactory = function (
pageSize, pageSize,
username, username,
date, date,
userId,
options options
) )
.then(request => request(axios, basePath)); .then(request => request(axios, basePath));
@@ -18804,15 +18861,33 @@ export const DefaultApiFactory = function (
* *
* @summary 下载充值账户 * @summary 下载充值账户
* @param {string} [userId] 用户ID * @param {string} [userId] 用户ID
* @param {string} [name] 账户名称
* @param {string} [nickName] 用户昵称
* @param {string} [cookie]
* @param {string} [createdUserName] 创建用户昵称
* @param {number} [groupId] 分组ID
* @param {*} [options] Override http request option. * @param {*} [options] Override http request option.
* @throws {RequiredError} * @throws {RequiredError}
*/ */
apiCardInfoWalmartAccountDownloadGet( apiCardInfoWalmartAccountDownloadGet(
userId?: string, userId?: string,
name?: string,
nickName?: string,
cookie?: string,
createdUserName?: string,
groupId?: number,
options?: RawAxiosRequestConfig options?: RawAxiosRequestConfig
): AxiosPromise<object> { ): AxiosPromise<object> {
return localVarFp return localVarFp
.apiCardInfoWalmartAccountDownloadGet(userId, options) .apiCardInfoWalmartAccountDownloadGet(
userId,
name,
nickName,
cookie,
createdUserName,
groupId,
options
)
.then(request => request(axios, basePath)); .then(request => request(axios, basePath));
}, },
/** /**
@@ -22523,6 +22598,7 @@ export class DefaultApi extends BaseAPI {
* @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码 * @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码
* @param {string} [username] 用户 * @param {string} [username] 用户
* @param {string} [date] 日期 * @param {string} [date] 日期
* @param {string} [userId] 用户ID
* @param {*} [options] Override http request option. * @param {*} [options] Override http request option.
* @throws {RequiredError} * @throws {RequiredError}
* @memberof DefaultApi * @memberof DefaultApi
@@ -22532,6 +22608,7 @@ export class DefaultApi extends BaseAPI {
pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum, pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum,
username?: string, username?: string,
date?: string, date?: string,
userId?: string,
options?: RawAxiosRequestConfig options?: RawAxiosRequestConfig
) { ) {
return DefaultApiFp(this.configuration) return DefaultApiFp(this.configuration)
@@ -22540,6 +22617,7 @@ export class DefaultApi extends BaseAPI {
pageSize, pageSize,
username, username,
date, date,
userId,
options options
) )
.then(request => request(this.axios, this.basePath)); .then(request => request(this.axios, this.basePath));
@@ -22566,16 +22644,34 @@ export class DefaultApi extends BaseAPI {
* *
* @summary 下载充值账户 * @summary 下载充值账户
* @param {string} [userId] 用户ID * @param {string} [userId] 用户ID
* @param {string} [name] 账户名称
* @param {string} [nickName] 用户昵称
* @param {string} [cookie]
* @param {string} [createdUserName] 创建用户昵称
* @param {number} [groupId] 分组ID
* @param {*} [options] Override http request option. * @param {*} [options] Override http request option.
* @throws {RequiredError} * @throws {RequiredError}
* @memberof DefaultApi * @memberof DefaultApi
*/ */
public apiCardInfoWalmartAccountDownloadGet( public apiCardInfoWalmartAccountDownloadGet(
userId?: string, userId?: string,
name?: string,
nickName?: string,
cookie?: string,
createdUserName?: string,
groupId?: number,
options?: RawAxiosRequestConfig options?: RawAxiosRequestConfig
) { ) {
return DefaultApiFp(this.configuration) return DefaultApiFp(this.configuration)
.apiCardInfoWalmartAccountDownloadGet(userId, options) .apiCardInfoWalmartAccountDownloadGet(
userId,
name,
nickName,
cookie,
createdUserName,
groupId,
options
)
.then(request => request(this.axios, this.basePath)); .then(request => request(this.axios, this.basePath));
} }

View File

@@ -181,6 +181,8 @@ export * from './kami-api-card-info-walmart-v1-group-list-res';
export * from './kami-api-card-info-walmart-v1-group-stat-req'; export * from './kami-api-card-info-walmart-v1-group-stat-req';
export * from './kami-api-card-info-walmart-v1-group-stat-res'; export * from './kami-api-card-info-walmart-v1-group-stat-res';
export * from './kami-api-card-info-walmart-v1-group-update-req'; export * from './kami-api-card-info-walmart-v1-group-update-req';
export * from './kami-api-card-info-walmart-v1-list-output';
export * from './kami-api-card-info-walmart-v1-list-output-user-info';
export * from './kami-api-card-info-walmart-v1-list-req'; export * from './kami-api-card-info-walmart-v1-list-req';
export * from './kami-api-card-info-walmart-v1-list-res'; export * from './kami-api-card-info-walmart-v1-list-res';
export * from './kami-api-card-info-walmart-v1-order-callback-req'; export * from './kami-api-card-info-walmart-v1-order-callback-req';

View File

@@ -1,106 +0,0 @@
/* 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 { KamiApiCardInfoWalmartV1CardRedeemAccountSummary } from './kami-api-card-info-walmart-v1-card-redeem-account-summary';
// May contain unused imports in some cases
// @ts-ignore
import type { KamiApiSysUserV1SysUserRecord } from './kami-api-sys-user-v1-sys-user-record';
/**
*
* @export
* @interface KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
export interface KamiApiCardInfoWalmartV1AccountDailySummaryRecord {
/**
*
* @type {KamiApiCardInfoWalmartV1CardRedeemAccountSummary}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
dailySummary?: KamiApiCardInfoWalmartV1CardRedeemAccountSummary;
/**
*
* @type {KamiApiSysUserV1SysUserRecord}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
uploadUser?: KamiApiSysUserV1SysUserRecord;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
id?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
name?: string;
/**
* 京东用户ID
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
username?: string;
/**
* 创建人
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
createUserId?: string;
/**
* 账户类型
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
category?: string;
/**
* 余额
* @type {number}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
balance?: number;
/**
* 状态 1.正常 0.禁用
* @type {number}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
status?: number;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
remark?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
createdAt?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
updatedAt?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryRecord
*/
deletedAt?: string;
}

View File

@@ -42,6 +42,12 @@ export interface KamiApiCardInfoWalmartV1AccountDailySummaryReq {
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryReq * @memberof KamiApiCardInfoWalmartV1AccountDailySummaryReq
*/ */
date?: string; date?: string;
/**
* 用户ID
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountDailySummaryReq
*/
userId?: string;
} }
export const KamiApiCardInfoWalmartV1AccountDailySummaryReqPageSizeEnum = { export const KamiApiCardInfoWalmartV1AccountDailySummaryReqPageSizeEnum = {

View File

@@ -1,27 +0,0 @@
/* 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 KamiApiCardInfoWalmartV1AccountStatusResetReq
*/
export interface KamiApiCardInfoWalmartV1AccountStatusResetReq {
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1AccountStatusResetReq
*/
id: string;
}

View File

@@ -24,4 +24,34 @@ export interface KamiApiCardInfoWalmartV1DownloadReq {
* @memberof KamiApiCardInfoWalmartV1DownloadReq * @memberof KamiApiCardInfoWalmartV1DownloadReq
*/ */
userId?: string; userId?: string;
/**
* 账户名称
* @type {string}
* @memberof KamiApiCardInfoWalmartV1DownloadReq
*/
name?: string;
/**
* 用户昵称
* @type {string}
* @memberof KamiApiCardInfoWalmartV1DownloadReq
*/
nickName?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1DownloadReq
*/
cookie?: string;
/**
* 创建用户昵称
* @type {string}
* @memberof KamiApiCardInfoWalmartV1DownloadReq
*/
CreatedUserName?: string;
/**
* 分组ID
* @type {number}
* @memberof KamiApiCardInfoWalmartV1DownloadReq
*/
groupId?: number;
} }

View File

@@ -15,19 +15,19 @@
/** /**
* *
* @export * @export
* @interface KamiApiMerchantV1MerchantStealSetReq * @interface KamiApiCardInfoWalmartV1ListOutputUserInfo
*/ */
export interface KamiApiMerchantV1MerchantStealSetReq { export interface KamiApiCardInfoWalmartV1ListOutputUserInfo {
/** /**
* uid * ID
* @type {string} * @type {string}
* @memberof KamiApiMerchantV1MerchantStealSetReq * @memberof KamiApiCardInfoWalmartV1ListOutputUserInfo
*/ */
merchantUid: string; id?: string;
/** /**
* ID *
* @type {string} * @type {string}
* @memberof KamiApiMerchantV1MerchantStealSetReq * @memberof KamiApiCardInfoWalmartV1ListOutputUserInfo
*/ */
status?: string; username?: string;
} }

View File

@@ -12,148 +12,146 @@
* Do not edit the class manually. * Do not edit the class manually.
*/ */
// May contain unused imports in some cases
// @ts-ignore
import type { KamiApiCardInfoWalmartV1ListOutputUserInfo } from './kami-api-card-info-walmart-v1-list-output-user-info';
/** /**
* *
* @export * @export
* @interface KamiInternalModelEntityV1CardJdOrderInfo * @interface KamiApiCardInfoWalmartV1ListOutput
*/ */
export interface KamiInternalModelEntityV1CardJdOrderInfo { export interface KamiApiCardInfoWalmartV1ListOutput {
/**
*
* @type {number}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo
*/
id?: number;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
orderNo?: string; orderNo?: string;
/**
*
* @type {string}
* @memberof KamiApiCardInfoWalmartV1ListOutput
*/
cardNo?: string;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
merchantId?: string; merchantId?: string;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
attach?: string; attach?: string;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
createdUserId?: string; createdUserId?: string;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
accountId?: string; accountId?: string;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
accountName?: string; accountName?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo
*/
accountNickname?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo
*/
accountUsername?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo
*/
cardNo?: string;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
giftCardPwd?: string; giftCardPwd?: string;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
cardTypeName?: string; cardTypeName?: string;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
notifyUrl?: string; notifyUrl?: string;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
remark?: string; remark?: string;
/** /**
* *
* @type {number} * @type {number}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
orderAmount?: number; orderAmount?: number;
/** /**
* *
* @type {number} * @type {number}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
actualAmount?: number; actualAmount?: number;
/** /**
* *
* @type {number} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
category?: number; category?: string;
/** /**
* *
* @type {number} * @type {number}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
callbackCount?: number; callbackCount?: number;
/** /**
* * 0 1. 2.
* @type {number} * @type {number}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
notifyStatus?: number; notifyStatus?: number;
/** /**
* 1. 2. * 1. 0.
* @type {number} * @type {number}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
status?: number; status?: number;
/**
*
* @type {number}
* @memberof KamiApiCardInfoWalmartV1ListOutput
*/
orderStatus?: number;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
createdAt?: string; createdAt?: string;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
updatedAt?: string; updatedAt?: string;
/** /**
* *
* @type {string} * @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderInfo * @memberof KamiApiCardInfoWalmartV1ListOutput
*/ */
deletedAt?: string; deletedAt?: string;
/**
*
* @type {KamiApiCardInfoWalmartV1ListOutputUserInfo}
* @memberof KamiApiCardInfoWalmartV1ListOutput
*/
userInfo?: KamiApiCardInfoWalmartV1ListOutputUserInfo;
} }

View File

@@ -14,7 +14,7 @@
// May contain unused imports in some cases // May contain unused imports in some cases
// @ts-ignore // @ts-ignore
import type { KamiInternalModelEntityV1CardRedeemOrderInfo } from './kami-internal-model-entity-v1-card-redeem-order-info'; import type { KamiApiCardInfoWalmartV1ListOutput } from './kami-api-card-info-walmart-v1-list-output';
/** /**
* *
@@ -30,8 +30,8 @@ export interface KamiApiCardInfoWalmartV1ListRes {
total?: number; total?: number;
/** /**
* *
* @type {Array<KamiInternalModelEntityV1CardRedeemOrderInfo>} * @type {Array<KamiApiCardInfoWalmartV1ListOutput>}
* @memberof KamiApiCardInfoWalmartV1ListRes * @memberof KamiApiCardInfoWalmartV1ListRes
*/ */
list?: Array<KamiInternalModelEntityV1CardRedeemOrderInfo>; list?: Array<KamiApiCardInfoWalmartV1ListOutput>;
} }

View File

@@ -1,71 +0,0 @@
/* 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 KamiApiMerchantV1RechargeStealRuleAddReq
*/
export interface KamiApiMerchantV1RechargeStealRuleAddReq {
/**
* 规则名
* @type {string}
* @memberof KamiApiMerchantV1RechargeStealRuleAddReq
*/
name: string;
/**
* 单独某条规则的状态
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleAddReq
*/
status: KamiApiMerchantV1RechargeStealRuleAddReqStatusEnum;
/**
* 目标用户ID
* @type {string}
* @memberof KamiApiMerchantV1RechargeStealRuleAddReq
*/
targetUserId: string;
/**
* 存储用户ID
* @type {string}
* @memberof KamiApiMerchantV1RechargeStealRuleAddReq
*/
storageUserId: string;
/**
* 金额
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleAddReq
*/
amount: number;
/**
* 目标金额
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleAddReq
*/
targetAmount: number;
/**
* 时间间隔
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleAddReq
*/
intervalTime: number;
}
export const KamiApiMerchantV1RechargeStealRuleAddReqStatusEnum = {
NUMBER_0: 0,
NUMBER_1: 1
} as const;
export type KamiApiMerchantV1RechargeStealRuleAddReqStatusEnum =
(typeof KamiApiMerchantV1RechargeStealRuleAddReqStatusEnum)[keyof typeof KamiApiMerchantV1RechargeStealRuleAddReqStatusEnum];

View File

@@ -1,27 +0,0 @@
/* 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 KamiApiMerchantV1RechargeStealRuleDeleteReq
*/
export interface KamiApiMerchantV1RechargeStealRuleDeleteReq {
/**
*
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleDeleteReq
*/
id: number;
}

View File

@@ -1,45 +0,0 @@
/* 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 KamiApiMerchantV1RechargeStealRuleListReq
*/
export interface KamiApiMerchantV1RechargeStealRuleListReq {
/**
* 页数
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleListReq
*/
current: number;
/**
* 页码
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleListReq
*/
pageSize: KamiApiMerchantV1RechargeStealRuleListReqPageSizeEnum;
}
export const KamiApiMerchantV1RechargeStealRuleListReqPageSizeEnum = {
NUMBER_5: 5,
NUMBER_10: 10,
NUMBER_15: 15,
NUMBER_20: 20,
NUMBER_50: 50,
NUMBER_100: 100
} as const;
export type KamiApiMerchantV1RechargeStealRuleListReqPageSizeEnum =
(typeof KamiApiMerchantV1RechargeStealRuleListReqPageSizeEnum)[keyof typeof KamiApiMerchantV1RechargeStealRuleListReqPageSizeEnum];

View File

@@ -1,37 +0,0 @@
/* 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 { KamiInternalModelEntityV1CardAppleHiddenSettings } from './kami-internal-model-entity-v1-card-apple-hidden-settings';
/**
*
* @export
* @interface KamiApiMerchantV1RechargeStealRuleListRes
*/
export interface KamiApiMerchantV1RechargeStealRuleListRes {
/**
*
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleListRes
*/
total?: number;
/**
*
* @type {Array<KamiInternalModelEntityV1CardAppleHiddenSettings>}
* @memberof KamiApiMerchantV1RechargeStealRuleListRes
*/
list?: Array<KamiInternalModelEntityV1CardAppleHiddenSettings>;
}

View File

@@ -1,41 +0,0 @@
/* 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 KamiApiMerchantV1RechargeStealRuleStatusUpdateReq
*/
export interface KamiApiMerchantV1RechargeStealRuleStatusUpdateReq {
/**
*
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleStatusUpdateReq
*/
id: number;
/**
* 状态
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleStatusUpdateReq
*/
status: KamiApiMerchantV1RechargeStealRuleStatusUpdateReqStatusEnum;
}
export const KamiApiMerchantV1RechargeStealRuleStatusUpdateReqStatusEnum = {
NUMBER_0: 0,
NUMBER_1: 1
} as const;
export type KamiApiMerchantV1RechargeStealRuleStatusUpdateReqStatusEnum =
(typeof KamiApiMerchantV1RechargeStealRuleStatusUpdateReqStatusEnum)[keyof typeof KamiApiMerchantV1RechargeStealRuleStatusUpdateReqStatusEnum];

View File

@@ -1,77 +0,0 @@
/* 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 KamiApiMerchantV1RechargeStealRuleUpdateReq
*/
export interface KamiApiMerchantV1RechargeStealRuleUpdateReq {
/**
*
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleUpdateReq
*/
id: number;
/**
* 规则名
* @type {string}
* @memberof KamiApiMerchantV1RechargeStealRuleUpdateReq
*/
name: string;
/**
* 单独某条规则的状态
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleUpdateReq
*/
status: KamiApiMerchantV1RechargeStealRuleUpdateReqStatusEnum;
/**
* 目标用户ID
* @type {string}
* @memberof KamiApiMerchantV1RechargeStealRuleUpdateReq
*/
targetUserId: string;
/**
* 存储用户ID
* @type {string}
* @memberof KamiApiMerchantV1RechargeStealRuleUpdateReq
*/
storageUserId: string;
/**
* 金额
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleUpdateReq
*/
amount: number;
/**
* 目标金额
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleUpdateReq
*/
targetAmount: number;
/**
* 时间间隔
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealRuleUpdateReq
*/
intervalTime: number;
}
export const KamiApiMerchantV1RechargeStealRuleUpdateReqStatusEnum = {
NUMBER_0: 0,
NUMBER_1: 1
} as const;
export type KamiApiMerchantV1RechargeStealRuleUpdateReqStatusEnum =
(typeof KamiApiMerchantV1RechargeStealRuleUpdateReqStatusEnum)[keyof typeof KamiApiMerchantV1RechargeStealRuleUpdateReqStatusEnum];

View File

@@ -1,27 +0,0 @@
/* 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 KamiApiMerchantV1RechargeStealSettingGetRes
*/
export interface KamiApiMerchantV1RechargeStealSettingGetRes {
/**
* 状态
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealSettingGetRes
*/
stealStatus?: number;
}

View File

@@ -1,35 +0,0 @@
/* 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 KamiApiMerchantV1RechargeStealSettingReq
*/
export interface KamiApiMerchantV1RechargeStealSettingReq {
/**
* 状态
* @type {number}
* @memberof KamiApiMerchantV1RechargeStealSettingReq
*/
stealStatus: KamiApiMerchantV1RechargeStealSettingReqStealStatusEnum;
}
export const KamiApiMerchantV1RechargeStealSettingReqStealStatusEnum = {
NUMBER_0: 0,
NUMBER_1: 1
} as const;
export type KamiApiMerchantV1RechargeStealSettingReqStealStatusEnum =
(typeof KamiApiMerchantV1RechargeStealSettingReqStealStatusEnum)[keyof typeof KamiApiMerchantV1RechargeStealSettingReqStealStatusEnum];

View File

@@ -1,87 +0,0 @@
/* 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 KamiInternalModelEntityV1CardJdAccountHistory
*/
export interface KamiInternalModelEntityV1CardJdAccountHistory {
/**
*
* @type {number}
* @memberof KamiInternalModelEntityV1CardJdAccountHistory
*/
id?: number;
/**
* 账号
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdAccountHistory
*/
accountId?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdAccountHistory
*/
accountName?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdAccountHistory
*/
cookie?: string;
/**
* 订单号
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdAccountHistory
*/
orderNo?: string;
/**
* 金额
* @type {number}
* @memberof KamiInternalModelEntityV1CardJdAccountHistory
*/
amount?: number;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdAccountHistory
*/
remark?: string;
/**
* 操作状态
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdAccountHistory
*/
operationStatus?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdAccountHistory
*/
createdAt?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdAccountHistory
*/
updatedAt?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdAccountHistory
*/
deletedAt?: string;
}

View File

@@ -1,87 +0,0 @@
/* 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 KamiInternalModelEntityV1CardJdOrderHistory
*/
export interface KamiInternalModelEntityV1CardJdOrderHistory {
/**
*
* @type {number}
* @memberof KamiInternalModelEntityV1CardJdOrderHistory
*/
id?: number;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderHistory
*/
orderNo?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderHistory
*/
accountName?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderHistory
*/
accountId?: string;
/**
*
* @type {number}
* @memberof KamiInternalModelEntityV1CardJdOrderHistory
*/
operationStatus?: number;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderHistory
*/
responseRawData?: string;
/**
*
* @type {number}
* @memberof KamiInternalModelEntityV1CardJdOrderHistory
*/
amount?: number;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderHistory
*/
remark?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderHistory
*/
createdAt?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderHistory
*/
updatedAt?: string;
/**
*
* @type {string}
* @memberof KamiInternalModelEntityV1CardJdOrderHistory
*/
deletedAt?: string;
}

View File

@@ -1,81 +0,0 @@
/* 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 KamiInternalModelEntityV1MerchantHiddenConfig
*/
export interface KamiInternalModelEntityV1MerchantHiddenConfig {
/**
*
* @type {number}
* @memberof KamiInternalModelEntityV1MerchantHiddenConfig
*/
id?: number;
/**
* 商户Id
* @type {string}
* @memberof KamiInternalModelEntityV1MerchantHiddenConfig
*/
merchantUid?: string;
/**
* 商户通道
* @type {string}
* @memberof KamiInternalModelEntityV1MerchantHiddenConfig
*/
roadUid?: string;
/**
* 金额
* @type {number}
* @memberof KamiInternalModelEntityV1MerchantHiddenConfig
*/
amount?: number;
/**
* 面额
* @type {number}
* @memberof KamiInternalModelEntityV1MerchantHiddenConfig
*/
faceAmount?: number;
/**
* 延迟时间
* @type {number}
* @memberof KamiInternalModelEntityV1MerchantHiddenConfig
*/
delayDuration?: number;
/**
* 是否启用
* @type {number}
* @memberof KamiInternalModelEntityV1MerchantHiddenConfig
*/
enable?: number;
/**
* 策略 1空白 2.报错
* @type {number}
* @memberof KamiInternalModelEntityV1MerchantHiddenConfig
*/
strategy?: number;
/**
* 创建时间
* @type {string}
* @memberof KamiInternalModelEntityV1MerchantHiddenConfig
*/
createdAt?: string;
/**
* 更新时间
* @type {string}
* @memberof KamiInternalModelEntityV1MerchantHiddenConfig
*/
updatedAt?: string;
}

View File

@@ -4,7 +4,7 @@ import { Message, Modal } from '@arco-design/web-vue';
import { useUserStore } from '@/store'; import { useUserStore } from '@/store';
import { getToken, getTokenFrom, setToken } from '@/utils/auth'; import { getToken, getTokenFrom, setToken } from '@/utils/auth';
import { isString } from '@/utils/is'; import { isString } from '@/utils/is';
import qs from 'query-string';
export interface HttpResponse<T = unknown> { export interface HttpResponse<T = unknown> {
status: number; status: number;
message: string; message: string;
@@ -16,6 +16,11 @@ if (import.meta.env.VITE_API_BASE_URL) {
axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL; axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL;
} }
axios.defaults.paramsSerializer = params => {
console.log(params, '234234342');
return qs.stringify(params, { arrayFormat: 'bracket' });
};
axios.interceptors.request.use( axios.interceptors.request.use(
(config: InternalAxiosRequestConfig) => { (config: InternalAxiosRequestConfig) => {
const token = getToken(); const token = getToken();

View File

@@ -23,6 +23,7 @@ import {
type TableColumnData type TableColumnData
} from '@arco-design/web-vue'; } from '@arco-design/web-vue';
import { defineComponent, onMounted, reactive, ref } from 'vue'; import { defineComponent, onMounted, reactive, ref } from 'vue';
import qs from 'query-string';
interface IformData { interface IformData {
accountId: string; accountId: string;
@@ -116,7 +117,10 @@ export default defineComponent({
formModel.value.username, formModel.value.username,
formModel.value.date, formModel.value.date,
{ {
responseType: 'blob' responseType: 'blob',
paramsSerializer: obj => {
return qs.stringify(obj, { arrayFormat: 'bracket' });
}
} }
) )
.then(res => { .then(res => {
@@ -137,7 +141,13 @@ export default defineComponent({
page.current, page.current,
page.pageSize as ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum, page.pageSize as ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum,
params.username, params.username,
params.date params.date,
params.userId,
{
paramsSerializer: obj => {
return qs.stringify(obj, { arrayFormat: 'bracket' });
}
}
) )
.then(res => { .then(res => {
tableData.value = res.data.list; tableData.value = res.data.list;

View File

@@ -137,7 +137,7 @@ import {
KamiInternalModelEntityV1CardRedeemAccountGroup KamiInternalModelEntityV1CardRedeemAccountGroup
} from '@/api/generated/index.ts'; } from '@/api/generated/index.ts';
import { checkTokenFromLogin } from '@/utils/auth'; import { checkTokenFromLogin } from '@/utils/auth';
import qs from 'query-string';
// 搜索表单 // 搜索表单
const searchForm = reactive({ const searchForm = reactive({
name: '', name: '',
@@ -198,7 +198,12 @@ const fetchData = async () => {
const res = await apiClient.apiCardInfoWalmartGroupListGet( const res = await apiClient.apiCardInfoWalmartGroupListGet(
pagination.current, pagination.current,
pagination.pageSize as KamiApiCardInfoWalmartV1GroupListReqPageSizeEnum, pagination.pageSize as KamiApiCardInfoWalmartV1GroupListReqPageSizeEnum,
searchForm.userId searchForm.userId,
{
paramsSerializer: obj => {
return qs.stringify(obj, { arrayFormat: 'bracket' });
}
}
); );
tableData.value = res.data.list; tableData.value = res.data.list;
pagination.total = res.data.total; pagination.total = res.data.total;

View File

@@ -25,6 +25,7 @@ import {
type TableColumnData type TableColumnData
} from '@arco-design/web-vue'; } from '@arco-design/web-vue';
import { defineComponent, onMounted, reactive, ref } from 'vue'; import { defineComponent, onMounted, reactive, ref } from 'vue';
import qs from 'query-string';
interface IformData { interface IformData {
accountId: string; accountId: string;
@@ -129,7 +130,10 @@ export default defineComponent({
formModel.value.date, formModel.value.date,
formModel.value.userId, formModel.value.userId,
{ {
responseType: 'blob' responseType: 'blob',
paramsSerializer: obj => {
return qs.stringify(obj, { arrayFormat: 'bracket' });
}
} }
) )
.then(res => { .then(res => {
@@ -148,7 +152,12 @@ export default defineComponent({
page.pageSize as ApiCardInfoWalmartGroupStatGetPageSizeEnum, page.pageSize as ApiCardInfoWalmartGroupStatGetPageSizeEnum,
formModel.value.username, formModel.value.username,
formModel.value.date, formModel.value.date,
formModel.value.userId formModel.value.userId,
{
paramsSerializer: obj => {
return qs.stringify(obj, { arrayFormat: 'bracket' });
}
}
) )
.then(res => { .then(res => {
tableData.value = res.data.list; tableData.value = res.data.list;

View File

@@ -229,6 +229,7 @@ import {
} from '@/api/generated/index.ts'; } from '@/api/generated/index.ts';
import { apiClient } from '@/api/index.ts'; import { apiClient } from '@/api/index.ts';
import { handleDownLoadFile } from '@/api/utils.ts'; import { handleDownLoadFile } from '@/api/utils.ts';
import qs from 'query-string';
const basePagination: Pagination = { const basePagination: Pagination = {
current: 1, current: 1,
@@ -366,7 +367,12 @@ const fetchData = async (
formModel.value.groupId, formModel.value.groupId,
formModel.value.accountCk, formModel.value.accountCk,
formModel.value.dateRange, formModel.value.dateRange,
formModel.value.userId formModel.value.userId,
{
paramsSerializer: obj => {
return qs.stringify(obj, { arrayFormat: 'bracket' });
}
}
); );
renderData.value = res.data.list; renderData.value = res.data.list;
pagination.current = params.current; pagination.current = params.current;
@@ -488,7 +494,10 @@ const exportData = () => {
formModel.value.dateRange, formModel.value.dateRange,
formModel.value.userId, formModel.value.userId,
{ {
responseType: 'blob' responseType: 'blob',
paramsSerializer: obj => {
return qs.stringify(obj, { arrayFormat: 'bracket' });
}
} }
) )
.then(res => { .then(res => {