187 lines
5.5 KiB
JSON
187 lines
5.5 KiB
JSON
{
|
||
"数据一览": {
|
||
"当前请求数": 4,
|
||
"成功数": 3,
|
||
"全部请求数": 4,
|
||
"成功数与全部请求数": "3/4",
|
||
"成功判定名单": [
|
||
"ok",
|
||
"成功",
|
||
"登录成功",
|
||
"success",
|
||
"查询成功",
|
||
"获取成功"
|
||
],
|
||
"失败接口": [
|
||
{
|
||
"接口": "setting.warehouse.saveSettings",
|
||
"message": "subject_config 参数不能为空且必须是对象",
|
||
"code": 400,
|
||
"模块目录": "setting.warehouse",
|
||
"api封装": [
|
||
{
|
||
"文件": "src/api/setting.warehouse/settingwarehouse.ts",
|
||
"方法名": "settingWarehouse.saveSettings",
|
||
"说明": "聚合对象方法"
|
||
}
|
||
],
|
||
"引用页面": []
|
||
}
|
||
],
|
||
"空数据接口": []
|
||
},
|
||
"详情": [
|
||
{
|
||
"接口": "user.login",
|
||
"message": "登录成功",
|
||
"code": 200,
|
||
"data": {
|
||
"flag": "success",
|
||
"code": 200,
|
||
"message": "登录成功",
|
||
"success": true,
|
||
"data": {
|
||
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywidXNlcm5hbWUiOiJ5am0iLCJyZWFsX25hbWUiOiJ5aW4iLCJwbGF0Zm9ybV9jb2RlIjoid2ViIiwiY3VycmVudF9yb2xlX2lkIjozMSwiY3VycmVudF9zdG9yZV9pZCI6MTAwMDAwLCJpYXQiOjE3NzgwNTgxMTQsImV4cCI6MTc3ODA3MjUxNH0.i_XWXCEuBLQ3o4-AFxznOoUob7PXTf3Vf2i-t6qZTTg"
|
||
},
|
||
"timestamp": 1778058114
|
||
}
|
||
},
|
||
{
|
||
"接口": "setting.warehouse.getSettings",
|
||
"message": "ok",
|
||
"code": 1,
|
||
"data": {
|
||
"flag": "success",
|
||
"code": 1,
|
||
"message": "ok",
|
||
"warehouse_id": 100000,
|
||
"subject_config": {
|
||
"group_wave_prefix": "B",
|
||
"max_wave_quantity": 500,
|
||
"default_express_code": "STO",
|
||
"auto_grouping_enabled": false,
|
||
"default_platform_code": "TB",
|
||
"delete_order_wave_prefix": "A",
|
||
"max_notice_webhook_count": 5,
|
||
"min_group_order_fetch_quantity": 13
|
||
},
|
||
"timestamp": 1778058114
|
||
}
|
||
},
|
||
{
|
||
"接口": "setting.warehouse.getFieldMeta",
|
||
"message": "ok",
|
||
"code": 1,
|
||
"data": {
|
||
"flag": "success",
|
||
"code": 1,
|
||
"message": "ok",
|
||
"list": [
|
||
{
|
||
"key": "max_notice_webhook_count",
|
||
"name": "最大通知 Webhook 次数",
|
||
"type": "integer",
|
||
"default": 5,
|
||
"required": false,
|
||
"description": "单次事件最多触发的 Webhook 通知次数(0-5)",
|
||
"min": 0,
|
||
"max": 5
|
||
},
|
||
{
|
||
"key": "max_wave_quantity",
|
||
"name": "仓库波次最大数量限制",
|
||
"type": "integer",
|
||
"default": 500,
|
||
"required": false,
|
||
"description": "控制单个波次允许的最大订单数量,默认 500",
|
||
"min": 1
|
||
},
|
||
{
|
||
"key": "min_group_order_fetch_quantity",
|
||
"name": "最小团购订单抓取数量",
|
||
"type": "integer",
|
||
"default": 13,
|
||
"required": false,
|
||
"description": "控制团购波次最小抓取订单数量,默认 13",
|
||
"min": 1
|
||
},
|
||
{
|
||
"key": "default_express_code",
|
||
"name": "默认快递编码",
|
||
"type": "string",
|
||
"default": "STO",
|
||
"required": false,
|
||
"description": "仓库默认使用的快递编码",
|
||
"maxLength": 50
|
||
},
|
||
{
|
||
"key": "default_platform_code",
|
||
"name": "默认平台编码",
|
||
"type": "string",
|
||
"default": "TB",
|
||
"required": false,
|
||
"description": "仓库默认使用的平台编码",
|
||
"maxLength": 50
|
||
},
|
||
{
|
||
"key": "group_wave_prefix",
|
||
"name": "团购波次前缀",
|
||
"type": "string",
|
||
"default": "B",
|
||
"required": false,
|
||
"description": "团购波次编号前缀,最多 5 个字符,默认 B",
|
||
"maxLength": 5
|
||
},
|
||
{
|
||
"key": "delete_order_wave_prefix",
|
||
"name": "删单波次前缀",
|
||
"type": "string",
|
||
"default": "A",
|
||
"required": false,
|
||
"description": "删单波次编号前缀,最多 5 个字符,默认 A",
|
||
"maxLength": 5
|
||
},
|
||
{
|
||
"key": "webhook_enabled",
|
||
"name": "是否启用 Webhook",
|
||
"type": "flag",
|
||
"default": false,
|
||
"required": false,
|
||
"description": "控制仓库是否启用 Webhook 事件推送"
|
||
},
|
||
{
|
||
"key": "callback_strategy",
|
||
"name": "回调策略",
|
||
"type": "enum",
|
||
"default": "async",
|
||
"required": false,
|
||
"description": "仓库 Webhook 事件的回调执行策略",
|
||
"options": [
|
||
{
|
||
"value": "sync",
|
||
"label": "同步回调"
|
||
},
|
||
{
|
||
"value": "async",
|
||
"label": "异步回调"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"timestamp": 1778058114
|
||
}
|
||
},
|
||
{
|
||
"接口": "setting.warehouse.saveSettings",
|
||
"message": "subject_config 参数不能为空且必须是对象",
|
||
"code": 400,
|
||
"data": {
|
||
"flag": "failure",
|
||
"code": 400,
|
||
"message": "subject_config 参数不能为空且必须是对象",
|
||
"timestamp": 1778058114
|
||
}
|
||
}
|
||
]
|
||
}
|