diff --git a/package.json b/package.json index c732ee8..2a4afed 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "clean:cache": "rimraf .eslintcache && rimraf node_modules && pnpm install", "prepare": "husky && husky install", "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": { "*.{js,ts,jsx,tsx}": [ diff --git a/src/api/generated/.openapi-generator/FILES b/src/api/generated/.openapi-generator/FILES index c87791c..1750ba3 100644 --- a/src/api/generated/.openapi-generator/FILES +++ b/src/api/generated/.openapi-generator/FILES @@ -1,5 +1,6 @@ .gitignore .npmignore +.openapi-generator-ignore api.ts apis/ck-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-res.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-res.ts models/kami-api-card-info-walmart-v1-order-callback-req.ts diff --git a/src/api/generated/apis/default-api.ts b/src/api/generated/apis/default-api.ts index 570b0cc..61fa537 100644 --- a/src/api/generated/apis/default-api.ts +++ b/src/api/generated/apis/default-api.ts @@ -4731,6 +4731,7 @@ export const DefaultApiAxiosParamCreator = function ( * @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码 * @param {string} [username] 用户 * @param {string} [date] 日期 + * @param {string} [userId] 用户ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -4739,6 +4740,7 @@ export const DefaultApiAxiosParamCreator = function ( pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum, username?: string, date?: string, + userId?: string, options: RawAxiosRequestConfig = {} ): Promise => { // verify required parameter 'current' is not null or undefined @@ -4785,6 +4787,10 @@ export const DefaultApiAxiosParamCreator = function ( localVarQueryParameter['date'] = date; } + if (userId !== undefined) { + localVarQueryParameter['userId'] = userId; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; @@ -4850,11 +4856,21 @@ export const DefaultApiAxiosParamCreator = function ( * * @summary 下载充值账户 * @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. * @throws {RequiredError} */ apiCardInfoWalmartAccountDownloadGet: async ( userId?: string, + name?: string, + nickName?: string, + cookie?: string, + createdUserName?: string, + groupId?: number, options: RawAxiosRequestConfig = {} ): Promise => { const localVarPath = `/api/cardInfo/walmart/account/download`; @@ -4877,6 +4893,26 @@ export const DefaultApiAxiosParamCreator = function ( 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); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; @@ -13399,6 +13435,7 @@ export const DefaultApiFp = function (configuration?: Configuration) { * @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码 * @param {string} [username] 用户 * @param {string} [date] 日期 + * @param {string} [userId] 用户ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -13407,6 +13444,7 @@ export const DefaultApiFp = function (configuration?: Configuration) { pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum, username?: string, date?: string, + userId?: string, options?: RawAxiosRequestConfig ): Promise< ( @@ -13420,6 +13458,7 @@ export const DefaultApiFp = function (configuration?: Configuration) { pageSize, username, date, + userId, options ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; @@ -13470,11 +13509,21 @@ export const DefaultApiFp = function (configuration?: Configuration) { * * @summary 下载充值账户 * @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. * @throws {RequiredError} */ async apiCardInfoWalmartAccountDownloadGet( userId?: string, + name?: string, + nickName?: string, + cookie?: string, + createdUserName?: string, + groupId?: number, options?: RawAxiosRequestConfig ): Promise< (axios?: AxiosInstance, basePath?: string) => AxiosPromise @@ -13482,6 +13531,11 @@ export const DefaultApiFp = function (configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.apiCardInfoWalmartAccountDownloadGet( userId, + name, + nickName, + cookie, + createdUserName, + groupId, options ); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; @@ -18765,6 +18819,7 @@ export const DefaultApiFactory = function ( * @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码 * @param {string} [username] 用户 * @param {string} [date] 日期 + * @param {string} [userId] 用户ID * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -18773,6 +18828,7 @@ export const DefaultApiFactory = function ( pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum, username?: string, date?: string, + userId?: string, options?: RawAxiosRequestConfig ): AxiosPromise { return localVarFp @@ -18781,6 +18837,7 @@ export const DefaultApiFactory = function ( pageSize, username, date, + userId, options ) .then(request => request(axios, basePath)); @@ -18804,15 +18861,33 @@ export const DefaultApiFactory = function ( * * @summary 下载充值账户 * @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. * @throws {RequiredError} */ apiCardInfoWalmartAccountDownloadGet( userId?: string, + name?: string, + nickName?: string, + cookie?: string, + createdUserName?: string, + groupId?: number, options?: RawAxiosRequestConfig ): AxiosPromise { return localVarFp - .apiCardInfoWalmartAccountDownloadGet(userId, options) + .apiCardInfoWalmartAccountDownloadGet( + userId, + name, + nickName, + cookie, + createdUserName, + groupId, + options + ) .then(request => request(axios, basePath)); }, /** @@ -22523,6 +22598,7 @@ export class DefaultApi extends BaseAPI { * @param {ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum} pageSize 页码 * @param {string} [username] 用户 * @param {string} [date] 日期 + * @param {string} [userId] 用户ID * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DefaultApi @@ -22532,6 +22608,7 @@ export class DefaultApi extends BaseAPI { pageSize: ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum, username?: string, date?: string, + userId?: string, options?: RawAxiosRequestConfig ) { return DefaultApiFp(this.configuration) @@ -22540,6 +22617,7 @@ export class DefaultApi extends BaseAPI { pageSize, username, date, + userId, options ) .then(request => request(this.axios, this.basePath)); @@ -22566,16 +22644,34 @@ export class DefaultApi extends BaseAPI { * * @summary 下载充值账户 * @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. * @throws {RequiredError} * @memberof DefaultApi */ public apiCardInfoWalmartAccountDownloadGet( userId?: string, + name?: string, + nickName?: string, + cookie?: string, + createdUserName?: string, + groupId?: number, options?: RawAxiosRequestConfig ) { return DefaultApiFp(this.configuration) - .apiCardInfoWalmartAccountDownloadGet(userId, options) + .apiCardInfoWalmartAccountDownloadGet( + userId, + name, + nickName, + cookie, + createdUserName, + groupId, + options + ) .then(request => request(this.axios, this.basePath)); } diff --git a/src/api/generated/models/index.ts b/src/api/generated/models/index.ts index 01cd116..4f85a91 100644 --- a/src/api/generated/models/index.ts +++ b/src/api/generated/models/index.ts @@ -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-res'; 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-res'; export * from './kami-api-card-info-walmart-v1-order-callback-req'; diff --git a/src/api/generated/models/kami-api-card-info-walmart-v1-account-daily-summary-record.ts b/src/api/generated/models/kami-api-card-info-walmart-v1-account-daily-summary-record.ts deleted file mode 100644 index c78ec72..0000000 --- a/src/api/generated/models/kami-api-card-info-walmart-v1-account-daily-summary-record.ts +++ /dev/null @@ -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; -} diff --git a/src/api/generated/models/kami-api-card-info-walmart-v1-account-daily-summary-req.ts b/src/api/generated/models/kami-api-card-info-walmart-v1-account-daily-summary-req.ts index 273ab81..4332e2f 100644 --- a/src/api/generated/models/kami-api-card-info-walmart-v1-account-daily-summary-req.ts +++ b/src/api/generated/models/kami-api-card-info-walmart-v1-account-daily-summary-req.ts @@ -42,6 +42,12 @@ export interface KamiApiCardInfoWalmartV1AccountDailySummaryReq { * @memberof KamiApiCardInfoWalmartV1AccountDailySummaryReq */ date?: string; + /** + * 用户ID + * @type {string} + * @memberof KamiApiCardInfoWalmartV1AccountDailySummaryReq + */ + userId?: string; } export const KamiApiCardInfoWalmartV1AccountDailySummaryReqPageSizeEnum = { diff --git a/src/api/generated/models/kami-api-card-info-walmart-v1-account-status-reset-req.ts b/src/api/generated/models/kami-api-card-info-walmart-v1-account-status-reset-req.ts deleted file mode 100644 index 97bcb3e..0000000 --- a/src/api/generated/models/kami-api-card-info-walmart-v1-account-status-reset-req.ts +++ /dev/null @@ -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; -} diff --git a/src/api/generated/models/kami-api-card-info-walmart-v1-download-req.ts b/src/api/generated/models/kami-api-card-info-walmart-v1-download-req.ts index c1b4e5a..b67b325 100644 --- a/src/api/generated/models/kami-api-card-info-walmart-v1-download-req.ts +++ b/src/api/generated/models/kami-api-card-info-walmart-v1-download-req.ts @@ -24,4 +24,34 @@ export interface KamiApiCardInfoWalmartV1DownloadReq { * @memberof KamiApiCardInfoWalmartV1DownloadReq */ 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; } diff --git a/src/api/generated/models/kami-api-merchant-v1-merchant-steal-set-req.ts b/src/api/generated/models/kami-api-card-info-walmart-v1-list-output-user-info.ts similarity index 59% rename from src/api/generated/models/kami-api-merchant-v1-merchant-steal-set-req.ts rename to src/api/generated/models/kami-api-card-info-walmart-v1-list-output-user-info.ts index d973b14..de06c0a 100644 --- a/src/api/generated/models/kami-api-merchant-v1-merchant-steal-set-req.ts +++ b/src/api/generated/models/kami-api-card-info-walmart-v1-list-output-user-info.ts @@ -15,19 +15,19 @@ /** * * @export - * @interface KamiApiMerchantV1MerchantStealSetReq + * @interface KamiApiCardInfoWalmartV1ListOutputUserInfo */ -export interface KamiApiMerchantV1MerchantStealSetReq { +export interface KamiApiCardInfoWalmartV1ListOutputUserInfo { /** - * 商户uid + * 用户ID * @type {string} - * @memberof KamiApiMerchantV1MerchantStealSetReq + * @memberof KamiApiCardInfoWalmartV1ListOutputUserInfo */ - merchantUid: string; + id?: string; /** - * 状态ID + * 用户名 * @type {string} - * @memberof KamiApiMerchantV1MerchantStealSetReq + * @memberof KamiApiCardInfoWalmartV1ListOutputUserInfo */ - status?: string; + username?: string; } diff --git a/src/api/generated/models/kami-internal-model-entity-v1-card-jd-order-info.ts b/src/api/generated/models/kami-api-card-info-walmart-v1-list-output.ts similarity index 50% rename from src/api/generated/models/kami-internal-model-entity-v1-card-jd-order-info.ts rename to src/api/generated/models/kami-api-card-info-walmart-v1-list-output.ts index c953e24..978523d 100644 --- a/src/api/generated/models/kami-internal-model-entity-v1-card-jd-order-info.ts +++ b/src/api/generated/models/kami-api-card-info-walmart-v1-list-output.ts @@ -12,148 +12,146 @@ * 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 - * @interface KamiInternalModelEntityV1CardJdOrderInfo + * @interface KamiApiCardInfoWalmartV1ListOutput */ -export interface KamiInternalModelEntityV1CardJdOrderInfo { - /** - * - * @type {number} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo - */ - id?: number; +export interface KamiApiCardInfoWalmartV1ListOutput { /** * * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ orderNo?: string; + /** + * 卡号 + * @type {string} + * @memberof KamiApiCardInfoWalmartV1ListOutput + */ + cardNo?: string; /** * * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ merchantId?: string; /** * * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ attach?: string; /** * 创建用户 * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ createdUserId?: string; /** * * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ accountId?: string; /** * 账号名称 * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ accountName?: string; - /** - * 账户昵称 - * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo - */ - accountNickname?: string; - /** - * 账户唯一标识 - * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo - */ - accountUsername?: string; - /** - * 卡号 - * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo - */ - cardNo?: string; /** * 卡密 * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ giftCardPwd?: string; /** * 卡种 * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ cardTypeName?: string; /** * 回调 * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ notifyUrl?: string; /** * 备注 * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ remark?: string; /** * 订单金额 * @type {number} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ orderAmount?: number; /** * 实际金额 * @type {number} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ actualAmount?: number; /** * 账户类型 - * @type {number} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @type {string} + * @memberof KamiApiCardInfoWalmartV1ListOutput */ - category?: number; + category?: string; /** * 回调次数 * @type {number} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ callbackCount?: number; /** - * 回调状态 + * 回调状态 0没有回调 1.回调成功 2.回调失败 * @type {number} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ notifyStatus?: number; /** - * 1.兑换成功 2.兑换失败 + * 1.兑换成功 0.失败 * @type {number} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ status?: number; + /** + * 订单状态 订单原本状态 + * @type {number} + * @memberof KamiApiCardInfoWalmartV1ListOutput + */ + orderStatus?: number; /** * * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ createdAt?: string; /** * * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ updatedAt?: string; /** * * @type {string} - * @memberof KamiInternalModelEntityV1CardJdOrderInfo + * @memberof KamiApiCardInfoWalmartV1ListOutput */ deletedAt?: string; + /** + * + * @type {KamiApiCardInfoWalmartV1ListOutputUserInfo} + * @memberof KamiApiCardInfoWalmartV1ListOutput + */ + userInfo?: KamiApiCardInfoWalmartV1ListOutputUserInfo; } diff --git a/src/api/generated/models/kami-api-card-info-walmart-v1-list-res.ts b/src/api/generated/models/kami-api-card-info-walmart-v1-list-res.ts index 473c58f..26e5c3d 100644 --- a/src/api/generated/models/kami-api-card-info-walmart-v1-list-res.ts +++ b/src/api/generated/models/kami-api-card-info-walmart-v1-list-res.ts @@ -14,7 +14,7 @@ // May contain unused imports in some cases // @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; /** * - * @type {Array} + * @type {Array} * @memberof KamiApiCardInfoWalmartV1ListRes */ - list?: Array; + list?: Array; } diff --git a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-add-req.ts b/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-add-req.ts deleted file mode 100644 index de65eea..0000000 --- a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-add-req.ts +++ /dev/null @@ -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]; diff --git a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-delete-req.ts b/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-delete-req.ts deleted file mode 100644 index 709c392..0000000 --- a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-delete-req.ts +++ /dev/null @@ -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; -} diff --git a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-list-req.ts b/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-list-req.ts deleted file mode 100644 index 33ede1c..0000000 --- a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-list-req.ts +++ /dev/null @@ -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]; diff --git a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-list-res.ts b/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-list-res.ts deleted file mode 100644 index 5cfd46d..0000000 --- a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-list-res.ts +++ /dev/null @@ -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} - * @memberof KamiApiMerchantV1RechargeStealRuleListRes - */ - list?: Array; -} diff --git a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-status-update-req.ts b/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-status-update-req.ts deleted file mode 100644 index ab32675..0000000 --- a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-status-update-req.ts +++ /dev/null @@ -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]; diff --git a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-update-req.ts b/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-update-req.ts deleted file mode 100644 index e20a881..0000000 --- a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-rule-update-req.ts +++ /dev/null @@ -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]; diff --git a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-setting-get-res.ts b/src/api/generated/models/kami-api-merchant-v1-recharge-steal-setting-get-res.ts deleted file mode 100644 index 6c39a5c..0000000 --- a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-setting-get-res.ts +++ /dev/null @@ -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; -} diff --git a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-setting-req.ts b/src/api/generated/models/kami-api-merchant-v1-recharge-steal-setting-req.ts deleted file mode 100644 index 4eead95..0000000 --- a/src/api/generated/models/kami-api-merchant-v1-recharge-steal-setting-req.ts +++ /dev/null @@ -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]; diff --git a/src/api/generated/models/kami-internal-model-entity-v1-card-jd-account-history.ts b/src/api/generated/models/kami-internal-model-entity-v1-card-jd-account-history.ts deleted file mode 100644 index cee1e6b..0000000 --- a/src/api/generated/models/kami-internal-model-entity-v1-card-jd-account-history.ts +++ /dev/null @@ -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; -} diff --git a/src/api/generated/models/kami-internal-model-entity-v1-card-jd-order-history.ts b/src/api/generated/models/kami-internal-model-entity-v1-card-jd-order-history.ts deleted file mode 100644 index 5c3ecd0..0000000 --- a/src/api/generated/models/kami-internal-model-entity-v1-card-jd-order-history.ts +++ /dev/null @@ -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; -} diff --git a/src/api/generated/models/kami-internal-model-entity-v1-merchant-hidden-config.ts b/src/api/generated/models/kami-internal-model-entity-v1-merchant-hidden-config.ts deleted file mode 100644 index 2fabafb..0000000 --- a/src/api/generated/models/kami-internal-model-entity-v1-merchant-hidden-config.ts +++ /dev/null @@ -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; -} diff --git a/src/api/interceptor.ts b/src/api/interceptor.ts index 9d9688a..62c1f87 100644 --- a/src/api/interceptor.ts +++ b/src/api/interceptor.ts @@ -4,7 +4,7 @@ import { Message, Modal } from '@arco-design/web-vue'; import { useUserStore } from '@/store'; import { getToken, getTokenFrom, setToken } from '@/utils/auth'; import { isString } from '@/utils/is'; - +import qs from 'query-string'; export interface HttpResponse { status: number; 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.paramsSerializer = params => { + console.log(params, '234234342'); + return qs.stringify(params, { arrayFormat: 'bracket' }); +}; + axios.interceptors.request.use( (config: InternalAxiosRequestConfig) => { const token = getToken(); diff --git a/src/views/card-walmart-info/account/summary.tsx b/src/views/card-walmart-info/account/summary.tsx index 42513f9..04f0651 100644 --- a/src/views/card-walmart-info/account/summary.tsx +++ b/src/views/card-walmart-info/account/summary.tsx @@ -23,6 +23,7 @@ import { type TableColumnData } from '@arco-design/web-vue'; import { defineComponent, onMounted, reactive, ref } from 'vue'; +import qs from 'query-string'; interface IformData { accountId: string; @@ -116,7 +117,10 @@ export default defineComponent({ formModel.value.username, formModel.value.date, { - responseType: 'blob' + responseType: 'blob', + paramsSerializer: obj => { + return qs.stringify(obj, { arrayFormat: 'bracket' }); + } } ) .then(res => { @@ -137,7 +141,13 @@ export default defineComponent({ page.current, page.pageSize as ApiCardInfoWalmartAccountDailySummaryGetPageSizeEnum, params.username, - params.date + params.date, + params.userId, + { + paramsSerializer: obj => { + return qs.stringify(obj, { arrayFormat: 'bracket' }); + } + } ) .then(res => { tableData.value = res.data.list; diff --git a/src/views/card-walmart-info/group/list.vue b/src/views/card-walmart-info/group/list.vue index a3c263b..4538334 100644 --- a/src/views/card-walmart-info/group/list.vue +++ b/src/views/card-walmart-info/group/list.vue @@ -137,7 +137,7 @@ import { KamiInternalModelEntityV1CardRedeemAccountGroup } from '@/api/generated/index.ts'; import { checkTokenFromLogin } from '@/utils/auth'; - +import qs from 'query-string'; // 搜索表单 const searchForm = reactive({ name: '', @@ -198,7 +198,12 @@ const fetchData = async () => { const res = await apiClient.apiCardInfoWalmartGroupListGet( pagination.current, pagination.pageSize as KamiApiCardInfoWalmartV1GroupListReqPageSizeEnum, - searchForm.userId + searchForm.userId, + { + paramsSerializer: obj => { + return qs.stringify(obj, { arrayFormat: 'bracket' }); + } + } ); tableData.value = res.data.list; pagination.total = res.data.total; diff --git a/src/views/card-walmart-info/group/summary.tsx b/src/views/card-walmart-info/group/summary.tsx index bf9c0d2..cbc0a19 100644 --- a/src/views/card-walmart-info/group/summary.tsx +++ b/src/views/card-walmart-info/group/summary.tsx @@ -25,6 +25,7 @@ import { type TableColumnData } from '@arco-design/web-vue'; import { defineComponent, onMounted, reactive, ref } from 'vue'; +import qs from 'query-string'; interface IformData { accountId: string; @@ -129,7 +130,10 @@ export default defineComponent({ formModel.value.date, formModel.value.userId, { - responseType: 'blob' + responseType: 'blob', + paramsSerializer: obj => { + return qs.stringify(obj, { arrayFormat: 'bracket' }); + } } ) .then(res => { @@ -148,7 +152,12 @@ export default defineComponent({ page.pageSize as ApiCardInfoWalmartGroupStatGetPageSizeEnum, formModel.value.username, formModel.value.date, - formModel.value.userId + formModel.value.userId, + { + paramsSerializer: obj => { + return qs.stringify(obj, { arrayFormat: 'bracket' }); + } + } ) .then(res => { tableData.value = res.data.list; diff --git a/src/views/card-walmart-info/order/index.vue b/src/views/card-walmart-info/order/index.vue index 45e967c..acc614a 100644 --- a/src/views/card-walmart-info/order/index.vue +++ b/src/views/card-walmart-info/order/index.vue @@ -229,6 +229,7 @@ import { } from '@/api/generated/index.ts'; import { apiClient } from '@/api/index.ts'; import { handleDownLoadFile } from '@/api/utils.ts'; +import qs from 'query-string'; const basePagination: Pagination = { current: 1, @@ -366,7 +367,12 @@ const fetchData = async ( formModel.value.groupId, formModel.value.accountCk, formModel.value.dateRange, - formModel.value.userId + formModel.value.userId, + { + paramsSerializer: obj => { + return qs.stringify(obj, { arrayFormat: 'bracket' }); + } + } ); renderData.value = res.data.list; pagination.current = params.current; @@ -488,7 +494,10 @@ const exportData = () => { formModel.value.dateRange, formModel.value.userId, { - responseType: 'blob' + responseType: 'blob', + paramsSerializer: obj => { + return qs.stringify(obj, { arrayFormat: 'bracket' }); + } } ) .then(res => {