WMS_MAIN/app/service/openapi/callbackRegistry.js
liufumingren 99367e5043 1
2026-06-06 05:15:46 +08:00

32 lines
755 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict';
/**
* OpenAPI 回调事件注册表。
* 每个事件包含 name(事件名)、label(展示名)、description(说明)、
* sampleData(示例数据,与真实回调数据格式一致)。
*/
const CALLBACK_EVENTS = [
{
name: 'order_completed',
label: '订单发货完成',
description: '订单同步(出库)完成后触发',
sampleData: {
orderIds: [ 1001, 1002 ],
status: 'completed',
successCount: 2,
failedCount: 0,
},
},
{
name: 'order_cancelled',
label: '订单已取消',
description: '订单取消成功后触发',
sampleData: {
orderCode: 'TEST-ORDER-001',
status: 'cancelled',
},
},
];
module.exports = { CALLBACK_EVENTS };