chore(api): 更新OpenAPI生成代码并优化参数处理
- 添加 /* eslint-disable */ 注释以忽略ESLint警告 - 移除无用的空行和注释块,提高代码可读性 - 重新格式化DefaultApiAxiosParamCreator函数结构 - 精简import语句,合并多行导入为单行 - 保留核心API参数创建逻辑及请求配置 - 维持原有API路径和HTTP方法不变 - 保持序列化和查询参数处理功能完整
This commit is contained in:
@@ -306,7 +306,7 @@ export const JDCookieManagementApiAxiosParamCreator = function (
|
||||
* @summary Query Cookie Account List
|
||||
* @param {number} [page] 页码
|
||||
* @param {number} [size] 每页大小
|
||||
* @param {number} [status] 状态筛选
|
||||
* @param {ApiJdCookieAccountListGetStatusEnum} [status] 状态筛选
|
||||
* @param {string} [keyword] 关键字搜索
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
@@ -314,7 +314,7 @@ export const JDCookieManagementApiAxiosParamCreator = function (
|
||||
apiJdCookieAccountListGet: async (
|
||||
page?: number,
|
||||
size?: number,
|
||||
status?: number,
|
||||
status?: ApiJdCookieAccountListGetStatusEnum,
|
||||
keyword?: string,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
@@ -596,7 +596,7 @@ export const JDCookieManagementApiFp = function (
|
||||
* @summary Query Cookie Account List
|
||||
* @param {number} [page] 页码
|
||||
* @param {number} [size] 每页大小
|
||||
* @param {number} [status] 状态筛选
|
||||
* @param {ApiJdCookieAccountListGetStatusEnum} [status] 状态筛选
|
||||
* @param {string} [keyword] 关键字搜索
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
@@ -604,7 +604,7 @@ export const JDCookieManagementApiFp = function (
|
||||
async apiJdCookieAccountListGet(
|
||||
page?: number,
|
||||
size?: number,
|
||||
status?: number,
|
||||
status?: ApiJdCookieAccountListGetStatusEnum,
|
||||
keyword?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
@@ -951,7 +951,7 @@ export interface JDCookieManagementApiApiJdCookieAccountListGetRequest {
|
||||
/**
|
||||
* 状态筛选
|
||||
*/
|
||||
readonly status?: number;
|
||||
readonly status?: ApiJdCookieAccountListGetStatusEnum;
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
@@ -1103,3 +1103,9 @@ export class JDCookieManagementApi
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
export enum ApiJdCookieAccountListGetStatusEnum {
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ export const JDHistoryApiAxiosParamCreator = function (
|
||||
* @param {string} cookieId Cookie ID
|
||||
* @param {number} [page] 页码
|
||||
* @param {number} [size] 每页大小
|
||||
* @param {string} [changeType] 变更类型筛选
|
||||
* @param {ApiJdCookieHistoryCookieGetChangeTypeEnum} [changeType] 变更类型筛选
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
@@ -63,7 +63,7 @@ export const JDHistoryApiAxiosParamCreator = function (
|
||||
cookieId: string,
|
||||
page?: number,
|
||||
size?: number,
|
||||
changeType?: string,
|
||||
changeType?: ApiJdCookieHistoryCookieGetChangeTypeEnum,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
): Promise<RequestArgs> => {
|
||||
// verify required parameter 'cookieId' is not null or undefined
|
||||
@@ -197,7 +197,7 @@ export const JDHistoryApiFp = function (configuration?: Configuration) {
|
||||
* @param {string} cookieId Cookie ID
|
||||
* @param {number} [page] 页码
|
||||
* @param {number} [size] 每页大小
|
||||
* @param {string} [changeType] 变更类型筛选
|
||||
* @param {ApiJdCookieHistoryCookieGetChangeTypeEnum} [changeType] 变更类型筛选
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
@@ -205,7 +205,7 @@ export const JDHistoryApiFp = function (configuration?: Configuration) {
|
||||
cookieId: string,
|
||||
page?: number,
|
||||
size?: number,
|
||||
changeType?: string,
|
||||
changeType?: ApiJdCookieHistoryCookieGetChangeTypeEnum,
|
||||
options?: RawAxiosRequestConfig
|
||||
): Promise<
|
||||
(
|
||||
@@ -386,7 +386,7 @@ export interface JDHistoryApiApiJdCookieHistoryCookieGetRequest {
|
||||
/**
|
||||
* 变更类型筛选
|
||||
*/
|
||||
readonly changeType?: string;
|
||||
readonly changeType?: ApiJdCookieHistoryCookieGetChangeTypeEnum;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -463,6 +463,17 @@ export class JDHistoryApi extends BaseAPI implements JDHistoryApiInterface {
|
||||
}
|
||||
}
|
||||
|
||||
export enum ApiJdCookieHistoryCookieGetChangeTypeEnum {
|
||||
Create = 'create',
|
||||
Delete = 'delete',
|
||||
Fail = 'fail',
|
||||
RefreshFail = 'refresh fail',
|
||||
Replaced = 'replaced',
|
||||
Resume = 'resume',
|
||||
Suspend = 'suspend',
|
||||
Update = 'update',
|
||||
Use = 'use'
|
||||
}
|
||||
export enum ApiJdCookieHistoryOrderGetOrderTypeEnum {
|
||||
User = 'user',
|
||||
Jd = 'jd'
|
||||
|
||||
@@ -169,7 +169,7 @@ export const JDOrderManagementApiAxiosParamCreator = function (
|
||||
* @summary JD Order List Query
|
||||
* @param {number} [page] 页码
|
||||
* @param {number} [size] 每页大小
|
||||
* @param {number} [status] 状态筛选:1待支付 2已支付 3已过期 4已取消
|
||||
* @param {ApiJdCookieOrderJdListGetStatusEnum} [status] 状态筛选
|
||||
* @param {string} [startTime] 开始时间
|
||||
* @param {string} [endTime] 结束时间
|
||||
* @param {string} [orderId] 关联的内部订单号筛选
|
||||
@@ -179,7 +179,7 @@ export const JDOrderManagementApiAxiosParamCreator = function (
|
||||
apiJdCookieOrderJdListGet: async (
|
||||
page?: number,
|
||||
size?: number,
|
||||
status?: number,
|
||||
status?: ApiJdCookieOrderJdListGetStatusEnum,
|
||||
startTime?: string,
|
||||
endTime?: string,
|
||||
orderId?: string,
|
||||
@@ -402,7 +402,7 @@ export const JDOrderManagementApiAxiosParamCreator = function (
|
||||
* @summary Order List Query
|
||||
* @param {number} [page] 页码
|
||||
* @param {number} [size] 每页大小
|
||||
* @param {number} [status] 状态筛选
|
||||
* @param {ApiJdCookieOrderListGetStatusEnum} [status] 状态筛选
|
||||
* @param {string} [startTime] 开始时间
|
||||
* @param {string} [endTime] 结束时间
|
||||
* @param {*} [options] Override http request option.
|
||||
@@ -411,7 +411,7 @@ export const JDOrderManagementApiAxiosParamCreator = function (
|
||||
apiJdCookieOrderListGet: async (
|
||||
page?: number,
|
||||
size?: number,
|
||||
status?: number,
|
||||
status?: ApiJdCookieOrderListGetStatusEnum,
|
||||
startTime?: string,
|
||||
endTime?: string,
|
||||
options: RawAxiosRequestConfig = {}
|
||||
@@ -644,7 +644,7 @@ export const JDOrderManagementApiFp = function (configuration?: Configuration) {
|
||||
* @summary JD Order List Query
|
||||
* @param {number} [page] 页码
|
||||
* @param {number} [size] 每页大小
|
||||
* @param {number} [status] 状态筛选:1待支付 2已支付 3已过期 4已取消
|
||||
* @param {ApiJdCookieOrderJdListGetStatusEnum} [status] 状态筛选
|
||||
* @param {string} [startTime] 开始时间
|
||||
* @param {string} [endTime] 结束时间
|
||||
* @param {string} [orderId] 关联的内部订单号筛选
|
||||
@@ -654,7 +654,7 @@ export const JDOrderManagementApiFp = function (configuration?: Configuration) {
|
||||
async apiJdCookieOrderJdListGet(
|
||||
page?: number,
|
||||
size?: number,
|
||||
status?: number,
|
||||
status?: ApiJdCookieOrderJdListGetStatusEnum,
|
||||
startTime?: string,
|
||||
endTime?: string,
|
||||
orderId?: string,
|
||||
@@ -801,7 +801,7 @@ export const JDOrderManagementApiFp = function (configuration?: Configuration) {
|
||||
* @summary Order List Query
|
||||
* @param {number} [page] 页码
|
||||
* @param {number} [size] 每页大小
|
||||
* @param {number} [status] 状态筛选
|
||||
* @param {ApiJdCookieOrderListGetStatusEnum} [status] 状态筛选
|
||||
* @param {string} [startTime] 开始时间
|
||||
* @param {string} [endTime] 结束时间
|
||||
* @param {*} [options] Override http request option.
|
||||
@@ -810,7 +810,7 @@ export const JDOrderManagementApiFp = function (configuration?: Configuration) {
|
||||
async apiJdCookieOrderListGet(
|
||||
page?: number,
|
||||
size?: number,
|
||||
status?: number,
|
||||
status?: ApiJdCookieOrderListGetStatusEnum,
|
||||
startTime?: string,
|
||||
endTime?: string,
|
||||
options?: RawAxiosRequestConfig
|
||||
@@ -1235,9 +1235,9 @@ export interface JDOrderManagementApiApiJdCookieOrderJdListGetRequest {
|
||||
readonly size?: number;
|
||||
|
||||
/**
|
||||
* 状态筛选:1待支付 2已支付 3已过期 4已取消
|
||||
* 状态筛选
|
||||
*/
|
||||
readonly status?: number;
|
||||
readonly status?: ApiJdCookieOrderJdListGetStatusEnum;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
@@ -1309,7 +1309,7 @@ export interface JDOrderManagementApiApiJdCookieOrderListGetRequest {
|
||||
/**
|
||||
* 状态筛选
|
||||
*/
|
||||
readonly status?: number;
|
||||
readonly status?: ApiJdCookieOrderListGetStatusEnum;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
@@ -1519,3 +1519,17 @@ export class JDOrderManagementApi
|
||||
.then(request => request(this.axios, this.basePath));
|
||||
}
|
||||
}
|
||||
|
||||
export enum ApiJdCookieOrderJdListGetStatusEnum {
|
||||
NUMBER_5 = 5,
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_3 = 3
|
||||
}
|
||||
export enum ApiJdCookieOrderListGetStatusEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ const apiInstance = new JDCookieManagementApi(configuration);
|
||||
|
||||
let page: number; //页码 (optional) (default to 1)
|
||||
let size: number; //每页大小 (optional) (default to 20)
|
||||
let status: number; //状态筛选 (optional) (default to undefined)
|
||||
let status: 3 | 1 | 2; //状态筛选 (optional) (default to undefined)
|
||||
let keyword: string; //关键字搜索 (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.apiJdCookieAccountListGet(
|
||||
@@ -278,12 +278,12 @@ const { status, data } = await apiInstance.apiJdCookieAccountListGet(
|
||||
|
||||
### Parameters
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ----------- | ------------ | ----------- | -------------------------------- |
|
||||
| **page** | [**number**] | 页码 | (optional) defaults to 1 |
|
||||
| **size** | [**number**] | 每页大小 | (optional) defaults to 20 |
|
||||
| **status** | [**number**] | 状态筛选 | (optional) defaults to undefined |
|
||||
| **keyword** | [**string**] | 关键字搜索 | (optional) defaults to undefined |
|
||||
| Name | Type | Description | Notes |
|
||||
| ----------- | ------------ | ----------- | ------------------------------------ | -------- | -------------------------------- |
|
||||
| **page** | [**number**] | 页码 | (optional) defaults to 1 |
|
||||
| **size** | [**number**] | 每页大小 | (optional) defaults to 20 |
|
||||
| **status** | [\*\*3 | 1 | 2**]**Array<3 | 1 | 2>\*\* | 状态筛选 | (optional) defaults to undefined |
|
||||
| **keyword** | [**string**] | 关键字搜索 | (optional) defaults to undefined |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -22,7 +22,16 @@ const apiInstance = new JDHistoryApi(configuration);
|
||||
let cookieId: string; //Cookie ID (default to undefined)
|
||||
let page: number; //页码 (optional) (default to 1)
|
||||
let size: number; //每页大小 (optional) (default to 20)
|
||||
let changeType: string; //变更类型筛选 (optional) (default to undefined)
|
||||
let changeType:
|
||||
| 'create'
|
||||
| 'delete'
|
||||
| 'fail'
|
||||
| 'refresh fail'
|
||||
| 'replaced'
|
||||
| 'resume'
|
||||
| 'suspend'
|
||||
| 'update'
|
||||
| 'use'; //变更类型筛选 (optional) (default to undefined)
|
||||
|
||||
const { status, data } = await apiInstance.apiJdCookieHistoryCookieGet(
|
||||
cookieId,
|
||||
@@ -34,12 +43,12 @@ const { status, data } = await apiInstance.apiJdCookieHistoryCookieGet(
|
||||
|
||||
### Parameters
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| -------------- | ------------ | ------------ | -------------------------------- |
|
||||
| **cookieId** | [**string**] | Cookie ID | defaults to undefined |
|
||||
| **page** | [**number**] | 页码 | (optional) defaults to 1 |
|
||||
| **size** | [**number**] | 每页大小 | (optional) defaults to 20 |
|
||||
| **changeType** | [**string**] | 变更类型筛选 | (optional) defaults to undefined |
|
||||
| Name | Type | Description | Notes |
|
||||
| -------------- | --------------------- | ---------------- | ------------------------- | ---------------------- | ------------------ | ---------------- | ----------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | -------------------------------- |
|
||||
| **cookieId** | [**string**] | Cookie ID | defaults to undefined |
|
||||
| **page** | [**number**] | 页码 | (optional) defaults to 1 |
|
||||
| **size** | [**number**] | 每页大小 | (optional) defaults to 20 |
|
||||
| **changeType** | [\*\*'create' | 'delete' | 'fail' | 'refresh fail' | 'replaced' | 'resume' | 'suspend' | 'update' | 'use'**]**Array<'create' | 'delete' | 'fail' | 'refresh fail' | 'replaced' | 'resume' | 'suspend' | 'update' | 'use'>\*\* | 变更类型筛选 | (optional) defaults to undefined |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ const apiInstance = new JDOrderManagementApi(configuration);
|
||||
|
||||
let page: number; //页码 (optional) (default to 1)
|
||||
let size: number; //每页大小 (optional) (default to 20)
|
||||
let status: number; //状态筛选:1待支付 2已支付 3已过期 4已取消 (optional) (default to undefined)
|
||||
let status: 5 | 4 | 2 | 1 | 3; //状态筛选 (optional) (default to undefined)
|
||||
let startTime: string; //开始时间 (optional) (default to undefined)
|
||||
let endTime: string; //结束时间 (optional) (default to undefined)
|
||||
let orderId: string; //关联的内部订单号筛选 (optional) (default to undefined)
|
||||
@@ -139,14 +139,14 @@ const { status, data } = await apiInstance.apiJdCookieOrderJdListGet(
|
||||
|
||||
### Parameters
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------- | ------------ | ----------------------------------------- | -------------------------------- |
|
||||
| **page** | [**number**] | 页码 | (optional) defaults to 1 |
|
||||
| **size** | [**number**] | 每页大小 | (optional) defaults to 20 |
|
||||
| **status** | [**number**] | 状态筛选:1待支付 2已支付 3已过期 4已取消 | (optional) defaults to undefined |
|
||||
| **startTime** | [**string**] | 开始时间 | (optional) defaults to undefined |
|
||||
| **endTime** | [**string**] | 结束时间 | (optional) defaults to undefined |
|
||||
| **orderId** | [**string**] | 关联的内部订单号筛选 | (optional) defaults to undefined |
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------- | ------------ | -------------------- | -------------------------------- | --- | ------------------------------------------------------ | -------- | -------------------------------- |
|
||||
| **page** | [**number**] | 页码 | (optional) defaults to 1 |
|
||||
| **size** | [**number**] | 每页大小 | (optional) defaults to 20 |
|
||||
| **status** | [\*\*5 | 4 | 2 | 1 | 3**]**Array<5 | 4 | 2 | 1 | 3>\*\* | 状态筛选 | (optional) defaults to undefined |
|
||||
| **startTime** | [**string**] | 开始时间 | (optional) defaults to undefined |
|
||||
| **endTime** | [**string**] | 结束时间 | (optional) defaults to undefined |
|
||||
| **orderId** | [**string**] | 关联的内部订单号筛选 | (optional) defaults to undefined |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -330,7 +330,7 @@ const apiInstance = new JDOrderManagementApi(configuration);
|
||||
|
||||
let page: number; //页码 (optional) (default to 1)
|
||||
let size: number; //每页大小 (optional) (default to 20)
|
||||
let status: number; //状态筛选 (optional) (default to undefined)
|
||||
let status: 4 | 3 | 2 | 1; //状态筛选 (optional) (default to undefined)
|
||||
let startTime: string; //开始时间 (optional) (default to undefined)
|
||||
let endTime: string; //结束时间 (optional) (default to undefined)
|
||||
|
||||
@@ -346,10 +346,10 @@ const { status, data } = await apiInstance.apiJdCookieOrderListGet(
|
||||
### Parameters
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------- | ------------ | ----------- | -------------------------------- |
|
||||
| ------------- | ------------ | ----------- | -------------------------------- | --------------------------------------------- | -------- | -------------------------------- |
|
||||
| **page** | [**number**] | 页码 | (optional) defaults to 1 |
|
||||
| **size** | [**number**] | 每页大小 | (optional) defaults to 20 |
|
||||
| **status** | [**number**] | 状态筛选 | (optional) defaults to undefined |
|
||||
| **status** | [\*\*4 | 3 | 2 | 1**]**Array<4 | 3 | 2 | 1>\*\* | 状态筛选 | (optional) defaults to undefined |
|
||||
| **startTime** | [**string**] | 开始时间 | (optional) defaults to undefined |
|
||||
| **endTime** | [**string**] | 结束时间 | (optional) defaults to undefined |
|
||||
|
||||
|
||||
@@ -2,11 +2,10 @@
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| -------------- | ---------- | ------------ | --------------------------------- |
|
||||
| **wxPayUrl** | **string** | 微信支付链接 | [optional] [default to undefined] |
|
||||
| **expireTime** | **string** | 链接过期时间 | [optional] [default to undefined] |
|
||||
| **jdOrderId** | **string** | 京东订单号 | [optional] [default to undefined] |
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------- | ---------- | ------------ | --------------------------------- |
|
||||
| **wxPayUrl** | **string** | 微信支付链接 | [optional] [default to undefined] |
|
||||
| **jdOrderId** | **string** | 京东订单号 | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
@@ -15,7 +14,6 @@ import { KamiApiJdCookieV1CreateOrderRes } from './api';
|
||||
|
||||
const instance: KamiApiJdCookieV1CreateOrderRes = {
|
||||
wxPayUrl,
|
||||
expireTime,
|
||||
jdOrderId
|
||||
};
|
||||
```
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| -------------- | ---------- | ------------ | --------------------------------- |
|
||||
| **wxPayUrl** | **string** | 微信支付链接 | [optional] [default to undefined] |
|
||||
| **expireTime** | **string** | 链接过期时间 | [optional] [default to undefined] |
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------ | ---------- | ------------ | --------------------------------- |
|
||||
| **wxPayUrl** | **string** | 微信支付链接 | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
@@ -13,8 +12,7 @@
|
||||
import { KamiApiJdCookieV1GetPaymentUrlRes } from './api';
|
||||
|
||||
const instance: KamiApiJdCookieV1GetPaymentUrlRes = {
|
||||
wxPayUrl,
|
||||
expireTime
|
||||
wxPayUrl
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------- | ---------- | ----------------------------------------- | --------------------------------- |
|
||||
| **page** | **number** | 页码 | [optional] [default to 1] |
|
||||
| **size** | **number** | 每页大小 | [optional] [default to 20] |
|
||||
| **status** | **number** | 状态筛选:1待支付 2已支付 3已过期 4已取消 | [optional] [default to undefined] |
|
||||
| **startTime** | **string** | 开始时间 | [optional] [default to undefined] |
|
||||
| **endTime** | **string** | 结束时间 | [optional] [default to undefined] |
|
||||
| **orderId** | **string** | 关联的内部订单号筛选 | [optional] [default to undefined] |
|
||||
| Name | Type | Description | Notes |
|
||||
| ------------- | ---------- | -------------------- | --------------------------------- |
|
||||
| **page** | **number** | 页码 | [optional] [default to 1] |
|
||||
| **size** | **number** | 每页大小 | [optional] [default to 20] |
|
||||
| **status** | **number** | 状态筛选 | [optional] [default to undefined] |
|
||||
| **startTime** | **string** | 开始时间 | [optional] [default to undefined] |
|
||||
| **endTime** | **string** | 结束时间 | [optional] [default to undefined] |
|
||||
| **orderId** | **string** | 关联的内部订单号筛选 | [optional] [default to undefined] |
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ export interface KamiApiJdCookieV1CheckJdOrderPaymentRes {
|
||||
/**
|
||||
* 支付状态:1待支付 2已支付 3已过期 4已取消
|
||||
*/
|
||||
payment_status?: number;
|
||||
payment_status?: KamiApiJdCookieV1CheckJdOrderPaymentResPaymentStatusEnum;
|
||||
/**
|
||||
* 状态描述
|
||||
*/
|
||||
@@ -34,3 +34,11 @@ export interface KamiApiJdCookieV1CheckJdOrderPaymentRes {
|
||||
*/
|
||||
can_reuse?: boolean;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1CheckJdOrderPaymentResPaymentStatusEnum {
|
||||
NUMBER_5 = 5,
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_3 = 3
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export interface KamiApiJdCookieV1CookieAccountInfo {
|
||||
/**
|
||||
* 状态:1正常 2暂停 3失效
|
||||
*/
|
||||
status?: number;
|
||||
status?: KamiApiJdCookieV1CookieAccountInfoStatusEnum;
|
||||
/**
|
||||
* 连续失败次数
|
||||
*/
|
||||
@@ -46,3 +46,9 @@ export interface KamiApiJdCookieV1CookieAccountInfo {
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1CookieAccountInfoStatusEnum {
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2
|
||||
}
|
||||
|
||||
@@ -20,9 +20,15 @@ export interface KamiApiJdCookieV1CookieCheckResult {
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
status?: number;
|
||||
status?: KamiApiJdCookieV1CookieCheckResultStatusEnum;
|
||||
/**
|
||||
* 检测信息
|
||||
*/
|
||||
message?: string;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1CookieCheckResultStatusEnum {
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2
|
||||
}
|
||||
|
||||
@@ -24,15 +24,15 @@ export interface KamiApiJdCookieV1CookieHistoryInfo {
|
||||
/**
|
||||
* 变更类型
|
||||
*/
|
||||
changeType?: string;
|
||||
changeType?: KamiApiJdCookieV1CookieHistoryInfoChangeTypeEnum;
|
||||
/**
|
||||
* 变更前状态
|
||||
*/
|
||||
statusBefore?: number;
|
||||
statusBefore?: KamiApiJdCookieV1CookieHistoryInfoStatusBeforeEnum;
|
||||
/**
|
||||
* 变更后状态
|
||||
*/
|
||||
statusAfter?: number;
|
||||
statusAfter?: KamiApiJdCookieV1CookieHistoryInfoStatusAfterEnum;
|
||||
/**
|
||||
* 关联的订单号
|
||||
*/
|
||||
@@ -46,3 +46,25 @@ export interface KamiApiJdCookieV1CookieHistoryInfo {
|
||||
*/
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1CookieHistoryInfoChangeTypeEnum {
|
||||
Create = 'create',
|
||||
Delete = 'delete',
|
||||
Fail = 'fail',
|
||||
RefreshFail = 'refresh fail',
|
||||
Replaced = 'replaced',
|
||||
Resume = 'resume',
|
||||
Suspend = 'suspend',
|
||||
Update = 'update',
|
||||
Use = 'use'
|
||||
}
|
||||
export enum KamiApiJdCookieV1CookieHistoryInfoStatusBeforeEnum {
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2
|
||||
}
|
||||
export enum KamiApiJdCookieV1CookieHistoryInfoStatusAfterEnum {
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2
|
||||
}
|
||||
|
||||
@@ -28,5 +28,17 @@ export interface KamiApiJdCookieV1CookieHistoryReq {
|
||||
/**
|
||||
* 变更类型筛选
|
||||
*/
|
||||
changeType?: string;
|
||||
changeType?: KamiApiJdCookieV1CookieHistoryReqChangeTypeEnum;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1CookieHistoryReqChangeTypeEnum {
|
||||
Create = 'create',
|
||||
Delete = 'delete',
|
||||
Fail = 'fail',
|
||||
RefreshFail = 'refresh fail',
|
||||
Replaced = 'replaced',
|
||||
Resume = 'resume',
|
||||
Suspend = 'suspend',
|
||||
Update = 'update',
|
||||
Use = 'use'
|
||||
}
|
||||
|
||||
@@ -20,5 +20,11 @@ export interface KamiApiJdCookieV1CreateAccountRes {
|
||||
/**
|
||||
* 账户状态
|
||||
*/
|
||||
status?: number;
|
||||
status?: KamiApiJdCookieV1CreateAccountResStatusEnum;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1CreateAccountResStatusEnum {
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2
|
||||
}
|
||||
|
||||
@@ -24,5 +24,11 @@ export interface KamiApiJdCookieV1CreateOrderReq {
|
||||
/**
|
||||
* 商品品类
|
||||
*/
|
||||
category: string;
|
||||
category: KamiApiJdCookieV1CreateOrderReqCategoryEnum;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1CreateOrderReqCategoryEnum {
|
||||
Apple = 'apple',
|
||||
CTrip = 'cTrip',
|
||||
Walmart = 'walmart'
|
||||
}
|
||||
|
||||
@@ -17,10 +17,6 @@ export interface KamiApiJdCookieV1CreateOrderRes {
|
||||
* 微信支付链接
|
||||
*/
|
||||
wxPayUrl?: string;
|
||||
/**
|
||||
* 链接过期时间
|
||||
*/
|
||||
expireTime?: string;
|
||||
/**
|
||||
* 京东订单号
|
||||
*/
|
||||
|
||||
@@ -17,8 +17,4 @@ export interface KamiApiJdCookieV1GetPaymentUrlRes {
|
||||
* 微信支付链接
|
||||
*/
|
||||
wxPayUrl?: string;
|
||||
/**
|
||||
* 链接过期时间
|
||||
*/
|
||||
expireTime?: string;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export interface KamiApiJdCookieV1JdOrderHistoryInfo {
|
||||
/**
|
||||
* 变更类型:create,bind,unbind,pay,expire,invalid,replace
|
||||
*/
|
||||
changeType?: string;
|
||||
changeType?: KamiApiJdCookieV1JdOrderHistoryInfoChangeTypeEnum;
|
||||
/**
|
||||
* 关联的订单号
|
||||
*/
|
||||
@@ -38,3 +38,13 @@ export interface KamiApiJdCookieV1JdOrderHistoryInfo {
|
||||
*/
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1JdOrderHistoryInfoChangeTypeEnum {
|
||||
Bind = 'bind',
|
||||
Create = 'create',
|
||||
Expire = 'expire',
|
||||
Invalid = 'invalid',
|
||||
Pay = 'pay',
|
||||
Replace = 'replace',
|
||||
Unbind = 'unbind'
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ export interface KamiApiJdCookieV1JdOrderInfo {
|
||||
/**
|
||||
* 状态:1待支付 2已支付 3已过期 4已取消
|
||||
*/
|
||||
status?: number;
|
||||
status?: KamiApiJdCookieV1JdOrderInfoStatusEnum;
|
||||
/**
|
||||
* 支付时间
|
||||
*/
|
||||
@@ -46,3 +46,11 @@ export interface KamiApiJdCookieV1JdOrderInfo {
|
||||
*/
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1JdOrderInfoStatusEnum {
|
||||
NUMBER_5 = 5,
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_3 = 3
|
||||
}
|
||||
|
||||
@@ -24,9 +24,15 @@ export interface KamiApiJdCookieV1ListAccountReq {
|
||||
/**
|
||||
* 状态筛选
|
||||
*/
|
||||
status?: number;
|
||||
status?: KamiApiJdCookieV1ListAccountReqStatusEnum;
|
||||
/**
|
||||
* 关键字搜索
|
||||
*/
|
||||
keyword?: string;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1ListAccountReqStatusEnum {
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2
|
||||
}
|
||||
|
||||
@@ -22,9 +22,9 @@ export interface KamiApiJdCookieV1ListJdOrderReq {
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* 状态筛选:1待支付 2已支付 3已过期 4已取消
|
||||
* 状态筛选
|
||||
*/
|
||||
status?: number;
|
||||
status?: KamiApiJdCookieV1ListJdOrderReqStatusEnum;
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@@ -38,3 +38,11 @@ export interface KamiApiJdCookieV1ListJdOrderReq {
|
||||
*/
|
||||
orderId?: string;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1ListJdOrderReqStatusEnum {
|
||||
NUMBER_5 = 5,
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_3 = 3
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export interface KamiApiJdCookieV1ListOrderReq {
|
||||
/**
|
||||
* 状态筛选
|
||||
*/
|
||||
status?: number;
|
||||
status?: KamiApiJdCookieV1ListOrderReqStatusEnum;
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@@ -34,3 +34,10 @@ export interface KamiApiJdCookieV1ListOrderReq {
|
||||
*/
|
||||
endTime?: string;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1ListOrderReqStatusEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ export interface KamiApiJdCookieV1OrderHistoryInfo {
|
||||
/**
|
||||
* 变更类型
|
||||
*/
|
||||
changeType?: string;
|
||||
changeType?: KamiApiJdCookieV1OrderHistoryInfoChangeTypeEnum;
|
||||
/**
|
||||
* 关联的京东订单号
|
||||
*/
|
||||
@@ -38,3 +38,10 @@ export interface KamiApiJdCookieV1OrderHistoryInfo {
|
||||
*/
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1OrderHistoryInfoChangeTypeEnum {
|
||||
Create = 'create',
|
||||
Expire = 'expire',
|
||||
Pay = 'pay',
|
||||
Rebind = 'rebind'
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ export interface KamiApiJdCookieV1OrderInfo {
|
||||
/**
|
||||
* 状态:1待支付 2已支付 3已过期 4已取消
|
||||
*/
|
||||
status?: number;
|
||||
status?: KamiApiJdCookieV1OrderInfoStatusEnum;
|
||||
/**
|
||||
* 当前有效的微信支付链接
|
||||
*/
|
||||
@@ -46,3 +46,10 @@ export interface KamiApiJdCookieV1OrderInfo {
|
||||
*/
|
||||
createdAt?: string;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1OrderInfoStatusEnum {
|
||||
NUMBER_4 = 4,
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_2 = 2,
|
||||
NUMBER_1 = 1
|
||||
}
|
||||
|
||||
@@ -28,9 +28,15 @@ export interface KamiApiJdCookieV1UpdateAccountReq {
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
status?: number;
|
||||
status?: KamiApiJdCookieV1UpdateAccountReqStatusEnum;
|
||||
/**
|
||||
* 备注信息
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export enum KamiApiJdCookieV1UpdateAccountReqStatusEnum {
|
||||
NUMBER_3 = 3,
|
||||
NUMBER_1 = 1,
|
||||
NUMBER_2 = 2
|
||||
}
|
||||
|
||||
@@ -12,19 +12,13 @@
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="状态">
|
||||
<a-tag v-if="cookieDetail.status === 1" color="green">正常</a-tag>
|
||||
<a-tag v-else-if="cookieDetail.status === 0" color="red">失效</a-tag>
|
||||
<a-tag v-else-if="cookieDetail.status === 2" color="orange">异常</a-tag>
|
||||
<a-tag v-else-if="cookieDetail.status === 2" color="orange">暂停</a-tag>
|
||||
<a-tag v-else-if="cookieDetail.status === 3" color="red">失效</a-tag>
|
||||
<a-tag v-else color="gray">未知</a-tag>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="账户昵称">
|
||||
{{ cookieDetail.accountName || '-' }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="状态">
|
||||
<a-tag v-if="cookieDetail.status === 1" color="green">正常</a-tag>
|
||||
<a-tag v-else-if="cookieDetail.status === 0" color="red">失效</a-tag>
|
||||
<a-tag v-else-if="cookieDetail.status === 2" color="orange">异常</a-tag>
|
||||
<a-tag v-else color="gray">未知</a-tag>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="创建时间">
|
||||
{{ cookieDetail.createdAt || '-' }}
|
||||
</a-descriptions-item>
|
||||
|
||||
Reference in New Issue
Block a user