Files
kami_frontend/src/api/generated/docs/JDV2PrefetchApi.md
danial 6d25b11074 feat(api): 新增预拉取订单和设置接口模块
- 添加 jdv2-prefetch-api,支持获取预拉取订单日志及订单列表
- 添加 jdv2-settings-api,支持获取及更新骆驼模块设置
- 更新生成的 API 文件列表,包含新增接口及相关模型和文档
- 修改本地设置文件,增加 prettier 格式化相关命令支持
2025-12-05 22:13:07 +08:00

5.0 KiB
Raw Blame History

JDV2PrefetchApi

All URIs are relative to http://localhost

Method HTTP request Description
apiJdV2PrefetchLogsGet GET /api/jd-v2/prefetch/logs 获取预拉取订单日志
apiJdV2PrefetchOrdersGet GET /api/jd-v2/prefetch/orders 获取预拉取订单列表

apiJdV2PrefetchLogsGet

KamiApiCamelOilV1GetPrefetchOrderLogsRes apiJdV2PrefetchLogsGet()

Example

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

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

let startTime: string; //开始时间 (default to undefined)
let endTime: string; //结束时间 (default to undefined)

const { status, data } = await apiInstance.apiJdV2PrefetchLogsGet(
  startTime,
  endTime
);

Parameters

Name Type Description Notes
startTime [string] 开始时间 defaults to undefined
endTime [string] 结束时间 defaults to undefined

Return type

KamiApiCamelOilV1GetPrefetchOrderLogsRes

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]

apiJdV2PrefetchOrdersGet

KamiApiCamelOilV1ListPrefetchOrderRes apiJdV2PrefetchOrdersGet()

Example

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

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

let current: number; //页数 (default to undefined)
let pageSize: 5 | 10 | 15 | 20 | 50 | 100; //页码 (default to undefined)
let accountId: number; //账号ID (optional) (default to undefined)
let accountName: string; //账号名称 (optional) (default to undefined)
let amount: number; //订单金额 (optional) (default to undefined)
let platformOrderNo: string; //平台订单号 (optional) (default to undefined)
let status: 3 | 4 | 2 | 1; //状态1待匹配 2已匹配 3已过期 4已失效 (optional) (default to undefined)
let dateRange: Array<string>; //时间范围 (optional) (default to undefined)

const { status, data } = await apiInstance.apiJdV2PrefetchOrdersGet(
  current,
  pageSize,
  accountId,
  accountName,
  amount,
  platformOrderNo,
  status,
  dateRange
);

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 (optional) defaults to undefined
accountName [string] 账号名称 (optional) defaults to undefined
amount [number] 订单金额 (optional) defaults to undefined
platformOrderNo [string] 平台订单号 (optional) defaults to undefined
status [**3 4 2 1**]**Array<3 | 4 | 2 | 1>** 状态1待匹配 2已匹配 3已过期 4已失效 (optional) defaults to undefined
dateRange Array<string> 时间范围 (optional) defaults to undefined

Return type

KamiApiCamelOilV1ListPrefetchOrderRes

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]