Files
kami_frontend/src/api/generated/docs/JDV2AccountApi.md
danial 44b61956bd feat(account): 新增删除所有过期无效账号功能
- 在 JDV2AccountApi 中新增 apiJdV2AccountDeleteExpiredDelete 方法支持删除过期账号
- 更新接口文档,添加删除过期账号 API 说明及示例
- 新增 KamiApiCamelOilV1DeleteExpiredAccountsRes 模型表示删除结果
- 在 camel-oil 业务路由中调整 Token 管理相关配置
- 账户列表页面增加“删除过期Token”按钮及对应逻辑实现
- 新增删除操作的确认弹窗及成功/失败通知提示
- 修改 Token 表单校验,优化充值金额和次数的输入检查
- 重构 Token 新增编辑模态框,加入加载中状态管理
- 删除账户绑卡记录弹窗组件,实现抽屉式 Token 详情及绑卡记录展示
2025-12-09 20:16:23 +08:00

8.7 KiB

JDV2AccountApi

All URIs are relative to http://localhost

Method HTTP request Description
apiJdV2AccountCheckPost POST /api/jd-v2/account/check 棂测账号状态
apiJdV2AccountDeleteExpiredDelete DELETE /api/jd-v2/account/delete-expired 删除所有过期无效账号
apiJdV2AccountHistoryGet GET /api/jd-v2/account/history 账号历史记录
apiJdV2AccountListGet GET /api/jd-v2/account/list 账号列表
apiJdV2AccountStatisticsGet GET /api/jd-v2/account/statistics 账号统计信息

apiJdV2AccountCheckPost

KamiApiCamelOilV1CheckAccountRes apiJdV2AccountCheckPost()

Example

import {
  JDV2AccountApi,
  Configuration,
  KamiApiCamelOilV1CheckAccountReq
} from './api';

const configuration = new Configuration();
const apiInstance = new JDV2AccountApi(configuration);

let kamiApiCamelOilV1CheckAccountReq: KamiApiCamelOilV1CheckAccountReq; // (optional)

const { status, data } = await apiInstance.apiJdV2AccountCheckPost(
  kamiApiCamelOilV1CheckAccountReq
);

Parameters

Name Type Description Notes
kamiApiCamelOilV1CheckAccountReq KamiApiCamelOilV1CheckAccountReq

Return type

KamiApiCamelOilV1CheckAccountRes

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiJdV2AccountDeleteExpiredDelete

KamiApiCamelOilV1DeleteExpiredAccountsRes apiJdV2AccountDeleteExpiredDelete()

Example

import { JDV2AccountApi, Configuration } from './api';

const configuration = new Configuration();
const apiInstance = new JDV2AccountApi(configuration);

const { status, data } = await apiInstance.apiJdV2AccountDeleteExpiredDelete();

Parameters

This endpoint does not have any parameters.

Return type

KamiApiCamelOilV1DeleteExpiredAccountsRes

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiJdV2AccountHistoryGet

KamiApiCamelOilV1AccountHistoryRes apiJdV2AccountHistoryGet()

Example

import { JDV2AccountApi, Configuration } from './api';

const configuration = new Configuration();
const apiInstance = new JDV2AccountApi(configuration);

let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let accountId: number; //账号ID (default to undefined)

const { status, data } = await apiInstance.apiJdV2AccountHistoryGet(
  current,
  pageSize,
  accountId
);

Parameters

Name Type Description Notes
current [number] 页数 defaults to undefined
pageSize [**5 10 15 20 50 100**]**Array<5 | 10 | 15 | 20 | 50 | 100>** 页码 defaults to undefined
accountId [number] 账号ID defaults to undefined

Return type

KamiApiCamelOilV1AccountHistoryRes

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiJdV2AccountListGet

KamiApiCamelOilV1ListAccountRes apiJdV2AccountListGet()

Example

import { JDV2AccountApi, Configuration } from './api';

const configuration = new Configuration();
const apiInstance = new JDV2AccountApi(configuration);

let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let status: 4 | 2 | 3 | 0 | 1; //状态筛选 (optional) (default to undefined)
let keyword: string; //关键词搜索(账号名称/手机号) (optional) (default to undefined)

const { status, data } = await apiInstance.apiJdV2AccountListGet(
  current,
  pageSize,
  status,
  keyword
);

Parameters

Name Type Description Notes
current [number] 页数 defaults to undefined
pageSize [**5 10 15 20 50 100**]**Array<5 | 10 | 15 | 20 | 50 | 100>** 页码 defaults to undefined
status [**4 2 3 0 1**]**Array<4 | 2 | 3 | 0 | 1>** 状态筛选 (optional) defaults to undefined
keyword [string] 关键词搜索(账号名称/手机号) (optional) defaults to undefined

Return type

KamiApiCamelOilV1ListAccountRes

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

apiJdV2AccountStatisticsGet

KamiApiCamelOilV1AccountStatisticsRes apiJdV2AccountStatisticsGet()

Example

import { JDV2AccountApi, Configuration } from './api';

const configuration = new Configuration();
const apiInstance = new JDV2AccountApi(configuration);

let accountId: number; //账号ID (default to undefined)

const { status, data } =
  await apiInstance.apiJdV2AccountStatisticsGet(accountId);

Parameters

Name Type Description Notes
accountId [number] 账号ID defaults to undefined

Return type

KamiApiCamelOilV1AccountStatisticsRes

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]